Class Action
- java.lang.Object
-
- edu.cnm.deepdive.viral.model.entity.Action
-
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
Gets the content for the action.long
getDemeanor()
Gets the ID for the demeanor the action is associated with.long
getId()
Gets the ID for the action.boolean
isPublic()
Gets the visibility level of the action (whether it's public or private).void
setContent(String content)
Sets the content for the action.void
setDemeanor(long demeanor)
Sets the ID for the demeanor the action is associated with.void
setId(long id)
Sets the ID for the action.void
setPublic(boolean aPublic)
Sets the visibility level of the action (whether it's public or private).
-
-
-
Method Detail
-
getId
public long getId()
Gets the ID for the action.- Returns:
- The ID of the action.
-
setId
public void setId(long id)
Sets the ID for the action.- Parameters:
id
- The new ID.
-
getContent
public String getContent()
Gets the content for the action.- Returns:
- The content of the action.
-
setContent
public void setContent(String content)
Sets the content for the action.- Parameters:
content
- The new action content.
-
isPublic
public boolean isPublic()
Gets the visibility level of the action (whether it's public or private).- Returns:
- The visibility boolean of the action.
-
setPublic
public void setPublic(boolean aPublic)
Sets the visibility level of the action (whether it's public or private).- Parameters:
aPublic
- The new visibility boolean of the action.
-
getDemeanor
public long getDemeanor()
Gets the ID for the demeanor the action is associated with.- Returns:
- The ID for the
Demeanor
.
-
setDemeanor
public void setDemeanor(long demeanor)
Sets the ID for the demeanor the action is associated with.- Parameters:
demeanor
- The newDemeanor
ID.
-
-