Created
August 17, 2014 02:45
-
-
Save scottbyrns/d0d8c946ad55796727f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void sendMessage(Message message) { | |
try { | |
Gson gson = new Gson(); | |
new AccountServiceImpl().login("GroG", "password"); | |
RobotService service = new RobotServiceImpl(); | |
Robot robot = service.list().get(0); | |
com.goodrobots.Log log = new com.goodrobots.Log(); | |
log.setMessage(gson.toJson(message)); | |
new LoggingServiceImpl().create(robot, log); | |
} catch (Exception e) { | |
Logging.logException(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment