Package com.restfb.types
Class Event
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.NamedFacebookType
-
- com.restfb.types.Event
-
- All Implemented Interfaces:
HasCover
,HasProfilePicture
,Serializable
public class Event extends NamedFacebookType implements HasProfilePicture, HasCover
Represents the Event Graph API type.- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.Category
Represents the Event Owner Category Graph API type.static class
Event.Owner
Represents the Event Owner Graph API type.-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillProfilePicture(JsonMapper jsonMapper)
Integer
getAttendingCount()
Number of people attending the eventBoolean
getCanGuestsInvite()
Can guests invite friends.String
getCategory()
The category of the event.CoverPhoto
getCover()
Cover pictureInteger
getDeclinedCount()
Number of people who declined the eventString
getDescription()
The long-form HTML description of the event.Date
getEndTime()
The end time of the event.Boolean
getGuestListEnabled()
Can see guest list.Long
getInterestedCount()
Number of people interested in the event.Boolean
getIsCanceled()
Whether the event has been marked as canceledBoolean
getIsDateOnly()
Should the time information be ignored in the dates for this event?Boolean
getIsPageOwned()
Whether the event is created by page or not.Integer
getMaybeCount()
Number of people who maybe going to the eventInteger
getNoreplyCount()
Number of people who did not reply to the eventEvent.Owner
getOwner()
The user who owns the event.Group
getParentGroup()
The group the event belongs to, if any.ProfilePictureSource
getPicture()
The event's picture.Place
getPlace()
Location associated with the event, if any.String
getPrivacy()
The visibility of this event.String
getRsvpStatus()
The RSVP status of this event.Date
getStartTime()
The start time of the event.String
getTicketUri()
The URL to a location to buy tickets for this event (on Events for Pages only).String
getTimezone()
the timezone of the eventDate
getUpdatedTime()
The last time the event was updated.void
setAttendingCount(Integer attendingCount)
Number of people attending the eventvoid
setCanGuestsInvite(Boolean canGuestsInvite)
Can guests invite friends.void
setCategory(String category)
The category of the event.void
setCover(CoverPhoto cover)
Cover picturevoid
setDeclinedCount(Integer declinedCount)
Number of people who declined the eventvoid
setDescription(String description)
The long-form HTML description of the event.void
setEndTime(Date endTime)
The end time of the event.void
setGuestListEnabled(Boolean guestListEnabled)
Can see guest list.void
setInterestedCount(Long interestedCount)
Number of people interested in the event.void
setIsCanceled(Boolean isCanceled)
Whether the event has been marked as canceledvoid
setIsDateOnly(Boolean isDateOnly)
Should the time information be ignored in the dates for this event?void
setIsPageOwned(Boolean isPageOwned)
Whether the event is created by page or not.void
setMaybeCount(Integer maybeCount)
Number of people who maybe going to the eventvoid
setNoreplyCount(Integer noreplyCount)
Number of people who did not reply to the eventvoid
setOwner(Event.Owner owner)
The user who owns the event.void
setParentGroup(Group parentGroup)
The group the event belongs to, if any.void
setPicture(ProfilePictureSource picture)
The event's picture.void
setPlace(Place place)
Location associated with the event, if any.void
setPrivacy(String privacy)
The visibility of this event.void
setRsvpStatus(String rsvpStatus)
The RSVP status of this event.void
setStartTime(Date startTime)
The start time of the event.void
setTicketUri(String ticketUri)
The URL to a location to buy tickets for this event (on Events for Pages only).void
setTimezone(String timezone)
the timezone of the eventvoid
setUpdatedTime(Date updatedTime)
The last time the event was updated.-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.restfb.types.features.HasProfilePicture
convertPicture
-
-
-
-
Constructor Detail
-
Event
public Event()
-
-
Method Detail
-
fillProfilePicture
protected void fillProfilePicture(JsonMapper jsonMapper)
-
getOwner
public Event.Owner getOwner()
The user who owns the event.- Returns:
- The user who owns the event.
-
setOwner
public void setOwner(Event.Owner owner)
The user who owns the event.
-
getCategory
@GraphAPI(since="2.4") public String getCategory()
The category of the event.- Returns:
- The category of the event
-
setCategory
public void setCategory(String category)
The category of the event.
-
getCanGuestsInvite
public Boolean getCanGuestsInvite()
Can guests invite friends.- Returns:
- Can guests invite friends
-
setCanGuestsInvite
public void setCanGuestsInvite(Boolean canGuestsInvite)
Can guests invite friends.
-
getGuestListEnabled
public Boolean getGuestListEnabled()
Can see guest list.- Returns:
- Can see guest list
-
setGuestListEnabled
public void setGuestListEnabled(Boolean guestListEnabled)
Can see guest list.
-
getDescription
public String getDescription()
The long-form HTML description of the event.- Returns:
- The long-form HTML description of the event.
-
setDescription
public void setDescription(String description)
The long-form HTML description of the event.
-
getStartTime
public Date getStartTime()
The start time of the event.- Returns:
- The start time of the event.
-
setStartTime
public void setStartTime(Date startTime)
The start time of the event.
-
getEndTime
public Date getEndTime()
The end time of the event.- Returns:
- The end time of the event.
-
setEndTime
public void setEndTime(Date endTime)
The end time of the event.
-
getIsCanceled
public Boolean getIsCanceled()
Whether the event has been marked as canceled- Returns:
- Whether the event has been marked as canceled
-
setIsCanceled
public void setIsCanceled(Boolean isCanceled)
Whether the event has been marked as canceled
-
getRsvpStatus
public String getRsvpStatus()
The RSVP status of this event.- Returns:
- The RSVP status of this event.
-
setRsvpStatus
public void setRsvpStatus(String rsvpStatus)
The RSVP status of this event.
-
getInterestedCount
@GraphAPI(since="2.1") public Long getInterestedCount()
Number of people interested in the event.- Returns:
- Number of people interested in the event
-
setInterestedCount
public void setInterestedCount(Long interestedCount)
Number of people interested in the event.
-
getIsPageOwned
public Boolean getIsPageOwned()
Whether the event is created by page or not.- Returns:
- Whether the event is created by page or not
-
setIsPageOwned
public void setIsPageOwned(Boolean isPageOwned)
Whether the event is created by page or not.
-
getPrivacy
public String getPrivacy()
The visibility of this event. Can be 'OPEN', 'CLOSED', or 'SECRET'.- Returns:
- The visibility of this event. Can be 'OPEN', 'CLOSED', or 'SECRET'.
-
setPrivacy
public void setPrivacy(String privacy)
The visibility of this event. Can be 'OPEN', 'CLOSED', or 'SECRET'.
-
getUpdatedTime
public Date getUpdatedTime()
The last time the event was updated.- Returns:
- The last time the event was updated.
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
The last time the event was updated.
-
getTicketUri
public String getTicketUri()
The URL to a location to buy tickets for this event (on Events for Pages only).- Returns:
- The URL to a location to buy tickets for this event (on Events for Pages only).
- Since:
- 1.6.13
-
setTicketUri
public void setTicketUri(String ticketUri)
The URL to a location to buy tickets for this event (on Events for Pages only).- Since:
- 1.6.13
-
getPicture
public ProfilePictureSource getPicture()
The event's picture.- Specified by:
getPicture
in interfaceHasProfilePicture
- Returns:
- The event's picture (only returned if you explicitly include picture in the fields param; example: ?fields=id,name,picture)
- Since:
- 1.6.13
-
setPicture
public void setPicture(ProfilePictureSource picture)
The event's picture.- Since:
- 1.6.13
-
getParentGroup
public Group getParentGroup()
The group the event belongs to, if any.- Returns:
- The group the event belongs to, if any.
-
setParentGroup
public void setParentGroup(Group parentGroup)
The group the event belongs to, if any.
-
getPlace
@GraphAPI(since="2.3") public Place getPlace()
Location associated with the event, if any.- Returns:
- Location associated with the event, if any
-
getIsDateOnly
public Boolean getIsDateOnly()
Should the time information be ignored in the dates for this event?- Returns:
- true if the time information be ignored in the dates for this event, false otherwise.
- Since:
- 1.6.13
-
setIsDateOnly
public void setIsDateOnly(Boolean isDateOnly)
Should the time information be ignored in the dates for this event?- Since:
- 1.6.13
-
getTimezone
public String getTimezone()
the timezone of the event
-
setTimezone
public void setTimezone(String timezone)
the timezone of the event
-
getCover
public CoverPhoto getCover()
Cover picture
-
setCover
public void setCover(CoverPhoto cover)
Cover picture
-
getAttendingCount
@GraphAPI(since="2.1") public Integer getAttendingCount()
Number of people attending the event- Returns:
- Number of people attending the event
-
setAttendingCount
public void setAttendingCount(Integer attendingCount)
Number of people attending the event
-
getDeclinedCount
@GraphAPI(since="2.1") public Integer getDeclinedCount()
Number of people who declined the event- Returns:
- Number of people who declined the event
-
setDeclinedCount
public void setDeclinedCount(Integer declinedCount)
Number of people who declined the event
-
getMaybeCount
@GraphAPI(since="2.1") public Integer getMaybeCount()
Number of people who maybe going to the event- Returns:
- Number of people who maybe going to the event
-
setMaybeCount
public void setMaybeCount(Integer maybeCount)
Number of people who maybe going to the event
-
getNoreplyCount
@GraphAPI(since="2.1") public Integer getNoreplyCount()
Number of people who did not reply to the event- Returns:
- Number of people who did not reply to the event
-
setNoreplyCount
public void setNoreplyCount(Integer noreplyCount)
Number of people who did not reply to the event
-
-