Created
March 8, 2012 00:30
-
-
Save drapp/1997565 to your computer and use it in GitHub Desktop.
StackMob Select Example
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
StackMobQuery q = new StackMobQuery("user/fred").expandDepthIs(1); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
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
StackMobQuery *q = [StackMobQuery query]; | |
[q setExpandDepth:1]; | |
[[StackMob stackmob] get:@"user/fred" withQuery:q andCallback: ... |
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
String[] fields = new String[]{"username","email"}; | |
StackMobQuery q = new StackMobQuery("user/fred").select(Arrays.asList(fields)); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
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
StackMobQuery *q = [StackMobQuery query]; | |
[q setSelection:[NSArray arrayWithObjects:@"username", @"email", nil]]; | |
[[StackMob stackmob] get:@"user/fred" withQuery:q andCallback: ... |
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
String[] fields = new String[]{"friends","friends.email"}; | |
StackMobQuery q = new StackMobQuery("user/fred").select(Arrays.asList(fields)).expandDepthIs(1); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
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
StackMobQuery *q = [StackMobQuery query]; | |
[q setExpandDepth:1]; | |
[q setSelectionToFields:[NSArray arrayWithObjects:@"friends", @"friends.email", nil]]; | |
[[StackMob stackmob] get:@"user/fred" withQuery:q andCallback: ... |
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
String[] fields = new String[]{"email", "bestfriend", "bestfriend.*"}; | |
StackMobQuery q = new StackMobQuery("user/fred").select(Arrays.asList(fields)).expandDepthIs(1); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
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
StackMobQuery *q = [StackMobQuery query]; | |
[q setExpandDepth:1]; | |
[q setSelectionToFields:[NSArray arrayWithObjects:@"email", @"bestfriend", @"bestfriend.*", nil]]; | |
[[StackMob stackmob] get:@"user/fred" withQuery:q andCallback: ... |
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
StackMobQuery q = new StackMobQuery("user/fred"); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
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
StackMobQuery *q = [StackMobQuery query]; | |
[[StackMob stackmob] get:@"user/fred" withQuery:q andCallback: ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment