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
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the Event Owner Category Graph API type.static classRepresents the Event Owner Graph API type.Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillProfilePicture(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.voidsetAttendingCount(Integer attendingCount) Number of people attending the eventvoidsetCanGuestsInvite(Boolean canGuestsInvite) Can guests invite friends.voidsetCategory(String category) The category of the event.voidsetCover(CoverPhoto cover) Cover picturevoidsetDeclinedCount(Integer declinedCount) Number of people who declined the eventvoidsetDescription(String description) The long-form HTML description of the event.voidsetEndTime(Date endTime) The end time of the event.voidsetGuestListEnabled(Boolean guestListEnabled) Can see guest list.voidsetInterestedCount(Long interestedCount) Number of people interested in the event.voidsetIsCanceled(Boolean isCanceled) Whether the event has been marked as canceledvoidsetIsDateOnly(Boolean isDateOnly) Should the time information be ignored in the dates for this event?voidsetIsPageOwned(Boolean isPageOwned) Whether the event is created by page or not.voidsetMaybeCount(Integer maybeCount) Number of people who maybe going to the eventvoidsetNoreplyCount(Integer noreplyCount) Number of people who did not reply to the eventvoidsetOwner(Event.Owner owner) The user who owns the event.voidsetParentGroup(Group parentGroup) The group the event belongs to, if any.voidsetPicture(ProfilePictureSource picture) The event's picture.voidLocation associated with the event, if any.voidsetPrivacy(String privacy) The visibility of this event.voidsetRsvpStatus(String rsvpStatus) The RSVP status of this event.voidsetStartTime(Date startTime) The start time of the event.voidsetTicketUri(String ticketUri) The URL to a location to buy tickets for this event (on Events for Pages only).voidsetTimezone(String timezone) the timezone of the eventvoidsetUpdatedTime(Date updatedTime) The last time the event was updated.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setNameMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getPicturein 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
-