Package com.openmeet.shared.data.ban
Class Ban
java.lang.Object
com.openmeet.shared.data.ban.Ban
- All Implemented Interfaces:
IEntity
This class represents the Ban Entity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the Ban.Returns the end time of the Ban.intgetId()Returns the id of the Ban.intReturns the id of the meeter banned.intReturns the id of moderator who created the Ban.Returns the start time of the Ban.voidsetDescription(String description) Sets the description of the Ban.voidsetEndTime(Timestamp endTime) Sets the end time of the Ban.voidsetId(int id) Sets the id of the Ban.voidsetMeeterId(int meeterId) Sets the id of the meeter banned.voidsetModeratorId(int moderatorId) Sets the id of moderator who created the Ban.voidsetStartTime(Timestamp startTime) Sets the start time of the Ban.Returns the Ban as an hashMap.Returns the Ban as an hashMap.toString()
-
Field Details
-
BAN
- See Also:
-
BAN_ID
- See Also:
-
BAN_MODERATOR_ID
- See Also:
-
BAN_DESCRIPTION
- See Also:
-
BAN_START_TIME
- See Also:
-
BAN_END_TIME
- See Also:
-
BAN_MEETER_ID
- See Also:
-
-
Constructor Details
-
Ban
public Ban()
-
-
Method Details
-
toHashMap
Returns the Ban as an hashMap. -
toHashMap
Returns the Ban as an hashMap. -
toString
-
getId
public int getId()Returns the id of the Ban.- Returns:
- the id of the Ban.
-
setId
public void setId(int id) Sets the id of the Ban.- Parameters:
id- the id of the Ban.
-
getModeratorId
public int getModeratorId()Returns the id of moderator who created the Ban.- Returns:
- the id of moderator who created the Ban.
-
setModeratorId
public void setModeratorId(int moderatorId) Sets the id of moderator who created the Ban.- Parameters:
moderatorId- the id of moderator who created the Ban.
-
getDescription
Returns the description of the Ban.- Returns:
- the description of the Ban.
-
setDescription
Sets the description of the Ban.- Parameters:
description- the description of the Ban.
-
getStartTime
Returns the start time of the Ban.- Returns:
- the start time of the Ban.
-
setStartTime
Sets the start time of the Ban.- Parameters:
startTime- the start time of the Ban.
-
getEndTime
Returns the end time of the Ban.- Returns:
- the end time of the Ban.
-
setEndTime
Sets the end time of the Ban.- Parameters:
endTime- the end time of the Ban.
-
getMeeterId
public int getMeeterId()Returns the id of the meeter banned.- Returns:
- the id of the meeter banned.
-
setMeeterId
public void setMeeterId(int meeterId) Sets the id of the meeter banned.- Parameters:
meeterId- the id of the meeter banned.
-