Created
October 21, 2012 14:12
-
-
Save olegflo/3927094 to your computer and use it in GitHub Desktop.
qbdoc
This file contains hidden or 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
| final QBLocation location = new QBLocation(35.0, 53.0, "I'm at this place"); | |
| System.out.println(location); | |
| // output | |
| // QBLocation{ | |
| // id=null, | |
| // createdAt=null, | |
| // updatedAt=null, | |
| // userId=null, | |
| // applicationId=null, | |
| // latitude=35.0, | |
| // longitude=53.0, | |
| // status="I'm at this place"} | |
| QBLocations.createLocation(location, new QBCallbackImpl() { | |
| @Override | |
| public void onComplete(Result result) { | |
| if (result.isSuccess()) { | |
| // retrieve the same object which has been passed into request | |
| System.out.println(location); | |
| // output | |
| // QBLocation{ | |
| // id=72898, | |
| // createdAt=2012-21-10 17:02:09, | |
| // updatedAt=2012-21-10 17:02:09, | |
| // userId=16365, | |
| // applicationId=991, | |
| // latitude=35.0, | |
| // longitude=53.0, | |
| // status="I'm at this place"} | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment