284 lines
11 KiB
Java
284 lines
11 KiB
Java
|
package com.scb.phone.data.entity.nhox;
|
||
|
|
||
|
import com.google.firebase.firestore.FieldValue;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import o.C13396fZU;
|
||
|
import o.C14856gaP;
|
||
|
import o.C14953gcr;
|
||
|
import o.C14957gcv;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class NhoxLiveChatFirestoreAddRequestQueryParam {
|
||
|
public static final Companion Companion = new Companion(null);
|
||
|
private final String createDate;
|
||
|
private final String email;
|
||
|
private final String endProcessFlag;
|
||
|
private final String envType;
|
||
|
private final String firstName;
|
||
|
private final String identifyId;
|
||
|
private final String issueSelected;
|
||
|
private final String lastName;
|
||
|
private final String mobile;
|
||
|
private final String screen;
|
||
|
|
||
|
public NhoxLiveChatFirestoreAddRequestQueryParam(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
C14957gcv.e(str4, "");
|
||
|
C14957gcv.e(str5, "");
|
||
|
C14957gcv.e(str6, "");
|
||
|
C14957gcv.e(str7, "");
|
||
|
C14957gcv.e(str8, "");
|
||
|
C14957gcv.e(str9, "");
|
||
|
C14957gcv.e(str10, "");
|
||
|
this.identifyId = str;
|
||
|
this.firstName = str2;
|
||
|
this.lastName = str3;
|
||
|
this.email = str4;
|
||
|
this.mobile = str5;
|
||
|
this.createDate = str6;
|
||
|
this.endProcessFlag = str7;
|
||
|
this.issueSelected = str8;
|
||
|
this.screen = str9;
|
||
|
this.envType = str10;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class Companion {
|
||
|
private Companion() {
|
||
|
}
|
||
|
|
||
|
public final NhoxLiveChatFirestoreAddRequestQueryParam from(Map<String, ? extends Object> map) {
|
||
|
C14957gcv.e(map, "");
|
||
|
Object obj = map.get("identifyId");
|
||
|
String str = obj instanceof String ? (String) obj : null;
|
||
|
if (str == null) {
|
||
|
return null;
|
||
|
}
|
||
|
Object obj2 = map.get("firstName");
|
||
|
String str2 = obj2 instanceof String ? (String) obj2 : null;
|
||
|
String str3 = str2 == null ? "" : str2;
|
||
|
Object obj3 = map.get("lastName");
|
||
|
String str4 = obj3 instanceof String ? (String) obj3 : null;
|
||
|
String str5 = str4 == null ? "" : str4;
|
||
|
Object obj4 = map.get("email");
|
||
|
String str6 = obj4 instanceof String ? (String) obj4 : null;
|
||
|
String str7 = str6 == null ? "" : str6;
|
||
|
Object obj5 = map.get("mobile");
|
||
|
String str8 = obj5 instanceof String ? (String) obj5 : null;
|
||
|
String str9 = str8 == null ? "" : str8;
|
||
|
Object obj6 = map.get("createDate");
|
||
|
String str10 = obj6 instanceof String ? (String) obj6 : null;
|
||
|
if (str10 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
Object obj7 = map.get("endProcessFlag");
|
||
|
String str11 = obj7 instanceof String ? (String) obj7 : null;
|
||
|
String str12 = str11 == null ? "" : str11;
|
||
|
Object obj8 = map.get("issueSelected");
|
||
|
String str13 = obj8 instanceof String ? (String) obj8 : null;
|
||
|
String str14 = str13 == null ? "" : str13;
|
||
|
Object obj9 = map.get("screen");
|
||
|
String str15 = obj9 instanceof String ? (String) obj9 : null;
|
||
|
String str16 = str15 == null ? "" : str15;
|
||
|
Object obj10 = map.get("envType");
|
||
|
String str17 = obj10 instanceof String ? (String) obj10 : null;
|
||
|
if (str17 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return new NhoxLiveChatFirestoreAddRequestQueryParam(str, str3, str5, str7, str9, str10, str12, str14, str16, str17);
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Companion(C14953gcr c14953gcr) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final String getCollectionPath() {
|
||
|
String str = this.envType;
|
||
|
String str2 = this.identifyId;
|
||
|
StringBuilder sb = new StringBuilder("live-chat-");
|
||
|
sb.append(str);
|
||
|
sb.append("/");
|
||
|
sb.append(str2);
|
||
|
sb.append("/requests");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
private final List<HashMap<String, String>> createMessageList() {
|
||
|
C13396fZU[] c13396fZUArr = {new C13396fZU("type", "text"), new C13396fZU("text", "เริ่มการสนทนา")};
|
||
|
C14957gcv.e(c13396fZUArr, "");
|
||
|
HashMap hashMap = new HashMap(C14856gaP.a(2));
|
||
|
C14856gaP.e(hashMap, c13396fZUArr);
|
||
|
HashMap[] hashMapArr = {hashMap};
|
||
|
C14957gcv.e(hashMapArr, "");
|
||
|
List<HashMap<String, String>> asList = Arrays.asList(hashMapArr);
|
||
|
C14957gcv.c(asList, "");
|
||
|
return asList;
|
||
|
}
|
||
|
|
||
|
private final HashMap<String, Object> createMessages() {
|
||
|
C13396fZU[] c13396fZUArr = {new C13396fZU("to", "ChatX"), new C13396fZU("timestamp", this.createDate), new C13396fZU("message", createMessageList())};
|
||
|
C14957gcv.e(c13396fZUArr, "");
|
||
|
HashMap<String, Object> hashMap = new HashMap<>(C14856gaP.a(3));
|
||
|
C14856gaP.e(hashMap, c13396fZUArr);
|
||
|
return hashMap;
|
||
|
}
|
||
|
|
||
|
public final HashMap<String, Object> createStartConversation() {
|
||
|
C13396fZU[] c13396fZUArr = {new C13396fZU("firstName", this.firstName), new C13396fZU("lastName", this.lastName), new C13396fZU("identifyId", this.identifyId), new C13396fZU("email", this.email), new C13396fZU("mobile", this.mobile), new C13396fZU("createDate", this.createDate), new C13396fZU("endProcessFlag", this.endProcessFlag), new C13396fZU("issueSelected", this.issueSelected), new C13396fZU("messages", FieldValue.arrayUnion(createMessages())), new C13396fZU("screen", this.screen)};
|
||
|
C14957gcv.e(c13396fZUArr, "");
|
||
|
HashMap<String, Object> hashMap = new HashMap<>(C14856gaP.a(10));
|
||
|
C14856gaP.e(hashMap, c13396fZUArr);
|
||
|
return hashMap;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
String str = this.identifyId;
|
||
|
String str2 = this.firstName;
|
||
|
String str3 = this.lastName;
|
||
|
String str4 = this.email;
|
||
|
String str5 = this.mobile;
|
||
|
String str6 = this.createDate;
|
||
|
String str7 = this.endProcessFlag;
|
||
|
String str8 = this.issueSelected;
|
||
|
String str9 = this.screen;
|
||
|
String str10 = this.envType;
|
||
|
StringBuilder sb = new StringBuilder("NhoxLiveChatFirestoreAddRequestQueryParam(identifyId=");
|
||
|
sb.append(str);
|
||
|
sb.append(", firstName=");
|
||
|
sb.append(str2);
|
||
|
sb.append(", lastName=");
|
||
|
sb.append(str3);
|
||
|
sb.append(", email=");
|
||
|
sb.append(str4);
|
||
|
sb.append(", mobile=");
|
||
|
sb.append(str5);
|
||
|
sb.append(", createDate=");
|
||
|
sb.append(str6);
|
||
|
sb.append(", endProcessFlag=");
|
||
|
sb.append(str7);
|
||
|
sb.append(", issueSelected=");
|
||
|
sb.append(str8);
|
||
|
sb.append(", screen=");
|
||
|
sb.append(str9);
|
||
|
sb.append(", envType=");
|
||
|
sb.append(str10);
|
||
|
sb.append(")");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return (((((((((((((((((this.identifyId.hashCode() * 31) + this.firstName.hashCode()) * 31) + this.lastName.hashCode()) * 31) + this.email.hashCode()) * 31) + this.mobile.hashCode()) * 31) + this.createDate.hashCode()) * 31) + this.endProcessFlag.hashCode()) * 31) + this.issueSelected.hashCode()) * 31) + this.screen.hashCode()) * 31) + this.envType.hashCode();
|
||
|
}
|
||
|
|
||
|
public final String getScreen() {
|
||
|
return this.screen;
|
||
|
}
|
||
|
|
||
|
public final String getMobile() {
|
||
|
return this.mobile;
|
||
|
}
|
||
|
|
||
|
public final String getLastName() {
|
||
|
return this.lastName;
|
||
|
}
|
||
|
|
||
|
public final String getIssueSelected() {
|
||
|
return this.issueSelected;
|
||
|
}
|
||
|
|
||
|
public final String getIdentifyId() {
|
||
|
return this.identifyId;
|
||
|
}
|
||
|
|
||
|
public final String getFirstName() {
|
||
|
return this.firstName;
|
||
|
}
|
||
|
|
||
|
public final String getEnvType() {
|
||
|
return this.envType;
|
||
|
}
|
||
|
|
||
|
public final String getEndProcessFlag() {
|
||
|
return this.endProcessFlag;
|
||
|
}
|
||
|
|
||
|
public final String getEmail() {
|
||
|
return this.email;
|
||
|
}
|
||
|
|
||
|
public final String getCreateDate() {
|
||
|
return this.createDate;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof NhoxLiveChatFirestoreAddRequestQueryParam)) {
|
||
|
return false;
|
||
|
}
|
||
|
NhoxLiveChatFirestoreAddRequestQueryParam nhoxLiveChatFirestoreAddRequestQueryParam = (NhoxLiveChatFirestoreAddRequestQueryParam) obj;
|
||
|
return C14957gcv.b((Object) this.identifyId, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.identifyId) && C14957gcv.b((Object) this.firstName, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.firstName) && C14957gcv.b((Object) this.lastName, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.lastName) && C14957gcv.b((Object) this.email, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.email) && C14957gcv.b((Object) this.mobile, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.mobile) && C14957gcv.b((Object) this.createDate, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.createDate) && C14957gcv.b((Object) this.endProcessFlag, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.endProcessFlag) && C14957gcv.b((Object) this.issueSelected, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.issueSelected) && C14957gcv.b((Object) this.screen, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.screen) && C14957gcv.b((Object) this.envType, (Object) nhoxLiveChatFirestoreAddRequestQueryParam.envType);
|
||
|
}
|
||
|
|
||
|
public final NhoxLiveChatFirestoreAddRequestQueryParam copy(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10) {
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(str3, "");
|
||
|
C14957gcv.e(str4, "");
|
||
|
C14957gcv.e(str5, "");
|
||
|
C14957gcv.e(str6, "");
|
||
|
C14957gcv.e(str7, "");
|
||
|
C14957gcv.e(str8, "");
|
||
|
C14957gcv.e(str9, "");
|
||
|
C14957gcv.e(str10, "");
|
||
|
return new NhoxLiveChatFirestoreAddRequestQueryParam(str, str2, str3, str4, str5, str6, str7, str8, str9, str10);
|
||
|
}
|
||
|
|
||
|
public final String component9() {
|
||
|
return this.screen;
|
||
|
}
|
||
|
|
||
|
public final String component8() {
|
||
|
return this.issueSelected;
|
||
|
}
|
||
|
|
||
|
public final String component7() {
|
||
|
return this.endProcessFlag;
|
||
|
}
|
||
|
|
||
|
public final String component6() {
|
||
|
return this.createDate;
|
||
|
}
|
||
|
|
||
|
public final String component5() {
|
||
|
return this.mobile;
|
||
|
}
|
||
|
|
||
|
public final String component4() {
|
||
|
return this.email;
|
||
|
}
|
||
|
|
||
|
public final String component3() {
|
||
|
return this.lastName;
|
||
|
}
|
||
|
|
||
|
public final String component2() {
|
||
|
return this.firstName;
|
||
|
}
|
||
|
|
||
|
public final String component10() {
|
||
|
return this.envType;
|
||
|
}
|
||
|
|
||
|
public final String component1() {
|
||
|
return this.identifyId;
|
||
|
}
|
||
|
}
|