Class Event


  • @Entity
    public class Event
    extends Object
    Event is a @Entity class with the following fields id, name, address, description, time, latitude, longitude, passkey, and photos. All of the fields in this class are attributes of Event and help form the structure of the PicMe Gallery database.
    • Constructor Detail

      • Event

        public Event()
    • Method Detail

      • getId

        public Long getId()
        Gets the Event's id.
      • getUser

        @NonNull
        public User getUser()
        Gets the User who created the event.
      • setUser

        public void setUser​(@NonNull
                            User user)
        Sets the sets the User who created the event.
      • getTime

        @NonNull
        public Date getTime()
        Gets the Event's start time
      • getUpdated

        @NonNull
        public Date getUpdated()
        Gets the time the Event was updated.
      • getName

        @NonNull
        public String getName()
        Gets the Event's name.
      • setName

        public void setName​(@NonNull
                            String name)
        Sets the Event's name.
      • getAddress

        public String getAddress()
        Gets the Event's address.
      • setAddress

        public void setAddress​(String eventAddress)
        Sets the Event's address.
      • getDescription

        public String getDescription()
        Gets the Event's description.
      • setDescription

        public void setDescription​(String eventDescription)
        Sets the Event's description.
      • getLatitude

        @Nullable
        public Double getLatitude()
        Gets the latitude of an Event.
      • setLatitude

        public void setLatitude​(@Nullable
                                Double latitude)
        Sets the latitude of an Event.
      • getLongitude

        @Nullable
        public Double getLongitude()
        Gets the longitude of an Event.
      • setLongitude

        public void setLongitude​(@Nullable
                                 Double longitude)
        Sets the longitude of an Event.
      • getPasskey

        @NonNull
        public String getPasskey()
        Gets the passkey of an Event.
      • setPasskey

        public void setPasskey​(@NonNull
                               String passkey)
        Sets the passkey of an Event.
      • getPhotos

        @NonNull
        public List<Photo> getPhotos()
        Gets all the photos related to an event.
      • getUsers

        @NonNull
        public List<User> getUsers()
        Gets all the user associated with an event.