Skip to content

Instantly share code, notes, and snippets.

@olegflo
Created October 21, 2012 14:12
Show Gist options
  • Select an option

  • Save olegflo/3927094 to your computer and use it in GitHub Desktop.

Select an option

Save olegflo/3927094 to your computer and use it in GitHub Desktop.
qbdoc
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