public class TrainingUnitProgressDTO extends Object implements Serializable
Constructor and Description |
---|
TrainingUnitProgressDTO()
Instantiates a new training unit progress.
|
TrainingUnitProgressDTO(long internalId,
long unitId,
String username,
ItemType type,
String itemId,
boolean read)
Instantiates a new training unit progress.
|
TrainingUnitProgressDTO(long unitId,
String username,
ItemType type,
String itemId,
boolean read)
Instantiates a new training unit progress.
|
Modifier and Type | Method and Description |
---|---|
long |
getInternalId()
Gets the internal id.
|
String |
getItemId()
Gets the item id.
|
ItemType |
getType()
Gets the type.
|
long |
getUnitId()
Gets the unit id.
|
String |
getUsername()
Gets the username.
|
boolean |
isRead()
Checks if is read.
|
void |
setInternalId(long internalId)
Sets the internal id.
|
void |
setItemId(String itemId)
Sets the item id.
|
void |
setRead(boolean read)
Sets the read.
|
void |
setType(ItemType type)
Sets the type.
|
void |
setUnitId(long unitId)
Sets the unit id.
|
void |
setUsername(String username)
Sets the username.
|
String |
toString() |
public TrainingUnitProgressDTO()
public TrainingUnitProgressDTO(long unitId, String username, ItemType type, String itemId, boolean read)
unitId
- the unit idusername
- the usernametype
- the typeitemId
- the item idread
- the readpublic TrainingUnitProgressDTO(long internalId, long unitId, String username, ItemType type, String itemId, boolean read)
internalId
- the internal idunitId
- the unit idusername
- the usernametype
- the typeitemId
- the item idread
- the readpublic long getUnitId()
public void setUnitId(long unitId)
unitId
- the new unit idpublic long getInternalId()
public void setInternalId(long internalId)
internalId
- the new internal idpublic String getUsername()
public void setUsername(String username)
username
- the new usernamepublic ItemType getType()
public void setType(ItemType type)
type
- the new typepublic String getItemId()
public void setItemId(String itemId)
itemId
- the new item idpublic boolean isRead()
public void setRead(boolean read)
read
- the new readCopyright © 2019. All Rights Reserved.