buffet: Restructure buffet_client.cc

This makes it more obvious at a glance what magic strings correspond to
commands and moves the argument parsing into each method.  It also stops
us from passing the Bus around by making it a class variable.

BUG=None
TEST=buffet_client TestMethod and UpdateState still work.

Change-Id: I36fad6ea69320aba5c98a21f85fa90b872dc7519
Reviewed-on: https://chromium-review.googlesource.com/198927
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
1 file changed
tree: 0bc9846e959a75b3aaf62b7bdabafe3b211f7522
  1. buffet/