com.genesys.internal.workspace.model.MediachatinteractionsidsendsystemcommandData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workspace Show documentation
Show all versions of workspace Show documentation
A Java library to interface to Genesys Workspace public API
/*
* Workspace API
* Agent API
*
* OpenAPI spec version: 1.0.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 com.genesys.internal.workspace.model;
import java.util.Objects;
import com.genesys.internal.workspace.model.Kvpair;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* MediachatinteractionsidsendsystemcommandData
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-07-31T00:19:02.494Z")
public class MediachatinteractionsidsendsystemcommandData {
@SerializedName("message")
private String message = null;
/**
* Defines which participants in the chat can see the message.
*/
@JsonAdapter(VisibilityEnum.Adapter.class)
public enum VisibilityEnum {
ALL("All"),
AGENT("Agent"),
SUPERVISOR("Supervisor");
private String value;
VisibilityEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static VisibilityEnum fromValue(String text) {
for (VisibilityEnum b : VisibilityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final VisibilityEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public VisibilityEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return VisibilityEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("visibility")
private VisibilityEnum visibility = null;
@SerializedName("userData")
private List userData = null;
public MediachatinteractionsidsendsystemcommandData message(String message) {
this.message = message;
return this;
}
/**
* The message to send to the chat participants.
* @return message
**/
@ApiModelProperty(value = "The message to send to the chat participants.")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public MediachatinteractionsidsendsystemcommandData visibility(VisibilityEnum visibility) {
this.visibility = visibility;
return this;
}
/**
* Defines which participants in the chat can see the message.
* @return visibility
**/
@ApiModelProperty(value = "Defines which participants in the chat can see the message.")
public VisibilityEnum getVisibility() {
return visibility;
}
public void setVisibility(VisibilityEnum visibility) {
this.visibility = visibility;
}
public MediachatinteractionsidsendsystemcommandData userData(List userData) {
this.userData = userData;
return this;
}
public MediachatinteractionsidsendsystemcommandData addUserDataItem(Kvpair userDataItem) {
if (this.userData == null) {
this.userData = new ArrayList();
}
this.userData.add(userDataItem);
return this;
}
/**
* The data of system command. This is an array of objects with the properties key, type, and value.
* @return userData
**/
@ApiModelProperty(value = "The data of system command. This is an array of objects with the properties key, type, and value.")
public List getUserData() {
return userData;
}
public void setUserData(List userData) {
this.userData = userData;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MediachatinteractionsidsendsystemcommandData mediachatinteractionsidsendsystemcommandData = (MediachatinteractionsidsendsystemcommandData) o;
return Objects.equals(this.message, mediachatinteractionsidsendsystemcommandData.message) &&
Objects.equals(this.visibility, mediachatinteractionsidsendsystemcommandData.visibility) &&
Objects.equals(this.userData, mediachatinteractionsidsendsystemcommandData.userData);
}
@Override
public int hashCode() {
return Objects.hash(message, visibility, userData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MediachatinteractionsidsendsystemcommandData {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy