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.v2.guest.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.util.ArrayList;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.Serializable;
/**
* WebChatMemberInfo
*/publicclassWebChatMemberInfoimplementsSerializable{
private String id = null;
private String displayName = null;
private String firstName = null;
private String lastName = null;
private String email = null;
private String phoneNumber = null;
private String avatarImageUrl = null;
privatestaticclassRoleEnumDeserializerextendsStdDeserializer{
publicRoleEnumDeserializer(){
super(RoleEnumDeserializer.class);
}
@Overridepublic RoleEnum deserialize(JsonParser jsonParser, DeserializationContext ctxt)throws IOException {
JsonNode node = jsonParser.getCodec().readTree(jsonParser);
return RoleEnum.fromString(node.toString().replace("\"", ""));
}
}
/**
* The role of the member, one of [agent, customer, acd, workflow]
*/@JsonDeserialize(using = RoleEnumDeserializer.class)
publicenum RoleEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
AGENT("AGENT"),
CUSTOMER("CUSTOMER"),
WORKFLOW("WORKFLOW"),
ACD("ACD");
private String value;
RoleEnum(String value) {
this.value = value;
}
@JsonCreatorpublicstatic RoleEnum fromString(String key){
if (key == null) returnnull;
for (RoleEnum value : RoleEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return RoleEnum.values()[0];
}
@Override@JsonValuepublic String toString(){
return String.valueOf(value);
}
}
private RoleEnum role = null;
private Date joinDate = null;
private Date leaveDate = null;
private Boolean authenticatedGuest = null;
private Map customFields = null;
privatestaticclassStateEnumDeserializerextendsStdDeserializer{
publicStateEnumDeserializer(){
super(StateEnumDeserializer.class);
}
@Overridepublic StateEnum deserialize(JsonParser jsonParser, DeserializationContext ctxt)throws IOException {
JsonNode node = jsonParser.getCodec().readTree(jsonParser);
return StateEnum.fromString(node.toString().replace("\"", ""));
}
}
/**
* The connection state of this member.
*/@JsonDeserialize(using = StateEnumDeserializer.class)
publicenum StateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
CONNECTED("CONNECTED"),
DISCONNECTED("DISCONNECTED"),
ALERTING("ALERTING");
private String value;
StateEnum(String value) {
this.value = value;
}
@JsonCreatorpublicstatic StateEnum fromString(String key){
if (key == null) returnnull;
for (StateEnum value : StateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return StateEnum.values()[0];
}
@Override@JsonValuepublic String toString(){
return String.valueOf(value);
}
}
private StateEnum state = null;
/**
* The communicationId of this member.
**/public WebChatMemberInfo id(String id){
this.id = id;
returnthis;
}
@ApiModelProperty(example = "null", value = "The communicationId of this member.")
@JsonProperty("id")
public String getId(){
return id;
}
publicvoidsetId(String id){
this.id = id;
}
/**
* The display name of the member.
**/public WebChatMemberInfo displayName(String displayName){
this.displayName = displayName;
returnthis;
}
@ApiModelProperty(example = "null", value = "The display name of the member.")
@JsonProperty("displayName")
public String getDisplayName(){
return displayName;
}
publicvoidsetDisplayName(String displayName){
this.displayName = displayName;
}
/**
* The first name of the member.
**/public WebChatMemberInfo firstName(String firstName){
this.firstName = firstName;
returnthis;
}
@ApiModelProperty(example = "null", value = "The first name of the member.")
@JsonProperty("firstName")
public String getFirstName(){
return firstName;
}
publicvoidsetFirstName(String firstName){
this.firstName = firstName;
}
/**
* The last name of the member.
**/public WebChatMemberInfo lastName(String lastName){
this.lastName = lastName;
returnthis;
}
@ApiModelProperty(example = "null", value = "The last name of the member.")
@JsonProperty("lastName")
public String getLastName(){
return lastName;
}
publicvoidsetLastName(String lastName){
this.lastName = lastName;
}
/**
* The email address of the member.
**/public WebChatMemberInfo email(String email){
this.email = email;
returnthis;
}
@ApiModelProperty(example = "null", value = "The email address of the member.")
@JsonProperty("email")
public String getEmail(){
return email;
}
publicvoidsetEmail(String email){
this.email = email;
}
/**
* The phone number of the member.
**/public WebChatMemberInfo phoneNumber(String phoneNumber){
this.phoneNumber = phoneNumber;
returnthis;
}
@ApiModelProperty(example = "null", value = "The phone number of the member.")
@JsonProperty("phoneNumber")
public String getPhoneNumber(){
return phoneNumber;
}
publicvoidsetPhoneNumber(String phoneNumber){
this.phoneNumber = phoneNumber;
}
/**
* The url to the avatar image of the member.
**/public WebChatMemberInfo avatarImageUrl(String avatarImageUrl){
this.avatarImageUrl = avatarImageUrl;
returnthis;
}
@ApiModelProperty(example = "null", value = "The url to the avatar image of the member.")
@JsonProperty("avatarImageUrl")
public String getAvatarImageUrl(){
return avatarImageUrl;
}
publicvoidsetAvatarImageUrl(String avatarImageUrl){
this.avatarImageUrl = avatarImageUrl;
}
/**
* The role of the member, one of [agent, customer, acd, workflow]
**/public WebChatMemberInfo role(RoleEnum role){
this.role = role;
returnthis;
}
@ApiModelProperty(example = "null", required = true, value = "The role of the member, one of [agent, customer, acd, workflow]")
@JsonProperty("role")
public RoleEnum getRole(){
return role;
}
publicvoidsetRole(RoleEnum role){
this.role = role;
}
/**
* The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
**/public WebChatMemberInfo joinDate(Date joinDate){
this.joinDate = joinDate;
returnthis;
}
@ApiModelProperty(example = "null", value = "The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z")
@JsonProperty("joinDate")
public Date getJoinDate(){
return joinDate;
}
publicvoidsetJoinDate(Date joinDate){
this.joinDate = joinDate;
}
/**
* The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
**/public WebChatMemberInfo leaveDate(Date leaveDate){
this.leaveDate = leaveDate;
returnthis;
}
@ApiModelProperty(example = "null", value = "The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z")
@JsonProperty("leaveDate")
public Date getLeaveDate(){
return leaveDate;
}
publicvoidsetLeaveDate(Date leaveDate){
this.leaveDate = leaveDate;
}
/**
* If true, the guest member is an authenticated guest.
**/public WebChatMemberInfo authenticatedGuest(Boolean authenticatedGuest){
this.authenticatedGuest = authenticatedGuest;
returnthis;
}
@ApiModelProperty(example = "null", value = "If true, the guest member is an authenticated guest.")
@JsonProperty("authenticatedGuest")
public Boolean getAuthenticatedGuest(){
return authenticatedGuest;
}
publicvoidsetAuthenticatedGuest(Boolean authenticatedGuest){
this.authenticatedGuest = authenticatedGuest;
}
/**
* Any custom fields of information pertaining to this member.
**/public WebChatMemberInfo customFields(Map customFields){
this.customFields = customFields;
returnthis;
}
@ApiModelProperty(example = "null", value = "Any custom fields of information pertaining to this member.")
@JsonProperty("customFields")
public MapgetCustomFields(){
return customFields;
}
publicvoidsetCustomFields(Map customFields){
this.customFields = customFields;
}
/**
* The connection state of this member.
**/public WebChatMemberInfo state(StateEnum state){
this.state = state;
returnthis;
}
@ApiModelProperty(example = "null", value = "The connection state of this member.")
@JsonProperty("state")
public StateEnum getState(){
return state;
}
publicvoidsetState(StateEnum state){
this.state = state;
}
@Overridepublicbooleanequals(java.lang.Object o){
if (this == o) {
returntrue;
}
if (o == null || getClass() != o.getClass()) {
returnfalse;
}
WebChatMemberInfo webChatMemberInfo = (WebChatMemberInfo) o;
return Objects.equals(this.id, webChatMemberInfo.id) &&
Objects.equals(this.displayName, webChatMemberInfo.displayName) &&
Objects.equals(this.firstName, webChatMemberInfo.firstName) &&
Objects.equals(this.lastName, webChatMemberInfo.lastName) &&
Objects.equals(this.email, webChatMemberInfo.email) &&
Objects.equals(this.phoneNumber, webChatMemberInfo.phoneNumber) &&
Objects.equals(this.avatarImageUrl, webChatMemberInfo.avatarImageUrl) &&
Objects.equals(this.role, webChatMemberInfo.role) &&
Objects.equals(this.joinDate, webChatMemberInfo.joinDate) &&
Objects.equals(this.leaveDate, webChatMemberInfo.leaveDate) &&
Objects.equals(this.authenticatedGuest, webChatMemberInfo.authenticatedGuest) &&
Objects.equals(this.customFields, webChatMemberInfo.customFields) &&
Objects.equals(this.state, webChatMemberInfo.state);
}
@OverridepublicinthashCode(){
return Objects.hash(id, displayName, firstName, lastName, email, phoneNumber, avatarImageUrl, role, joinDate, leaveDate, authenticatedGuest, customFields, state);
}
@Overridepublic String toString(){
StringBuilder sb = new StringBuilder();
sb.append("class WebChatMemberInfo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" avatarImageUrl: ").append(toIndentedString(avatarImageUrl)).append("\n");
sb.append(" role: ").append(toIndentedString(role)).append("\n");
sb.append(" joinDate: ").append(toIndentedString(joinDate)).append("\n");
sb.append(" leaveDate: ").append(toIndentedString(leaveDate)).append("\n");
sb.append(" authenticatedGuest: ").append(toIndentedString(authenticatedGuest)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).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 ");
}
}