discord-jadx/app/src/main/java/com/discord/utilities/analytics/Traits.java

757 lines
25 KiB
Java

package com.discord.utilities.analytics;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.models.domain.premium.SubscriptionPlanType;
import d0.z.d.m;
import java.io.Serializable;
import java.util.Map;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: Traits.kt */
public final class Traits {
public static final Traits INSTANCE = new Traits();
/* compiled from: Traits.kt */
public static final class Location implements Serializable {
private final String _object;
private final String objectType;
private final String page;
private final Integer promotionId;
private final String section;
/* compiled from: Traits.kt */
public static final class Obj {
public static final String BUTTON_CTA = "Button CTA";
public static final String BUTTON_UPSELL = "Button Upsell";
public static final String EDIT_PROFILE_BANNER = "Edit Profile Banner";
public static final Obj INSTANCE = new Obj();
private Obj() {
}
}
/* compiled from: Traits.kt */
public static final class ObjType {
public static final ObjType INSTANCE = new ObjType();
public static final String SEARCH = "Search";
private ObjType() {
}
}
/* compiled from: Traits.kt */
public static final class Section {
public static final String CHANNEL_TEXT_AREA = "Channel Text Area";
public static final String EMOJI_PICKER_POPOUT = "Emoji Picker Popout";
public static final String EMOJI_SHEET_UPSELL = "Emoji Upsell Popout";
public static final String EMPTY_STICKER_PICKER_UPSELL = "Empty Sticker Picker Upsell";
public static final String EXPRESSION_PICKER = "Expression Picker";
public static final String FOOTER = "Footer";
public static final String HEADER = "Header";
public static final Section INSTANCE = new Section();
public static final String PROFILE_CUSTOMIZATION = "Profile Customization";
public static final String SETTINGS_TEXT_AND_IMAGES = "Text & Images";
public static final String STICKER_PICKER_UPSELL = "Sticker Picker Upsell";
public static final String STICKER_POPOUT = "Sticker Popout";
public static final String STICKER_PREMIUM_TIER_2_UPSELL_MODAL = "Stickers Nitro Upsell Modal";
private Section() {
}
}
public Location() {
this(null, null, null, null, null, 31, null);
}
public Location(String str, String str2, String str3, String str4, Integer num) {
this.page = str;
this.section = str2;
this._object = str3;
this.objectType = str4;
this.promotionId = num;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Location(String str, String str2, String str3, String str4, Integer num, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : str4, (i & 16) != 0 ? null : num);
}
public static /* synthetic */ Location copy$default(Location location, String str, String str2, String str3, String str4, Integer num, int i, Object obj) {
if ((i & 1) != 0) {
str = location.page;
}
if ((i & 2) != 0) {
str2 = location.section;
}
if ((i & 4) != 0) {
str3 = location._object;
}
if ((i & 8) != 0) {
str4 = location.objectType;
}
if ((i & 16) != 0) {
num = location.promotionId;
}
return location.copy(str, str2, str3, str4, num);
}
public final String component1() {
return this.page;
}
public final String component2() {
return this.section;
}
public final String component3() {
return this._object;
}
public final String component4() {
return this.objectType;
}
public final Integer component5() {
return this.promotionId;
}
public final Location copy(String str, String str2, String str3, String str4, Integer num) {
return new Location(str, str2, str3, str4, num);
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Location)) {
return false;
}
Location location = (Location) obj;
return m.areEqual(this.page, location.page) && m.areEqual(this.section, location.section) && m.areEqual(this._object, location._object) && m.areEqual(this.objectType, location.objectType) && m.areEqual(this.promotionId, location.promotionId);
}
public final String getObjectType() {
return this.objectType;
}
public final String getPage() {
return this.page;
}
public final Integer getPromotionId() {
return this.promotionId;
}
public final String getSection() {
return this.section;
}
public final String get_object() {
return this._object;
}
@Override // java.lang.Object
public int hashCode() {
String str = this.page;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
String str2 = this.section;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this._object;
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
String str4 = this.objectType;
int hashCode4 = (hashCode3 + (str4 != null ? str4.hashCode() : 0)) * 31;
Integer num = this.promotionId;
if (num != null) {
i = num.hashCode();
}
return hashCode4 + i;
}
public final void serializeTo(Map<String, Object> map) {
m.checkNotNullParameter(map, "properties");
String str = this.page;
if (str != null) {
map.put("location_page", str);
}
String str2 = this.section;
if (str2 != null) {
map.put("location_section", str2);
}
String str3 = this._object;
if (str3 != null) {
map.put("location_object", str3);
}
String str4 = this.objectType;
if (str4 != null) {
map.put("location_object_type", str4);
}
Integer num = this.promotionId;
if (num != null) {
map.put("location_promotion_id", Integer.valueOf(num.intValue()));
}
}
@Override // java.lang.Object
public String toString() {
StringBuilder K = a.K("Location(page=");
K.append(this.page);
K.append(", section=");
K.append(this.section);
K.append(", _object=");
K.append(this._object);
K.append(", objectType=");
K.append(this.objectType);
K.append(", promotionId=");
return a.z(K, this.promotionId, ")");
}
}
/* compiled from: Traits.kt */
public static final class Payment {
private final String currency;
private final boolean isGift;
private final int price;
private final int regularPrice;
private final String type;
/* compiled from: Traits.kt */
public static final class Type {
public static final Type INSTANCE = new Type();
public static final String STICKER = "sticker";
public static final String SUBSCRIPTION = "subscription";
private Type() {
}
}
public Payment(String str, int i, int i2, String str2, boolean z2) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(str2, "currency");
this.type = str;
this.price = i;
this.regularPrice = i2;
this.currency = str2;
this.isGift = z2;
}
public static /* synthetic */ Payment copy$default(Payment payment, String str, int i, int i2, String str2, boolean z2, int i3, Object obj) {
if ((i3 & 1) != 0) {
str = payment.type;
}
if ((i3 & 2) != 0) {
i = payment.price;
}
if ((i3 & 4) != 0) {
i2 = payment.regularPrice;
}
if ((i3 & 8) != 0) {
str2 = payment.currency;
}
if ((i3 & 16) != 0) {
z2 = payment.isGift;
}
return payment.copy(str, i, i2, str2, z2);
}
public final String component1() {
return this.type;
}
public final int component2() {
return this.price;
}
public final int component3() {
return this.regularPrice;
}
public final String component4() {
return this.currency;
}
public final boolean component5() {
return this.isGift;
}
public final Payment copy(String str, int i, int i2, String str2, boolean z2) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(str2, "currency");
return new Payment(str, i, i2, str2, z2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Payment)) {
return false;
}
Payment payment = (Payment) obj;
return m.areEqual(this.type, payment.type) && this.price == payment.price && this.regularPrice == payment.regularPrice && m.areEqual(this.currency, payment.currency) && this.isGift == payment.isGift;
}
public final String getCurrency() {
return this.currency;
}
public final int getPrice() {
return this.price;
}
public final int getRegularPrice() {
return this.regularPrice;
}
public final String getType() {
return this.type;
}
public int hashCode() {
String str = this.type;
int i = 0;
int hashCode = (((((str != null ? str.hashCode() : 0) * 31) + this.price) * 31) + this.regularPrice) * 31;
String str2 = this.currency;
if (str2 != null) {
i = str2.hashCode();
}
int i2 = (hashCode + i) * 31;
boolean z2 = this.isGift;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
return i2 + i3;
}
public final boolean isGift() {
return this.isGift;
}
public final void serializeTo(Map<String, Object> map) {
m.checkNotNullParameter(map, "properties");
map.put("payment_type", this.type);
map.put("price", Integer.valueOf(this.price));
map.put("regular_price", Integer.valueOf(this.regularPrice));
map.put("currency", this.currency);
map.put("is_gift", Boolean.valueOf(this.isGift));
}
public String toString() {
StringBuilder K = a.K("Payment(type=");
K.append(this.type);
K.append(", price=");
K.append(this.price);
K.append(", regularPrice=");
K.append(this.regularPrice);
K.append(", currency=");
K.append(this.currency);
K.append(", isGift=");
return a.F(K, this.isGift, ")");
}
}
/* compiled from: Traits.kt */
public static final class Source {
private final String _object;
private final String objectType;
private final String page;
private final Integer promotionId;
private final String section;
/* compiled from: Traits.kt */
public static final class Obj {
public static final String GIF_PICKER = "GIF Picker";
public static final Obj INSTANCE = new Obj();
private Obj() {
}
}
public Source() {
this(null, null, null, null, null, 31, null);
}
public Source(String str, String str2, String str3, String str4, Integer num) {
this.page = str;
this.section = str2;
this._object = str3;
this.objectType = str4;
this.promotionId = num;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Source(String str, String str2, String str3, String str4, Integer num, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : str4, (i & 16) != 0 ? null : num);
}
public static /* synthetic */ Source copy$default(Source source, String str, String str2, String str3, String str4, Integer num, int i, Object obj) {
if ((i & 1) != 0) {
str = source.page;
}
if ((i & 2) != 0) {
str2 = source.section;
}
if ((i & 4) != 0) {
str3 = source._object;
}
if ((i & 8) != 0) {
str4 = source.objectType;
}
if ((i & 16) != 0) {
num = source.promotionId;
}
return source.copy(str, str2, str3, str4, num);
}
public final String component1() {
return this.page;
}
public final String component2() {
return this.section;
}
public final String component3() {
return this._object;
}
public final String component4() {
return this.objectType;
}
public final Integer component5() {
return this.promotionId;
}
public final Source copy(String str, String str2, String str3, String str4, Integer num) {
return new Source(str, str2, str3, str4, num);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Source)) {
return false;
}
Source source = (Source) obj;
return m.areEqual(this.page, source.page) && m.areEqual(this.section, source.section) && m.areEqual(this._object, source._object) && m.areEqual(this.objectType, source.objectType) && m.areEqual(this.promotionId, source.promotionId);
}
public final String getObjectType() {
return this.objectType;
}
public final String getPage() {
return this.page;
}
public final Integer getPromotionId() {
return this.promotionId;
}
public final String getSection() {
return this.section;
}
public final String get_object() {
return this._object;
}
public int hashCode() {
String str = this.page;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
String str2 = this.section;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this._object;
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
String str4 = this.objectType;
int hashCode4 = (hashCode3 + (str4 != null ? str4.hashCode() : 0)) * 31;
Integer num = this.promotionId;
if (num != null) {
i = num.hashCode();
}
return hashCode4 + i;
}
public final void serializeTo(Map<String, Object> map) {
m.checkNotNullParameter(map, "properties");
String str = this.page;
if (str != null) {
map.put("source_page", str);
}
String str2 = this.section;
if (str2 != null) {
map.put("source_section", str2);
}
String str3 = this._object;
if (str3 != null) {
map.put("source_object", str3);
}
String str4 = this.objectType;
if (str4 != null) {
map.put("source_object_type", str4);
}
Integer num = this.promotionId;
if (num != null) {
map.put("source_promotion_id", Integer.valueOf(num.intValue()));
}
}
public String toString() {
StringBuilder K = a.K("Source(page=");
K.append(this.page);
K.append(", section=");
K.append(this.section);
K.append(", _object=");
K.append(this._object);
K.append(", objectType=");
K.append(this.objectType);
K.append(", promotionId=");
return a.z(K, this.promotionId, ")");
}
}
/* compiled from: Traits.kt */
public static final class StoreSku {
private final long applicationId;
private final long skuId;
private final int skuType;
private final String storeTitle;
public StoreSku(long j, int i, long j2, String str) {
m.checkNotNullParameter(str, "storeTitle");
this.skuId = j;
this.skuType = i;
this.applicationId = j2;
this.storeTitle = str;
}
public static /* synthetic */ StoreSku copy$default(StoreSku storeSku, long j, int i, long j2, String str, int i2, Object obj) {
if ((i2 & 1) != 0) {
j = storeSku.skuId;
}
if ((i2 & 2) != 0) {
i = storeSku.skuType;
}
if ((i2 & 4) != 0) {
j2 = storeSku.applicationId;
}
if ((i2 & 8) != 0) {
str = storeSku.storeTitle;
}
return storeSku.copy(j, i, j2, str);
}
public final long component1() {
return this.skuId;
}
public final int component2() {
return this.skuType;
}
public final long component3() {
return this.applicationId;
}
public final String component4() {
return this.storeTitle;
}
public final StoreSku copy(long j, int i, long j2, String str) {
m.checkNotNullParameter(str, "storeTitle");
return new StoreSku(j, i, j2, str);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof StoreSku)) {
return false;
}
StoreSku storeSku = (StoreSku) obj;
return this.skuId == storeSku.skuId && this.skuType == storeSku.skuType && this.applicationId == storeSku.applicationId && m.areEqual(this.storeTitle, storeSku.storeTitle);
}
public final long getApplicationId() {
return this.applicationId;
}
public final long getSkuId() {
return this.skuId;
}
public final int getSkuType() {
return this.skuType;
}
public final String getStoreTitle() {
return this.storeTitle;
}
public int hashCode() {
int a = (b.a(this.applicationId) + (((b.a(this.skuId) * 31) + this.skuType) * 31)) * 31;
String str = this.storeTitle;
return a + (str != null ? str.hashCode() : 0);
}
public final void serializeTo(Map<String, Object> map) {
m.checkNotNullParameter(map, "properties");
map.put("sku_id", Long.valueOf(this.skuId));
map.put("sku_type", Integer.valueOf(this.skuType));
map.put("application_id", Long.valueOf(this.applicationId));
map.put("store_title", this.storeTitle);
}
public String toString() {
StringBuilder K = a.K("StoreSku(skuId=");
K.append(this.skuId);
K.append(", skuType=");
K.append(this.skuType);
K.append(", applicationId=");
K.append(this.applicationId);
K.append(", storeTitle=");
return a.C(K, this.storeTitle, ")");
}
}
/* compiled from: Traits.kt */
public static final class Subscription {
public static final Companion Companion = new Companion(null);
private final String gatewayPlanId;
private final Long planId;
private final Integer type;
/* compiled from: Traits.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Subscription from(SubscriptionPlanType subscriptionPlanType) {
m.checkNotNullParameter(subscriptionPlanType, "subscriptionPlanType");
return new Subscription(subscriptionPlanType.getPlanTypeString(), 1, Long.valueOf(subscriptionPlanType.getPlanId()));
}
public final Subscription withGatewayPlanId(String str) {
m.checkNotNullParameter(str, "gatewayPlanId");
return new Subscription(str, 1, null);
}
}
public Subscription(String str, Integer num, Long l) {
this.gatewayPlanId = str;
this.type = num;
this.planId = l;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Subscription(String str, Integer num, Long l, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, num, (i & 4) != 0 ? null : l);
}
public static /* synthetic */ Subscription copy$default(Subscription subscription, String str, Integer num, Long l, int i, Object obj) {
if ((i & 1) != 0) {
str = subscription.gatewayPlanId;
}
if ((i & 2) != 0) {
num = subscription.type;
}
if ((i & 4) != 0) {
l = subscription.planId;
}
return subscription.copy(str, num, l);
}
public final String component1() {
return this.gatewayPlanId;
}
public final Integer component2() {
return this.type;
}
public final Long component3() {
return this.planId;
}
public final Subscription copy(String str, Integer num, Long l) {
return new Subscription(str, num, l);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Subscription)) {
return false;
}
Subscription subscription = (Subscription) obj;
return m.areEqual(this.gatewayPlanId, subscription.gatewayPlanId) && m.areEqual(this.type, subscription.type) && m.areEqual(this.planId, subscription.planId);
}
public final String getGatewayPlanId() {
return this.gatewayPlanId;
}
public final Long getPlanId() {
return this.planId;
}
public final Integer getType() {
return this.type;
}
public int hashCode() {
String str = this.gatewayPlanId;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
Integer num = this.type;
int hashCode2 = (hashCode + (num != null ? num.hashCode() : 0)) * 31;
Long l = this.planId;
if (l != null) {
i = l.hashCode();
}
return hashCode2 + i;
}
public final void serializeTo(Map<String, Object> map) {
m.checkNotNullParameter(map, "properties");
String str = this.gatewayPlanId;
if (str != null) {
map.put("subscription_plan_gateway_plan_id", str);
}
Integer num = this.type;
if (num != null) {
map.put("subscription_type", Integer.valueOf(num.intValue()));
}
Long l = this.planId;
if (l != null) {
map.put("subscription_plan_id", Long.valueOf(l.longValue()));
}
}
public String toString() {
StringBuilder K = a.K("Subscription(gatewayPlanId=");
K.append(this.gatewayPlanId);
K.append(", type=");
K.append(this.type);
K.append(", planId=");
return a.A(K, this.planId, ")");
}
}
private Traits() {
}
}