Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Agent API
* This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference
*
* OpenAPI spec version: 1.48.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.symphonyoss.symphony.agent.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.symphonyoss.symphony.agent.model.RoomTag;
import org.symphonyoss.symphony.agent.model.V2BaseMessage;
/**
* Generated when a room is created.
*/
@ApiModel(description = "Generated when a room is created.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class RoomCreatedMessage extends V2BaseMessage {
@JsonProperty("creationDate")
private Long creationDate = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("keywords")
private List keywords = new ArrayList();
@JsonProperty("description")
private String description = null;
@JsonProperty("createdByUserId")
private Long createdByUserId = null;
@JsonProperty("readOnly")
private Boolean readOnly = null;
@JsonProperty("discoverable")
private Boolean discoverable = null;
@JsonProperty("public")
private Boolean _public = null;
@JsonProperty("membersCanInvite")
private Boolean membersCanInvite = null;
@JsonProperty("copyProtected")
private Boolean copyProtected = null;
public RoomCreatedMessage creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Get creationDate
* @return creationDate
**/
@ApiModelProperty(example = "null", value = "")
public Long getCreationDate() {
return creationDate;
}
public void setCreationDate(Long creationDate) {
this.creationDate = creationDate;
}
public RoomCreatedMessage name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "null", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RoomCreatedMessage keywords(List keywords) {
this.keywords = keywords;
return this;
}
public RoomCreatedMessage addKeywordsItem(RoomTag keywordsItem) {
this.keywords.add(keywordsItem);
return this;
}
/**
* Get keywords
* @return keywords
**/
@ApiModelProperty(example = "null", value = "")
public List getKeywords() {
return keywords;
}
public void setKeywords(List keywords) {
this.keywords = keywords;
}
public RoomCreatedMessage description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "null", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public RoomCreatedMessage createdByUserId(Long createdByUserId) {
this.createdByUserId = createdByUserId;
return this;
}
/**
* The Symphony userId of the user who created the room.
* @return createdByUserId
**/
@ApiModelProperty(example = "null", value = "The Symphony userId of the user who created the room.")
public Long getCreatedByUserId() {
return createdByUserId;
}
public void setCreatedByUserId(Long createdByUserId) {
this.createdByUserId = createdByUserId;
}
public RoomCreatedMessage readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Get readOnly
* @return readOnly
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
public RoomCreatedMessage discoverable(Boolean discoverable) {
this.discoverable = discoverable;
return this;
}
/**
* Get discoverable
* @return discoverable
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getDiscoverable() {
return discoverable;
}
public void setDiscoverable(Boolean discoverable) {
this.discoverable = discoverable;
}
public RoomCreatedMessage _public(Boolean _public) {
this._public = _public;
return this;
}
/**
* Get _public
* @return _public
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getPublic() {
return _public;
}
public void setPublic(Boolean _public) {
this._public = _public;
}
public RoomCreatedMessage membersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
return this;
}
/**
* Get membersCanInvite
* @return membersCanInvite
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getMembersCanInvite() {
return membersCanInvite;
}
public void setMembersCanInvite(Boolean membersCanInvite) {
this.membersCanInvite = membersCanInvite;
}
public RoomCreatedMessage copyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
return this;
}
/**
* Get copyProtected
* @return copyProtected
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getCopyProtected() {
return copyProtected;
}
public void setCopyProtected(Boolean copyProtected) {
this.copyProtected = copyProtected;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RoomCreatedMessage roomCreatedMessage = (RoomCreatedMessage) o;
return Objects.equals(this.creationDate, roomCreatedMessage.creationDate) &&
Objects.equals(this.name, roomCreatedMessage.name) &&
Objects.equals(this.keywords, roomCreatedMessage.keywords) &&
Objects.equals(this.description, roomCreatedMessage.description) &&
Objects.equals(this.createdByUserId, roomCreatedMessage.createdByUserId) &&
Objects.equals(this.readOnly, roomCreatedMessage.readOnly) &&
Objects.equals(this.discoverable, roomCreatedMessage.discoverable) &&
Objects.equals(this._public, roomCreatedMessage._public) &&
Objects.equals(this.membersCanInvite, roomCreatedMessage.membersCanInvite) &&
Objects.equals(this.copyProtected, roomCreatedMessage.copyProtected) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(creationDate, name, keywords, description, createdByUserId, readOnly, discoverable, _public, membersCanInvite, copyProtected, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomCreatedMessage {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" createdByUserId: ").append(toIndentedString(createdByUserId)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
sb.append(" discoverable: ").append(toIndentedString(discoverable)).append("\n");
sb.append(" _public: ").append(toIndentedString(_public)).append("\n");
sb.append(" membersCanInvite: ").append(toIndentedString(membersCanInvite)).append("\n");
sb.append(" copyProtected: ").append(toIndentedString(copyProtected)).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 String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}