Package io.trippay.sdk.payment.model
Class ActivityStream
java.lang.Object
io.trippay.sdk.payment.model.ActivityStream
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-12T15:09:05.445923493+07:00[Asia/Bangkok]")
public class ActivityStream
extends Object
ActivityStream
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) createdDate(LocalDateTime createdDate) entityIdentifier(UUID entityIdentifier) boolean@NotNull ActivityStream.AclEnumgetAcl()Who can track this stream?Optional attachment.Optional comment.Datetime this record was first createdOptional emotion.@NotNull @Valid UUIDID of tracked entity@NotNull StringLocalized key.getId()Document UUIDDatetime this record was last updated@Valid ActivityStreamUsergetUser()Get userVersion property that shows how many times this document has been persisted.inthashCode()lastUpdate(LocalDateTime lastUpdate) voidvoidsetAttachmentId(String attachmentId) voidsetComment(String comment) voidsetCreatedDate(LocalDateTime createdDate) voidsetEmotion(String emotion) voidsetEntityIdentifier(UUID entityIdentifier) voidsetI18nKey(String i18nKey) voidvoidsetLastUpdate(LocalDateTime lastUpdate) voidsetUser(ActivityStreamUser user) voidsetVersion(Long version) toString()user(ActivityStreamUser user)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_DATE
- See Also:
-
JSON_PROPERTY_LAST_UPDATE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_ACL
- See Also:
-
JSON_PROPERTY_ENTITY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_EMOTION
- See Also:
-
JSON_PROPERTY_COMMENT
- See Also:
-
JSON_PROPERTY_I18N_KEY
- See Also:
-
JSON_PROPERTY_ATTACHMENT_ID
- See Also:
-
JSON_PROPERTY_USER
- See Also:
-
-
Constructor Details
-
ActivityStream
public ActivityStream()
-
-
Method Details
-
id
-
getId
Document UUID- Returns:
- id
-
setId
-
createdDate
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
setCreatedDate
-
lastUpdate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
setLastUpdate
-
version
-
getVersion
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.- Returns:
- version
-
setVersion
-
acl
-
getAcl
Who can track this stream?- Returns:
- acl
-
setAcl
-
entityIdentifier
-
getEntityIdentifier
ID of tracked entity- Returns:
- entityIdentifier
-
setEntityIdentifier
-
emotion
-
getEmotion
Optional emotion. The actual implementation of the emotion is down to the consumer of the stream.- Returns:
- emotion
-
setEmotion
-
comment
-
getComment
Optional comment. For when the activity was created manually by a user. If i18nKey is not populated, comment is required.- Returns:
- comment
-
setComment
-
i18nKey
-
getI18nKey
Localized key. Key will be used to generate text on the front-end. If comment is not populated, i18n is required.- Returns:
- i18nKey
-
setI18nKey
-
attachmentId
-
getAttachmentId
Optional attachment. For when we allow users to upload documents to the activity via Cloudinary.- Returns:
- attachmentId
-
setAttachmentId
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-