-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
289 additions
and
4 deletions.
There are no files selected for viewing
134 changes: 134 additions & 0 deletions
134
core/src/main/java/org/springframework/social/flickr/api/Group2.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
|
||
package org.springframework.social.flickr.api; | ||
|
||
import java.util.LinkedHashMap; | ||
|
||
public class Group2{ | ||
private String description;// | ||
private Number iconfarm; | ||
private String iconserver; | ||
private String id; | ||
private Number is_admin; | ||
private Number is_member; | ||
private Number is_moderator; | ||
private Number ispoolmoderated; | ||
private String lang; | ||
private String members;// | ||
private String name;// | ||
private String pool_count;// | ||
private String privacy;// | ||
private Restrictions restrictions; | ||
private Roles roles; | ||
private String rules;// | ||
private Throttle throttle; | ||
private String topic_count;// | ||
|
||
public String getDescription(){ | ||
return this.description; | ||
} | ||
public void setDescription(LinkedHashMap<String,String> description){ | ||
this.description = description.get(FlickrConstant.JSONCONTENT); | ||
} | ||
public Number getIconfarm(){ | ||
return this.iconfarm; | ||
} | ||
public void setIconfarm(Number iconfarm){ | ||
this.iconfarm = iconfarm; | ||
} | ||
public String getIconserver(){ | ||
return this.iconserver; | ||
} | ||
public void setIconserver(String iconserver){ | ||
this.iconserver = iconserver; | ||
} | ||
public String getId(){ | ||
return this.id; | ||
} | ||
public void setId(String id){ | ||
this.id = id; | ||
} | ||
public Number getIs_admin(){ | ||
return this.is_admin; | ||
} | ||
public void setIs_admin(Number is_admin){ | ||
this.is_admin = is_admin; | ||
} | ||
public Number getIs_member(){ | ||
return this.is_member; | ||
} | ||
public void setIs_member(Number is_member){ | ||
this.is_member = is_member; | ||
} | ||
public Number getIs_moderator(){ | ||
return this.is_moderator; | ||
} | ||
public void setIs_moderator(Number is_moderator){ | ||
this.is_moderator = is_moderator; | ||
} | ||
public Number getIspoolmoderated(){ | ||
return this.ispoolmoderated; | ||
} | ||
public void setIspoolmoderated(Number ispoolmoderated){ | ||
this.ispoolmoderated = ispoolmoderated; | ||
} | ||
public String getLang(){ | ||
return this.lang; | ||
} | ||
public void setLang(String lang){ | ||
this.lang = lang; | ||
} | ||
public String getMembers(){ | ||
return this.members; | ||
} | ||
public void setMembers(LinkedHashMap<String,String> members){ | ||
this.members = members.get(FlickrConstant.JSONCONTENT);; | ||
} | ||
public String getName(){ | ||
return this.name; | ||
} | ||
public void setName(LinkedHashMap<String,String> name){ | ||
this.name = name.get(FlickrConstant.JSONCONTENT); | ||
} | ||
public String getPool_count(){ | ||
return this.pool_count; | ||
} | ||
public void setPool_count(LinkedHashMap<String,String> pool_count){ | ||
this.pool_count = pool_count.get(FlickrConstant.JSONCONTENT); | ||
} | ||
public String getPrivacy(){ | ||
return this.privacy; | ||
} | ||
public void setPrivacy(LinkedHashMap<String,String> privacy){ | ||
this.privacy = privacy.get(FlickrConstant.JSONCONTENT); | ||
} | ||
public Restrictions getRestrictions(){ | ||
return this.restrictions; | ||
} | ||
public void setRestrictions(Restrictions restrictions){ | ||
this.restrictions = restrictions; | ||
} | ||
public Roles getRoles(){ | ||
return this.roles; | ||
} | ||
public void setRoles(Roles roles){ | ||
this.roles = roles; | ||
} | ||
public String getRules(){ | ||
return this.rules; | ||
} | ||
public void setRules(LinkedHashMap<String,String> rules){ | ||
this.rules = rules.get(FlickrConstant.JSONCONTENT); | ||
} | ||
public Throttle getThrottle(){ | ||
return this.throttle; | ||
} | ||
public void setThrottle(Throttle throttle){ | ||
this.throttle = throttle; | ||
} | ||
public String getTopic_count(){ | ||
return this.topic_count; | ||
} | ||
public void setTopic_count(LinkedHashMap<String,String> topic_count){ | ||
this.topic_count = topic_count.get(FlickrConstant.JSONCONTENT); | ||
} | ||
} |
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
71 changes: 71 additions & 0 deletions
71
core/src/main/java/org/springframework/social/flickr/api/Restrictions.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|
||
package org.springframework.social.flickr.api; | ||
|
||
import java.util.List; | ||
|
||
public class Restrictions{ | ||
private Number art_ok; | ||
private Number has_geo; | ||
private Number images_ok; | ||
private Number moderate_ok; | ||
private Number photos_ok; | ||
private Number restricted_ok; | ||
private Number safe_ok; | ||
private Number screens_ok; | ||
private Number videos_ok; | ||
|
||
public Number getArt_ok(){ | ||
return this.art_ok; | ||
} | ||
public void setArt_ok(Number art_ok){ | ||
this.art_ok = art_ok; | ||
} | ||
public Number getHas_geo(){ | ||
return this.has_geo; | ||
} | ||
public void setHas_geo(Number has_geo){ | ||
this.has_geo = has_geo; | ||
} | ||
public Number getImages_ok(){ | ||
return this.images_ok; | ||
} | ||
public void setImages_ok(Number images_ok){ | ||
this.images_ok = images_ok; | ||
} | ||
public Number getModerate_ok(){ | ||
return this.moderate_ok; | ||
} | ||
public void setModerate_ok(Number moderate_ok){ | ||
this.moderate_ok = moderate_ok; | ||
} | ||
public Number getPhotos_ok(){ | ||
return this.photos_ok; | ||
} | ||
public void setPhotos_ok(Number photos_ok){ | ||
this.photos_ok = photos_ok; | ||
} | ||
public Number getRestricted_ok(){ | ||
return this.restricted_ok; | ||
} | ||
public void setRestricted_ok(Number restricted_ok){ | ||
this.restricted_ok = restricted_ok; | ||
} | ||
public Number getSafe_ok(){ | ||
return this.safe_ok; | ||
} | ||
public void setSafe_ok(Number safe_ok){ | ||
this.safe_ok = safe_ok; | ||
} | ||
public Number getScreens_ok(){ | ||
return this.screens_ok; | ||
} | ||
public void setScreens_ok(Number screens_ok){ | ||
this.screens_ok = screens_ok; | ||
} | ||
public Number getVideos_ok(){ | ||
return this.videos_ok; | ||
} | ||
public void setVideos_ok(Number videos_ok){ | ||
this.videos_ok = videos_ok; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
core/src/main/java/org/springframework/social/flickr/api/Roles.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
package org.springframework.social.flickr.api; | ||
|
||
import java.util.List; | ||
|
||
public class Roles{ | ||
private String admin; | ||
private String member; | ||
private String moderator; | ||
|
||
public String getAdmin(){ | ||
return this.admin; | ||
} | ||
public void setAdmin(String admin){ | ||
this.admin = admin; | ||
} | ||
public String getMember(){ | ||
return this.member; | ||
} | ||
public void setMember(String member){ | ||
this.member = member; | ||
} | ||
public String getModerator(){ | ||
return this.moderator; | ||
} | ||
public void setModerator(String moderator){ | ||
this.moderator = moderator; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
core/src/main/java/org/springframework/social/flickr/api/Throttle.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
package org.springframework.social.flickr.api; | ||
|
||
import java.util.List; | ||
|
||
public class Throttle{ | ||
private String mode; | ||
|
||
public String getMode(){ | ||
return this.mode; | ||
} | ||
public void setMode(String mode){ | ||
this.mode = mode; | ||
} | ||
} |
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
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
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
11 changes: 11 additions & 0 deletions
11
core/src/test/resources/org/springframework/social/flickr/connect/group.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ "group": { "id": "1878057@N24", "iconserver": 0, "iconfarm": 0, | ||
"name": { "_content": "GoaGroup" }, | ||
"description": { "_content": "goa" }, | ||
"rules": { "_content": "" }, | ||
"members": { "_content": 1 }, | ||
"pool_count": { "_content": 3 }, | ||
"topic_count": { "_content": 0 }, | ||
"privacy": { "_content": 2 }, "lang": "", "ispoolmoderated": 0, | ||
"roles": { "member": "Member", "moderator": "Moderator", "admin": "Admin" }, "is_member": 1, "is_moderator": 0, "is_admin": 1, | ||
"throttle": { "mode": "none" }, | ||
"restrictions": { "photos_ok": 1, "videos_ok": 1, "images_ok": 1, "screens_ok": 1, "art_ok": 1, "safe_ok": 1, "moderate_ok": 0, "restricted_ok": 0, "has_geo": 0 } }, "stat": "ok" } |