
com.symphony.api.model.MessageDetail Maven / Gradle / Ivy
package com.symphony.api.model;
import com.symphony.api.model.MessageDownloadReceiptCount;
import com.symphony.api.model.MessageStream;
import com.symphony.api.model.MessageUser;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* Message detail
**/
@Schema(description="Message detail")
public class MessageDetail {
@Schema(description = "message id")
/**
* message id
**/
private String messageId = null;
@Schema(description = "")
private MessageUser creator = null;
@Schema(description = "")
private MessageUser onBehalfOfUser = null;
@Schema(description = "")
private MessageStream stream = null;
@Schema(description = "")
private Long creationDate = null;
@Schema(description = "")
private Long deliveryReceiptCount = null;
@Schema(description = "")
private Long readReceiptCount = null;
@Schema(description = "")
private Long emailNotificationCount = null;
@Schema(description = "")
private List downloadReceiptCounts = null;
/**
* message id
* @return messageId
**/
@JsonProperty("messageId")
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public MessageDetail messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* Get creator
* @return creator
**/
@JsonProperty("creator")
public MessageUser getCreator() {
return creator;
}
public void setCreator(MessageUser creator) {
this.creator = creator;
}
public MessageDetail creator(MessageUser creator) {
this.creator = creator;
return this;
}
/**
* Get onBehalfOfUser
* @return onBehalfOfUser
**/
@JsonProperty("onBehalfOfUser")
public MessageUser getOnBehalfOfUser() {
return onBehalfOfUser;
}
public void setOnBehalfOfUser(MessageUser onBehalfOfUser) {
this.onBehalfOfUser = onBehalfOfUser;
}
public MessageDetail onBehalfOfUser(MessageUser onBehalfOfUser) {
this.onBehalfOfUser = onBehalfOfUser;
return this;
}
/**
* Get stream
* @return stream
**/
@JsonProperty("stream")
public MessageStream getStream() {
return stream;
}
public void setStream(MessageStream stream) {
this.stream = stream;
}
public MessageDetail stream(MessageStream stream) {
this.stream = stream;
return this;
}
/**
* Get creationDate
* @return creationDate
**/
@JsonProperty("creationDate")
public Long getCreationDate() {
return creationDate;
}
public void setCreationDate(Long creationDate) {
this.creationDate = creationDate;
}
public MessageDetail creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Get deliveryReceiptCount
* @return deliveryReceiptCount
**/
@JsonProperty("deliveryReceiptCount")
public Long getDeliveryReceiptCount() {
return deliveryReceiptCount;
}
public void setDeliveryReceiptCount(Long deliveryReceiptCount) {
this.deliveryReceiptCount = deliveryReceiptCount;
}
public MessageDetail deliveryReceiptCount(Long deliveryReceiptCount) {
this.deliveryReceiptCount = deliveryReceiptCount;
return this;
}
/**
* Get readReceiptCount
* @return readReceiptCount
**/
@JsonProperty("readReceiptCount")
public Long getReadReceiptCount() {
return readReceiptCount;
}
public void setReadReceiptCount(Long readReceiptCount) {
this.readReceiptCount = readReceiptCount;
}
public MessageDetail readReceiptCount(Long readReceiptCount) {
this.readReceiptCount = readReceiptCount;
return this;
}
/**
* Get emailNotificationCount
* @return emailNotificationCount
**/
@JsonProperty("emailNotificationCount")
public Long getEmailNotificationCount() {
return emailNotificationCount;
}
public void setEmailNotificationCount(Long emailNotificationCount) {
this.emailNotificationCount = emailNotificationCount;
}
public MessageDetail emailNotificationCount(Long emailNotificationCount) {
this.emailNotificationCount = emailNotificationCount;
return this;
}
/**
* Get downloadReceiptCounts
* @return downloadReceiptCounts
**/
@JsonProperty("downloadReceiptCounts")
public List getDownloadReceiptCounts() {
return downloadReceiptCounts;
}
public void setDownloadReceiptCounts(List downloadReceiptCounts) {
this.downloadReceiptCounts = downloadReceiptCounts;
}
public MessageDetail downloadReceiptCounts(List downloadReceiptCounts) {
this.downloadReceiptCounts = downloadReceiptCounts;
return this;
}
public MessageDetail addDownloadReceiptCountsItem(MessageDownloadReceiptCount downloadReceiptCountsItem) {
this.downloadReceiptCounts.add(downloadReceiptCountsItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageDetail {\n");
sb.append(" messageId: ").append(toIndentedString(messageId)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" onBehalfOfUser: ").append(toIndentedString(onBehalfOfUser)).append("\n");
sb.append(" stream: ").append(toIndentedString(stream)).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" deliveryReceiptCount: ").append(toIndentedString(deliveryReceiptCount)).append("\n");
sb.append(" readReceiptCount: ").append(toIndentedString(readReceiptCount)).append("\n");
sb.append(" emailNotificationCount: ").append(toIndentedString(emailNotificationCount)).append("\n");
sb.append(" downloadReceiptCounts: ").append(toIndentedString(downloadReceiptCounts)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy