314 lines
11 KiB
Java
314 lines
11 KiB
Java
package com.scb.phone.data.entity.nhox;
|
|
|
|
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
|
|
import java.io.Serializable;
|
|
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;
|
|
import o.SDK;
|
|
import o.gdZ;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class NhoxLiveChatFirestoreAddMessageQueryParam {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final String documentId;
|
|
private final String envType;
|
|
private final String identifyId;
|
|
private final String label;
|
|
private final String subTemplateId;
|
|
private final String templateId;
|
|
private final String text;
|
|
private final String timestamp;
|
|
private final String to;
|
|
|
|
public NhoxLiveChatFirestoreAddMessageQueryParam(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9) {
|
|
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, "");
|
|
this.to = str;
|
|
this.text = str2;
|
|
this.identifyId = str3;
|
|
this.label = str4;
|
|
this.documentId = str5;
|
|
this.timestamp = str6;
|
|
this.envType = str7;
|
|
this.templateId = str8;
|
|
this.subTemplateId = str9;
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public final NhoxLiveChatFirestoreAddMessageQueryParam from(Map<String, ? extends Object> map) {
|
|
C14957gcv.e(map, "");
|
|
Object obj = map.get("to");
|
|
String str = obj instanceof String ? (String) obj : null;
|
|
if (str == null) {
|
|
str = "ChatX";
|
|
}
|
|
String str2 = str;
|
|
Object obj2 = map.get("text");
|
|
String str3 = obj2 instanceof String ? (String) obj2 : null;
|
|
String str4 = str3 == null ? "" : str3;
|
|
Object obj3 = map.get("identifyId");
|
|
String str5 = obj3 instanceof String ? (String) obj3 : null;
|
|
if (str5 == null) {
|
|
return null;
|
|
}
|
|
Object obj4 = map.get("label");
|
|
String str6 = obj4 instanceof String ? (String) obj4 : null;
|
|
if (str6 == null) {
|
|
return null;
|
|
}
|
|
Object obj5 = map.get("documentId");
|
|
String str7 = obj5 instanceof String ? (String) obj5 : null;
|
|
if (str7 == null) {
|
|
return null;
|
|
}
|
|
Object obj6 = map.get("timestamp");
|
|
String str8 = obj6 instanceof String ? (String) obj6 : null;
|
|
if (str8 == null) {
|
|
return null;
|
|
}
|
|
Object obj7 = map.get("envType");
|
|
String str9 = obj7 instanceof String ? (String) obj7 : null;
|
|
if (str9 == null) {
|
|
return null;
|
|
}
|
|
Object obj8 = map.get("templateId");
|
|
String str10 = obj8 instanceof String ? (String) obj8 : null;
|
|
String str11 = str10 == null ? "" : str10;
|
|
Object obj9 = map.get("subTemplateId");
|
|
String str12 = obj9 instanceof String ? (String) obj9 : null;
|
|
return new NhoxLiveChatFirestoreAddMessageQueryParam(str2, str4, str5, str6, str7, str8, str9, str11, str12 == null ? "" : str12);
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
public final HashMap<String, String> getSplitText() {
|
|
String str;
|
|
String str2;
|
|
String str3;
|
|
if (this.text.length() > 0) {
|
|
List<String> e = gdZ.e(this.text, new String[]{HiAnalyticsConstant.REPORT_VAL_SEPARATOR});
|
|
int size = e.size();
|
|
Integer num = SDK.d;
|
|
C14957gcv.c(num, "");
|
|
if (size >= num.intValue()) {
|
|
if (e.get(0).length() == 0) {
|
|
str = e.get(1);
|
|
str2 = str;
|
|
str3 = "";
|
|
C13396fZU[] c13396fZUArr = {new C13396fZU("productSelected", str2), new C13396fZU("issueSelected", str3)};
|
|
C14957gcv.e(c13396fZUArr, "");
|
|
HashMap<String, String> hashMap = new HashMap<>(C14856gaP.a(2));
|
|
C14856gaP.e(hashMap, c13396fZUArr);
|
|
return hashMap;
|
|
}
|
|
str2 = e.get(0);
|
|
str3 = e.get(1);
|
|
C13396fZU[] c13396fZUArr2 = {new C13396fZU("productSelected", str2), new C13396fZU("issueSelected", str3)};
|
|
C14957gcv.e(c13396fZUArr2, "");
|
|
HashMap<String, String> hashMap2 = new HashMap<>(C14856gaP.a(2));
|
|
C14856gaP.e(hashMap2, c13396fZUArr2);
|
|
return hashMap2;
|
|
}
|
|
}
|
|
str = "";
|
|
str2 = str;
|
|
str3 = "";
|
|
C13396fZU[] c13396fZUArr22 = {new C13396fZU("productSelected", str2), new C13396fZU("issueSelected", str3)};
|
|
C14957gcv.e(c13396fZUArr22, "");
|
|
HashMap<String, String> hashMap22 = new HashMap<>(C14856gaP.a(2));
|
|
C14856gaP.e(hashMap22, c13396fZUArr22);
|
|
return hashMap22;
|
|
}
|
|
|
|
private final List<HashMap<String, Serializable>> createMessageList() {
|
|
C13396fZU[] c13396fZUArr = {new C13396fZU("type", "text"), new C13396fZU("text", this.label), new C13396fZU("template", createTemplate())};
|
|
C14957gcv.e(c13396fZUArr, "");
|
|
HashMap hashMap = new HashMap(C14856gaP.a(3));
|
|
C14856gaP.e(hashMap, c13396fZUArr);
|
|
HashMap[] hashMapArr = {hashMap};
|
|
C14957gcv.e(hashMapArr, "");
|
|
List<HashMap<String, Serializable>> asList = Arrays.asList(hashMapArr);
|
|
C14957gcv.c(asList, "");
|
|
return asList;
|
|
}
|
|
|
|
public final HashMap<String, Object> createMessages() {
|
|
C13396fZU[] c13396fZUArr = {new C13396fZU("timestamp", this.timestamp), new C13396fZU("to", this.to), 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> createTemplate() {
|
|
C13396fZU[] c13396fZUArr = {new C13396fZU("subTemplateId", this.subTemplateId)};
|
|
C14957gcv.e(c13396fZUArr, "");
|
|
HashMap<String, Object> hashMap = new HashMap<>(C14856gaP.a(1));
|
|
C14856gaP.e(hashMap, c13396fZUArr);
|
|
return hashMap;
|
|
}
|
|
|
|
public final String toString() {
|
|
String str = this.to;
|
|
String str2 = this.text;
|
|
String str3 = this.identifyId;
|
|
String str4 = this.label;
|
|
String str5 = this.documentId;
|
|
String str6 = this.timestamp;
|
|
String str7 = this.envType;
|
|
String str8 = this.templateId;
|
|
String str9 = this.subTemplateId;
|
|
StringBuilder sb = new StringBuilder("NhoxLiveChatFirestoreAddMessageQueryParam(to=");
|
|
sb.append(str);
|
|
sb.append(", text=");
|
|
sb.append(str2);
|
|
sb.append(", identifyId=");
|
|
sb.append(str3);
|
|
sb.append(", label=");
|
|
sb.append(str4);
|
|
sb.append(", documentId=");
|
|
sb.append(str5);
|
|
sb.append(", timestamp=");
|
|
sb.append(str6);
|
|
sb.append(", envType=");
|
|
sb.append(str7);
|
|
sb.append(", templateId=");
|
|
sb.append(str8);
|
|
sb.append(", subTemplateId=");
|
|
sb.append(str9);
|
|
sb.append(")");
|
|
return sb.toString();
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return (((((((((((((((this.to.hashCode() * 31) + this.text.hashCode()) * 31) + this.identifyId.hashCode()) * 31) + this.label.hashCode()) * 31) + this.documentId.hashCode()) * 31) + this.timestamp.hashCode()) * 31) + this.envType.hashCode()) * 31) + this.templateId.hashCode()) * 31) + this.subTemplateId.hashCode();
|
|
}
|
|
|
|
public final String getTo() {
|
|
return this.to;
|
|
}
|
|
|
|
public final String getTimestamp() {
|
|
return this.timestamp;
|
|
}
|
|
|
|
public final String getText() {
|
|
return this.text;
|
|
}
|
|
|
|
public final String getTemplateId() {
|
|
return this.templateId;
|
|
}
|
|
|
|
public final String getSubTemplateId() {
|
|
return this.subTemplateId;
|
|
}
|
|
|
|
public final String getLabel() {
|
|
return this.label;
|
|
}
|
|
|
|
public final String getIdentifyId() {
|
|
return this.identifyId;
|
|
}
|
|
|
|
public final String getEnvType() {
|
|
return this.envType;
|
|
}
|
|
|
|
public final String getDocumentId() {
|
|
return this.documentId;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof NhoxLiveChatFirestoreAddMessageQueryParam)) {
|
|
return false;
|
|
}
|
|
NhoxLiveChatFirestoreAddMessageQueryParam nhoxLiveChatFirestoreAddMessageQueryParam = (NhoxLiveChatFirestoreAddMessageQueryParam) obj;
|
|
return C14957gcv.b((Object) this.to, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.to) && C14957gcv.b((Object) this.text, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.text) && C14957gcv.b((Object) this.identifyId, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.identifyId) && C14957gcv.b((Object) this.label, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.label) && C14957gcv.b((Object) this.documentId, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.documentId) && C14957gcv.b((Object) this.timestamp, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.timestamp) && C14957gcv.b((Object) this.envType, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.envType) && C14957gcv.b((Object) this.templateId, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.templateId) && C14957gcv.b((Object) this.subTemplateId, (Object) nhoxLiveChatFirestoreAddMessageQueryParam.subTemplateId);
|
|
}
|
|
|
|
public final NhoxLiveChatFirestoreAddMessageQueryParam copy(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9) {
|
|
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, "");
|
|
return new NhoxLiveChatFirestoreAddMessageQueryParam(str, str2, str3, str4, str5, str6, str7, str8, str9);
|
|
}
|
|
|
|
public final String component9() {
|
|
return this.subTemplateId;
|
|
}
|
|
|
|
public final String component8() {
|
|
return this.templateId;
|
|
}
|
|
|
|
public final String component7() {
|
|
return this.envType;
|
|
}
|
|
|
|
public final String component6() {
|
|
return this.timestamp;
|
|
}
|
|
|
|
public final String component5() {
|
|
return this.documentId;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.label;
|
|
}
|
|
|
|
public final String component3() {
|
|
return this.identifyId;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.text;
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.to;
|
|
}
|
|
}
|