Class 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:
  • Constructor Details

  • Method Details

    • fillProfilePicture

      protected void fillProfilePicture(JsonMapper jsonMapper)
    • 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

      Can guests invite friends.
      Returns:
      Can guests invite friends
    • setCanGuestsInvite

      public void setCanGuestsInvite(Boolean canGuestsInvite)
      Can guests invite friends.
    • getGuestListEnabled

      Can see guest list.
      Returns:
      Can see guest list
    • setGuestListEnabled

      public void setGuestListEnabled(Boolean guestListEnabled)
      Can see guest list.
    • 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

      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

      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

      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

      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

      The event's picture.
      Specified by:
      getPicture in interface HasProfilePicture
      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

      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
    • setPlace

      public void setPlace(Place place)
      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

      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
      Specified by:
      getCover in interface HasCover
      Returns:
      Cover picture
    • setCover

      public void setCover(CoverPhoto cover)
      Cover picture
    • 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

      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

      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

      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