Permalink
Browse files

Polishing camelcase to match Foursquare API docs

  • Loading branch information...
Matt Wright
Matt Wright committed Oct 27, 2011
1 parent 423714c commit 8062173709bc734c734e219341dedf6d12823384
@@ -110,7 +110,7 @@ UserSearchResponse search(List<String> phoneNumbers, List<String> emailAddresses
* @param offset The number of results to skip. Used to page through results.
* @return CheckinInfo
*/
- CheckinInfo getCheckins(String userId, int afterTimeStamp, int beforeTimeStamp, int limit, int offset);
+ CheckinInfo getCheckins(String userId, int afterTimestamp, int beforeTimestamp, int limit, int offset);
/**
* Retrieve the authenticated user's checkin history
@@ -128,7 +128,7 @@ UserSearchResponse search(List<String> phoneNumbers, List<String> emailAddresses
* @param offset The number of results to skip. Used to page through results.
* @return CheckinInfo
*/
- CheckinInfo getCheckins(int afterTimeStamp, int beforeTimeStamp, int limit, int offset);
+ CheckinInfo getCheckins(int afterTimestamp, int beforeTimestamp, int limit, int offset);
/**
* Retrieve the authenticated user's friends
@@ -1,6 +1,5 @@
package org.springframework.social.foursquare.api.impl;
-import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -117,8 +116,8 @@ public CheckinInfo getCheckins(int limit, int offset) {
}
- public CheckinInfo getCheckins(int beforeTimeStamp, int afterTimeStamp, int limit, int offset) {
- return getCheckins("self", beforeTimeStamp, afterTimeStamp, limit, offset);
+ public CheckinInfo getCheckins(int beforeTimestamp, int afterTimestamp, int limit, int offset) {
+ return getCheckins("self", beforeTimestamp, afterTimestamp, limit, offset);
}
public CheckinInfo getCheckins(String userId) {
@@ -133,10 +132,10 @@ public CheckinInfo getCheckins(String userId, int limit, int offset) {
return doGetCheckins(userId, params);
}
- public CheckinInfo getCheckins(String userId, int beforeTimeStamp, int afterTimeStamp, int limit, int offset) {
+ public CheckinInfo getCheckins(String userId, int beforeTimestamp, int afterTimestamp, int limit, int offset) {
Map<String,String> params = new HashMap<String,String>();
- params.put("beforeTimeStamp", Integer.toString(beforeTimeStamp));
- params.put("afterTimeStamp", Integer.toString(afterTimeStamp));
+ params.put("beforeTimestamp", Integer.toString(beforeTimestamp));
+ params.put("afterTimestamp", Integer.toString(afterTimestamp));
params.put("limit", Integer.toString(limit));
params.put("offset", Integer.toString(offset));
return doGetCheckins(userId, params);
@@ -130,7 +130,7 @@ public void getCheckinsWithOffset() {
@Test
public void getCheckinsWithTimestamps() {
- mockServer.expect(requestTo("https://api.foursquare.com/v2/users/self/checkins?oauth_token=ACCESS_TOKEN&v=20110609&limit=100&beforeTimeStamp=500&afterTimeStamp=600&offset=50"))
+ mockServer.expect(requestTo("https://api.foursquare.com/v2/users/self/checkins?oauth_token=ACCESS_TOKEN&v=20110609&limit=100&beforeTimestamp=500&afterTimestamp=600&offset=50"))
.andExpect(method(GET))
.andRespond(withResponse(new ClassPathResource("testdata/checkins.json", getClass()), responseHeaders));

0 comments on commit 8062173

Please sign in to comment.