Package idatt2106.group3.backend.Model
Class Activity
- java.lang.Object
-
- idatt2106.group3.backend.Model.Activity
-
@Entity(name="activity") public class Activity extends java.lang.Object
Entity class for storing information about an activity with activityId as primary key
-
-
Constructor Summary
Constructors Constructor Description Activity()
Activity(ActivityRegistrationDTO activityRegistrationDTO, User organizeUser)
Activity constructor used for creating a new activity based on information from ActivityRegistration DTO and organizer.Activity(java.lang.String title, java.lang.String type, java.lang.String description, java.lang.String equipment, int difficulty, java.lang.String city, java.lang.String place, double longitude, double latitude, java.time.LocalDateTime startTime, int durationMinutes, boolean isPrivateActivity, int maxParticipants, boolean markedAbsence, byte[] activityPicture)
Activity(java.lang.String title, java.lang.String type, java.lang.String description, java.lang.String equipment, int difficulty, java.lang.String city, java.lang.String place, double longitude, double latitude, java.time.LocalDateTime startTime, int durationMinutes, boolean isPrivateActivity, java.util.Set<User> users, User organizer, Chat chat, int maxParticipants, boolean markedAbsence, byte[] activityPicture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getActivityId()
byte[]
getActivityPicture()
Chat
getChat()
java.lang.String
getCity()
java.lang.String
getDescription()
int
getDifficulty()
int
getDurationMinutes()
java.lang.String
getEquipment()
double
getLatitude()
double
getLongitude()
int
getMaxParticipants()
User
getOrganizer()
java.lang.String
getPlace()
java.time.LocalDateTime
getStartTime()
java.lang.String
getTitle()
java.lang.String
getType()
java.util.Set<User>
getUsers()
boolean
isMarkedAbsence()
boolean
isPrivateActivity()
void
setActivityId(long activityId)
void
setActivityPicture(byte[] activityPicture)
void
setChat(Chat chat)
void
setCity(java.lang.String city)
void
setDescription(java.lang.String description)
void
setDifficulty(int difficulty)
void
setDurationMinutes(int durationMinutes)
void
setEquipment(java.lang.String equipment)
void
setLatitude(double latitude)
void
setLongitude(double longitude)
void
setMarkedAbsence(boolean markedAbsence)
void
setMaxParticipants(int maxParticipants)
void
setOrganizer(User organizer)
void
setPlace(java.lang.String place)
void
setPrivateActivity(boolean privateActivity)
void
setStartTime(java.time.LocalDateTime startTime)
void
setTitle(java.lang.String title)
void
setType(java.lang.String type)
void
setUsers(java.util.Set<User> users)
java.lang.String
toString()
-
-
-
Constructor Detail
-
Activity
public Activity(java.lang.String title, java.lang.String type, java.lang.String description, java.lang.String equipment, int difficulty, java.lang.String city, java.lang.String place, double longitude, double latitude, java.time.LocalDateTime startTime, int durationMinutes, boolean isPrivateActivity, java.util.Set<User> users, User organizer, Chat chat, int maxParticipants, boolean markedAbsence, byte[] activityPicture)
-
Activity
public Activity(java.lang.String title, java.lang.String type, java.lang.String description, java.lang.String equipment, int difficulty, java.lang.String city, java.lang.String place, double longitude, double latitude, java.time.LocalDateTime startTime, int durationMinutes, boolean isPrivateActivity, int maxParticipants, boolean markedAbsence, byte[] activityPicture)
-
Activity
public Activity(ActivityRegistrationDTO activityRegistrationDTO, User organizeUser)
Activity constructor used for creating a new activity based on information from ActivityRegistration DTO and organizer.- Parameters:
activityRegistrationDTO
-organizeUser
-
-
Activity
public Activity()
-
-
Method Detail
-
getUsers
public java.util.Set<User> getUsers()
-
setUsers
public void setUsers(java.util.Set<User> users)
-
getOrganizer
public User getOrganizer()
-
setOrganizer
public void setOrganizer(User organizer)
-
getChat
public Chat getChat()
-
setChat
public void setChat(Chat chat)
-
getActivityId
public long getActivityId()
-
setActivityId
public void setActivityId(long activityId)
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String type)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
getEquipment
public java.lang.String getEquipment()
-
setEquipment
public void setEquipment(java.lang.String equipment)
-
getDifficulty
public int getDifficulty()
-
setDifficulty
public void setDifficulty(int difficulty)
-
getCity
public java.lang.String getCity()
-
setCity
public void setCity(java.lang.String city)
-
getPlace
public java.lang.String getPlace()
-
setPlace
public void setPlace(java.lang.String place)
-
getLongitude
public double getLongitude()
-
setLongitude
public void setLongitude(double longitude)
-
getLatitude
public double getLatitude()
-
setLatitude
public void setLatitude(double latitude)
-
getStartTime
public java.time.LocalDateTime getStartTime()
-
setStartTime
public void setStartTime(java.time.LocalDateTime startTime)
-
getDurationMinutes
public int getDurationMinutes()
-
setDurationMinutes
public void setDurationMinutes(int durationMinutes)
-
isPrivateActivity
public boolean isPrivateActivity()
-
setPrivateActivity
public void setPrivateActivity(boolean privateActivity)
-
getActivityPicture
public byte[] getActivityPicture()
-
setActivityPicture
public void setActivityPicture(byte[] activityPicture)
-
getMaxParticipants
public int getMaxParticipants()
-
setMaxParticipants
public void setMaxParticipants(int maxParticipants)
-
isMarkedAbsence
public boolean isMarkedAbsence()
-
setMarkedAbsence
public void setMarkedAbsence(boolean markedAbsence)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-