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
Represents the Event Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the Event Owner Category Graph API type.static class
Represents the Event Owner Graph API type.Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
fillProfilePicture
(JsonMapper jsonMapper) Number of people attending the eventCan guests invite friends.The category of the event.getCover()
Cover pictureNumber of people who declined the eventThe long-form HTML description of the event.The end time of the event.Can see guest list.Number of people interested in the event.Whether the event has been marked as canceledShould the time information be ignored in the dates for this event?Whether the event is created by page or not.Number of people who maybe going to the eventNumber of people who did not reply to the eventgetOwner()
The user who owns the event.The group the event belongs to, if any.The event's picture.getPlace()
Location associated with the event, if any.The visibility of this event.The RSVP status of this event.The start time of the event.The URL to a location to buy tickets for this event (on Events for Pages only).the timezone of the eventThe 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
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 Details
-
Event
public Event()
-
-
Method Details
-
fillProfilePicture
-
getOwner
The user who owns the event.- Returns:
- The user who owns the event.
-
setOwner
The user who owns the event. -
getCategory
The category of the event.- Returns:
- The category of the event
-
setCategory
The category of the event. -
getCanGuestsInvite
Can guests invite friends.- Returns:
- Can guests invite friends
-
setCanGuestsInvite
Can guests invite friends. -
getGuestListEnabled
Can see guest list.- Returns:
- Can see guest list
-
setGuestListEnabled
Can see guest list. -
getDescription
The long-form HTML description of the event.- Returns:
- The long-form HTML description of the event.
-
setDescription
The long-form HTML description of the event. -
getStartTime
The start time of the event.- Returns:
- The start time of the event.
-
setStartTime
The start time of the event. -
getEndTime
The end time of the event.- Returns:
- The end time of the event.
-
setEndTime
The end time of the event. -
getIsCanceled
Whether the event has been marked as canceled- Returns:
- Whether the event has been marked as canceled
-
setIsCanceled
Whether the event has been marked as canceled -
getRsvpStatus
The RSVP status of this event.- Returns:
- The RSVP status of this event.
-
setRsvpStatus
The RSVP status of this event. -
getInterestedCount
Number of people interested in the event.- Returns:
- Number of people interested in the event
-
setInterestedCount
Number of people interested in the event. -
getIsPageOwned
Whether the event is created by page or not.- Returns:
- Whether the event is created by page or not
-
setIsPageOwned
Whether the event is created by page or not. -
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
The visibility of this event. Can be 'OPEN', 'CLOSED', or 'SECRET'. -
getUpdatedTime
The last time the event was updated.- Returns:
- The last time the event was updated.
-
setUpdatedTime
The last time the event was updated. -
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
The URL to a location to buy tickets for this event (on Events for Pages only).- Since:
- 1.6.13
-
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
The event's picture.- Since:
- 1.6.13
-
getParentGroup
The group the event belongs to, if any.- Returns:
- The group the event belongs to, if any.
-
setParentGroup
The group the event belongs to, if any. -
getPlace
Location associated with the event, if any.- Returns:
- Location associated with the event, if any
-
setPlace
Location associated with the event, if any. -
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
Should the time information be ignored in the dates for this event?- Since:
- 1.6.13
-
getTimezone
the timezone of the event -
setTimezone
the timezone of the event -
getCover
Cover picture -
setCover
Cover picture -
getAttendingCount
Number of people attending the event- Returns:
- Number of people attending the event
-
setAttendingCount
Number of people attending the event -
getDeclinedCount
Number of people who declined the event- Returns:
- Number of people who declined the event
-
setDeclinedCount
Number of people who declined the event -
getMaybeCount
Number of people who maybe going to the event- Returns:
- Number of people who maybe going to the event
-
setMaybeCount
Number of people who maybe going to the event -
getNoreplyCount
Number of people who did not reply to the event- Returns:
- Number of people who did not reply to the event
-
setNoreplyCount
Number of people who did not reply to the event
-