Package com.restfb.types
Class Group
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.NamedFacebookType
-
- com.restfb.types.Group
-
- All Implemented Interfaces:
HasCover
,Serializable
public class Group extends NamedFacebookType implements HasCover
Represents the Group Graph API type.- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Group()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getAdministrator()
administratorCoverPhoto
getCover()
Information about the group's cover photo.String
getDescription()
The group description.String
getEmail()
The email address to upload content to the group.String
getIcon()
The URL of the group's iconString
getLink()
The URL for the group's website.Long
getMemberRequestCount()
The number of pending member requests.NamedFacebookType
getOwner()
An object containing the name and ID of the user who owns the group.NamedFacebookType
getParent()
The parent of this group, if it exists.String
getPrivacy()
The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.Long
getUnread()
unread countDate
getUpdatedTime()
The last time the group was updated.Location
getVenue()
The location of this group, a structured address object.void
setAdministrator(Boolean administrator)
administratorvoid
setCover(CoverPhoto cover)
Information about the group's cover photo.void
setDescription(String description)
The group description.void
setEmail(String email)
The email address to upload content to the group.void
setIcon(String icon)
The URL of the group's iconvoid
setLink(String link)
The URL for the group's website.void
setMemberRequestCount(Long memberRequestCount)
The number of pending member requests.void
setOwner(NamedFacebookType owner)
An object containing the name and ID of the user who owns the group.void
setParent(NamedFacebookType parent)
The parent of this group, if it exists.void
setPrivacy(String privacy)
The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.void
setUnread(Long unread)
unread countvoid
setUpdatedTime(Date updatedTime)
The last time the group was updated.void
setVenue(Location venue)
The location of this group, a structured address object.-
Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Group
public Group()
-
-
Method Detail
-
getAdministrator
public Boolean getAdministrator()
administrator
-
setAdministrator
public void setAdministrator(Boolean administrator)
administrator
-
getCover
public CoverPhoto getCover()
Information about the group's cover photo.
-
setCover
public void setCover(CoverPhoto cover)
Information about the group's cover photo.
-
getEmail
public String getEmail()
The email address to upload content to the group.Only current members of the group can use this.
- Returns:
- The email address to upload content to the group.
-
setEmail
public void setEmail(String email)
The email address to upload content to the group.Only current members of the group can use this.
-
getOwner
public NamedFacebookType getOwner()
An object containing the name and ID of the user who owns the group.- Returns:
- An object containing the name and ID of the user who owns the group.
-
setOwner
public void setOwner(NamedFacebookType owner)
An object containing the name and ID of the user who owns the group.
-
getDescription
public String getDescription()
The group description.- Returns:
- The group description.
-
setDescription
public void setDescription(String description)
The group description.
-
getLink
public String getLink()
The URL for the group's website.- Returns:
- The URL for the group's website.
-
getMemberRequestCount
public Long getMemberRequestCount()
The number of pending member requests.If the token is for an administrator, this is the total number of outstanding requests. If the token is for a group member, this will return the number of friends who have requested membership and also use the same app that is making the request.
- Returns:
- The number of pending member requests
-
setMemberRequestCount
public void setMemberRequestCount(Long memberRequestCount)
The number of pending member requests.If the token is for an administrator, this is the total number of outstanding requests. If the token is for a group member, this will return the number of friends who have requested membership and also use the same app that is making the request.
-
getParent
public NamedFacebookType getParent()
The parent of this group, if it exists.- Returns:
- The parent of this group, if it exists
-
setParent
public void setParent(NamedFacebookType parent)
The parent of this group, if it exists.
-
getVenue
public Location getVenue()
The location of this group, a structured address object.- Returns:
- The location of this group, a structured address object.
-
setVenue
public void setVenue(Location venue)
The location of this group, a structured address object.
-
getPrivacy
public String getPrivacy()
The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.- Returns:
- The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.
-
setPrivacy
public void setPrivacy(String privacy)
The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.
-
getUpdatedTime
public Date getUpdatedTime()
The last time the group was updated.- Returns:
- The last time the group was updated.
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
The last time the group was updated.
-
getIcon
public String getIcon()
The URL of the group's icon- Returns:
- The group's icon url
- Since:
- 1.6.16
-
-