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
Represents the Group Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadministratorgetCover()
Information about the group's cover photo.The group description.getEmail()
The email address to upload content to the group.getIcon()
The URL of the group's icongetLink()
The URL for the group's website.The number of pending member requests.getOwner()
An object containing the name and ID of the user who owns the group.The parent of this group, if it exists.The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'.unread countThe last time the group was updated.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
The email address to upload content to the group.void
The URL of the group's iconvoid
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
unread countvoid
setUpdatedTime
(Date updatedTime) The last time the group was updated.void
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 Details
-
Group
public Group()
-
-
Method Details
-
getAdministrator
administrator -
setAdministrator
administrator -
getCover
Information about the group's cover photo. -
setCover
Information about the group's cover photo. -
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
The email address to upload content to the group.Only current members of the group can use this.
-
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
An object containing the name and ID of the user who owns the group. -
getDescription
The group description.- Returns:
- The group description.
-
setDescription
The group description. -
getLink
The URL for the group's website.- Returns:
- The URL for the group's website.
-
setLink
The URL for the group's website. -
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
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
The parent of this group, if it exists.- Returns:
- The parent of this group, if it exists
-
setParent
The parent of this group, if it exists. -
getVenue
The location of this group, a structured address object.- Returns:
- The location of this group, a structured address object.
-
setVenue
The location of this group, a structured address object. -
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
The privacy setting of the group, either 'OPEN', 'CLOSED', or 'SECRET'. -
getUnread
unread count -
setUnread
unread count -
getUpdatedTime
The last time the group was updated.- Returns:
- The last time the group was updated.
-
setUpdatedTime
The last time the group was updated. -
getIcon
The URL of the group's icon- Returns:
- The group's icon url
- Since:
- 1.6.16
-
setIcon
The URL of the group's icon- Since:
- 1.6.16
-