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.
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mypurecloud.sdk.model.Segment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
/**
* ConversationChat
*/
public class ConversationChat implements Serializable {
/**
* The connection state of this communication.
*/
public enum StateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
ALERTING("alerting"),
DIALING("dialing"),
CONTACTING("contacting"),
OFFERING("offering"),
CONNECTED("connected"),
DISCONNECTED("disconnected"),
TERMINATED("terminated"),
NONE("none");
private String value;
StateEnum(String value) {
this.value = value;
}
@JsonCreator
public static StateEnum fromString(String key) {
if (key == null) return null;
for (StateEnum value : StateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return StateEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private StateEnum state = null;
private String id = null;
private String roomId = null;
private String recordingId = null;
private List segments = new ArrayList();
private Boolean held = null;
/**
* The direction of the chat
*/
public enum DirectionEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
INBOUND("inbound"),
OUTBOUND("outbound");
private String value;
DirectionEnum(String value) {
this.value = value;
}
@JsonCreator
public static DirectionEnum fromString(String key) {
if (key == null) return null;
for (DirectionEnum value : DirectionEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return DirectionEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private DirectionEnum direction = null;
/**
* System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
*/
public enum DisconnectTypeEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
ENDPOINT("endpoint"),
CLIENT("client"),
SYSTEM("system"),
TRANSFER("transfer"),
TRANSFER_CONFERENCE("transfer.conference"),
TRANSFER_CONSULT("transfer.consult"),
TRANSFER_FORWARD("transfer.forward"),
ERROR("error"),
PEER("peer"),
OTHER("other"),
UNCALLABLE("uncallable");
private String value;
DisconnectTypeEnum(String value) {
this.value = value;
}
@JsonCreator
public static DisconnectTypeEnum fromString(String key) {
if (key == null) return null;
for (DisconnectTypeEnum value : DisconnectTypeEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return DisconnectTypeEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private DisconnectTypeEnum disconnectType = null;
private Date startHoldTime = null;
private Date connectedTime = null;
private Date disconnectedTime = null;
private String provider = null;
/**
* The connection state of this communication.
**/
public ConversationChat state(StateEnum state) {
this.state = state;
return this;
}
@ApiModelProperty(example = "null", value = "The connection state of this communication.")
@JsonProperty("state")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
/**
* A globally unique identifier for this communication.
**/
public ConversationChat id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "A globally unique identifier for this communication.")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
* The room id for the chat.
**/
public ConversationChat roomId(String roomId) {
this.roomId = roomId;
return this;
}
@ApiModelProperty(example = "null", value = "The room id for the chat.")
@JsonProperty("roomId")
public String getRoomId() {
return roomId;
}
public void setRoomId(String roomId) {
this.roomId = roomId;
}
/**
* A globally unique identifier for the recording associated with this chat.
**/
public ConversationChat recordingId(String recordingId) {
this.recordingId = recordingId;
return this;
}
@ApiModelProperty(example = "null", value = "A globally unique identifier for the recording associated with this chat.")
@JsonProperty("recordingId")
public String getRecordingId() {
return recordingId;
}
public void setRecordingId(String recordingId) {
this.recordingId = recordingId;
}
/**
* The time line of the participant's chat, divided into activity segments.
**/
public ConversationChat segments(List segments) {
this.segments = segments;
return this;
}
@ApiModelProperty(example = "null", value = "The time line of the participant's chat, divided into activity segments.")
@JsonProperty("segments")
public List getSegments() {
return segments;
}
public void setSegments(List segments) {
this.segments = segments;
}
/**
* True if this call is held and the person on this side hears silence.
**/
public ConversationChat held(Boolean held) {
this.held = held;
return this;
}
@ApiModelProperty(example = "null", value = "True if this call is held and the person on this side hears silence.")
@JsonProperty("held")
public Boolean getHeld() {
return held;
}
public void setHeld(Boolean held) {
this.held = held;
}
/**
* The direction of the chat
**/
public ConversationChat direction(DirectionEnum direction) {
this.direction = direction;
return this;
}
@ApiModelProperty(example = "null", value = "The direction of the chat")
@JsonProperty("direction")
public DirectionEnum getDirection() {
return direction;
}
public void setDirection(DirectionEnum direction) {
this.direction = direction;
}
/**
* System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
**/
public ConversationChat disconnectType(DisconnectTypeEnum disconnectType) {
this.disconnectType = disconnectType;
return this;
}
@ApiModelProperty(example = "null", value = "System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.")
@JsonProperty("disconnectType")
public DisconnectTypeEnum getDisconnectType() {
return disconnectType;
}
public void setDisconnectType(DisconnectTypeEnum disconnectType) {
this.disconnectType = disconnectType;
}
/**
* The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public ConversationChat startHoldTime(Date startHoldTime) {
this.startHoldTime = startHoldTime;
return this;
}
@ApiModelProperty(example = "null", value = "The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("startHoldTime")
public Date getStartHoldTime() {
return startHoldTime;
}
public void setStartHoldTime(Date startHoldTime) {
this.startHoldTime = startHoldTime;
}
/**
* The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public ConversationChat connectedTime(Date connectedTime) {
this.connectedTime = connectedTime;
return this;
}
@ApiModelProperty(example = "null", value = "The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("connectedTime")
public Date getConnectedTime() {
return connectedTime;
}
public void setConnectedTime(Date connectedTime) {
this.connectedTime = connectedTime;
}
/**
* The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public ConversationChat disconnectedTime(Date disconnectedTime) {
this.disconnectedTime = disconnectedTime;
return this;
}
@ApiModelProperty(example = "null", value = "The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("disconnectedTime")
public Date getDisconnectedTime() {
return disconnectedTime;
}
public void setDisconnectedTime(Date disconnectedTime) {
this.disconnectedTime = disconnectedTime;
}
/**
* The source provider for the email.
**/
public ConversationChat provider(String provider) {
this.provider = provider;
return this;
}
@ApiModelProperty(example = "null", value = "The source provider for the email.")
@JsonProperty("provider")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConversationChat conversationChat = (ConversationChat) o;
return Objects.equals(this.state, conversationChat.state) &&
Objects.equals(this.id, conversationChat.id) &&
Objects.equals(this.roomId, conversationChat.roomId) &&
Objects.equals(this.recordingId, conversationChat.recordingId) &&
Objects.equals(this.segments, conversationChat.segments) &&
Objects.equals(this.held, conversationChat.held) &&
Objects.equals(this.direction, conversationChat.direction) &&
Objects.equals(this.disconnectType, conversationChat.disconnectType) &&
Objects.equals(this.startHoldTime, conversationChat.startHoldTime) &&
Objects.equals(this.connectedTime, conversationChat.connectedTime) &&
Objects.equals(this.disconnectedTime, conversationChat.disconnectedTime) &&
Objects.equals(this.provider, conversationChat.provider);
}
@Override
public int hashCode() {
return Objects.hash(state, id, roomId, recordingId, segments, held, direction, disconnectType, startHoldTime, connectedTime, disconnectedTime, provider);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConversationChat {\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n");
sb.append(" recordingId: ").append(toIndentedString(recordingId)).append("\n");
sb.append(" segments: ").append(toIndentedString(segments)).append("\n");
sb.append(" held: ").append(toIndentedString(held)).append("\n");
sb.append(" direction: ").append(toIndentedString(direction)).append("\n");
sb.append(" disconnectType: ").append(toIndentedString(disconnectType)).append("\n");
sb.append(" startHoldTime: ").append(toIndentedString(startHoldTime)).append("\n");
sb.append(" connectedTime: ").append(toIndentedString(connectedTime)).append("\n");
sb.append(" disconnectedTime: ").append(toIndentedString(disconnectedTime)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).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 ");
}
}