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 com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V2BaseMessage
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "v2messageType", visible = true )
@JsonSubTypes({
@JsonSubTypes.Type(value = UserLeftRoomMessage.class, name = "UserLeftRoomMessage"),
@JsonSubTypes.Type(value = ConnectionRequestMessage.class, name = "ConnectionRequestMessage"),
@JsonSubTypes.Type(value = RoomMemberPromotedToOwnerMessage.class, name = "RoomMemberPromotedToOwnerMessage"),
@JsonSubTypes.Type(value = RoomMemberDemotedFromOwnerMessage.class, name = "RoomMemberDemotedFromOwnerMessage"),
@JsonSubTypes.Type(value = RoomDeactivatedMessage.class, name = "RoomDeactivatedMessage"),
@JsonSubTypes.Type(value = V2Message.class, name = "V2Message"),
@JsonSubTypes.Type(value = RoomCreatedMessage.class, name = "RoomCreatedMessage"),
@JsonSubTypes.Type(value = RoomUpdatedMessage.class, name = "RoomUpdatedMessage"),
@JsonSubTypes.Type(value = UserJoinedRoomMessage.class, name = "UserJoinedRoomMessage"),
@JsonSubTypes.Type(value = RoomReactivatedMessage.class, name = "RoomReactivatedMessage"),
})
public class V2BaseMessage {
@JsonProperty("id")
private String id = null;
@JsonProperty("timestamp")
private String timestamp = null;
@JsonProperty("v2messageType")
private String v2messageType = null;
@JsonProperty("streamId")
private String streamId = null;
public V2BaseMessage id(String id) {
this.id = id;
return this;
}
/**
* The messageId is assigned by the ingestor service when a message is sent.
* @return id
**/
@ApiModelProperty(example = "null", value = "The messageId is assigned by the ingestor service when a message is sent.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V2BaseMessage timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Get timestamp
* @return timestamp
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public V2BaseMessage v2messageType(String v2messageType) {
this.v2messageType = v2messageType;
return this;
}
/**
* Get v2messageType
* @return v2messageType
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getV2messageType() {
return v2messageType;
}
public void setV2messageType(String v2messageType) {
this.v2messageType = v2messageType;
}
public V2BaseMessage streamId(String streamId) {
this.streamId = streamId;
return this;
}
/**
* Get streamId
* @return streamId
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getStreamId() {
return streamId;
}
public void setStreamId(String streamId) {
this.streamId = streamId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V2BaseMessage v2BaseMessage = (V2BaseMessage) o;
return Objects.equals(this.id, v2BaseMessage.id) &&
Objects.equals(this.timestamp, v2BaseMessage.timestamp) &&
Objects.equals(this.v2messageType, v2BaseMessage.v2messageType) &&
Objects.equals(this.streamId, v2BaseMessage.streamId);
}
@Override
public int hashCode() {
return Objects.hash(id, timestamp, v2messageType, streamId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V2BaseMessage {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" v2messageType: ").append(toIndentedString(v2messageType)).append("\n");
sb.append(" streamId: ").append(toIndentedString(streamId)).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 ");
}
}