2021-07-24 02:37:17 +00:00
|
|
|
package c.a.b;
|
|
|
|
|
|
|
|
import c.i.d.e;
|
|
|
|
import com.discord.api.activity.ActivityPlatform;
|
|
|
|
import com.discord.api.activity.ActivityPlatformTypeAdapter;
|
|
|
|
import com.discord.api.activity.ActivityType;
|
|
|
|
import com.discord.api.activity.ActivityTypeTypeAdapter;
|
|
|
|
import com.discord.api.auth.OAuthScope;
|
|
|
|
import com.discord.api.auth.OAuthScopeTypeAdapter;
|
|
|
|
import com.discord.api.botuikit.ButtonStyle;
|
|
|
|
import com.discord.api.botuikit.ButtonStyleTypeAdapter;
|
|
|
|
import com.discord.api.botuikit.ComponentType;
|
|
|
|
import com.discord.api.botuikit.gson.ComponentRuntimeTypeAdapter;
|
|
|
|
import com.discord.api.botuikit.gson.ComponentTypeTypeAdapter;
|
|
|
|
import com.discord.api.commands.ApplicationCommandPermissionType;
|
|
|
|
import com.discord.api.commands.ApplicationCommandPermissionTypeTypeAdapter;
|
|
|
|
import com.discord.api.commands.ApplicationCommandType;
|
|
|
|
import com.discord.api.commands.CommandTypeAdapter;
|
|
|
|
import com.discord.api.friendsuggestions.AllowedInSuggestionsType;
|
|
|
|
import com.discord.api.friendsuggestions.AllowedInSuggestionsTypeAdapter;
|
|
|
|
import com.discord.api.friendsuggestions.FriendSuggestionReasonType;
|
|
|
|
import com.discord.api.friendsuggestions.FriendSuggestionReasonTypeAdapter;
|
|
|
|
import com.discord.api.guild.GuildExplicitContentFilter;
|
|
|
|
import com.discord.api.guild.GuildExplicitContentFilterTypeAdapter;
|
|
|
|
import com.discord.api.guild.GuildMaxVideoChannelUsers;
|
|
|
|
import com.discord.api.guild.GuildMaxVideoChannelUsersTypeAdapter;
|
|
|
|
import com.discord.api.guild.GuildVerificationLevel;
|
|
|
|
import com.discord.api.guild.GuildVerificationLevelTypeAdapter;
|
|
|
|
import com.discord.api.guildjoinrequest.ApplicationStatus;
|
|
|
|
import com.discord.api.guildjoinrequest.ApplicationStatusTypeAdapter;
|
2021-08-10 10:47:20 +00:00
|
|
|
import com.discord.api.guildrolesubscription.GuildRoleSubscriptionBenefitType;
|
|
|
|
import com.discord.api.guildrolesubscription.GuildRoleSubscriptionBenefitTypeAdapter;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType;
|
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityTypeTypeAdapter;
|
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventStatus;
|
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventStatusTypeAdapter;
|
|
|
|
import com.discord.api.localizedstring.LocalizedString;
|
|
|
|
import com.discord.api.localizedstring.LocalizedStringTypeAdapter;
|
|
|
|
import com.discord.api.message.activity.MessageActivityType;
|
|
|
|
import com.discord.api.message.activity.MessageActivityTypeTypeAdapter;
|
|
|
|
import com.discord.api.message.embed.EmbedType;
|
|
|
|
import com.discord.api.message.embed.EmbedTypeTypeAdapter;
|
|
|
|
import com.discord.api.premium.PremiumTier;
|
|
|
|
import com.discord.api.premium.PremiumTierTypeAdapter;
|
2021-08-10 10:47:20 +00:00
|
|
|
import com.discord.api.premium.PriceTierType;
|
|
|
|
import com.discord.api.premium.PriceTierTypeAdapter;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.api.report.ReportNodeBottomButton;
|
|
|
|
import com.discord.api.report.ReportNodeBottomButtonTypeAdapter;
|
|
|
|
import com.discord.api.report.ReportNodeChild;
|
|
|
|
import com.discord.api.report.ReportNodeChildTypeAdapter;
|
|
|
|
import com.discord.api.report.ReportNodeElementData;
|
|
|
|
import com.discord.api.report.ReportNodeElementDataTypeAdapter;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.api.science.AnalyticsSchemaTypeAdapter;
|
|
|
|
import com.discord.api.science.Science;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.api.stageinstance.StageInstancePrivacyLevel;
|
|
|
|
import com.discord.api.stageinstance.StageInstancePrivacyLevelTypeAdapter;
|
|
|
|
import com.discord.api.sticker.StickerFormatType;
|
|
|
|
import com.discord.api.sticker.StickerFormatTypeTypeAdapter;
|
|
|
|
import com.discord.api.sticker.StickerType;
|
|
|
|
import com.discord.api.sticker.StickerTypeTypeAdapter;
|
|
|
|
import com.discord.api.user.NsfwAllowance;
|
|
|
|
import com.discord.api.user.NsfwAllowanceTypeAdapter;
|
|
|
|
import com.discord.api.user.Phone;
|
|
|
|
import com.discord.api.user.PhoneTypeAdapter;
|
|
|
|
import com.discord.api.utcdatetime.UtcDateTime;
|
|
|
|
import com.discord.api.utcdatetime.UtcDateTimeTypeAdapter;
|
|
|
|
import com.discord.nullserializable.NullSerializableTypeAdapterFactory;
|
2021-11-01 07:19:03 +00:00
|
|
|
import d0.o;
|
|
|
|
import d0.t.h0;
|
|
|
|
import d0.t.n;
|
|
|
|
import d0.z.d.m;
|
2021-07-24 02:37:17 +00:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: TypeAdapterRegistrar.kt */
|
|
|
|
public final class a {
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final Map<Class<? extends Object>, Function0<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.i), o.to(ApplicationStatus.class, C0024a.C), o.to(UtcDateTime.class, C0024a.F), o.to(NsfwAllowance.class, C0024a.G), o.to(PremiumTier.class, C0024a.H), o.to(ActivityType.class, C0024a.I), o.to(Phone.class, C0024a.J), o.to(ApplicationCommandType.class, C0024a.K), o.to(OAuthScope.class, C0024a.L), o.to(GuildVerificationLevel.class, C0024a.i), o.to(GuildExplicitContentFilter.class, C0024a.j), o.to(GuildMaxVideoChannelUsers.class, C0024a.k), o.to(ComponentType.class, C0024a.l), o.to(ButtonStyle.class, C0024a.m), o.to(ReportNodeChild.class, C0024a.n), o.to(ReportNodeElementData.class, C0024a.o), o.to(ReportNodeBottomButton.class, C0024a.p), o.to(ApplicationCommandPermissionType.class, C0024a.q), o.to(StageInstancePrivacyLevel.class, C0024a.r), o.to(FriendSuggestionReasonType.class, C0024a.f41s), o.to(AllowedInSuggestionsType.class, C0024a.t), o.to(StickerFormatType.class, C0024a.u), o.to(LocalizedString.class, C0024a.v), o.to(MessageActivityType.class, C0024a.w), o.to(EmbedType.class, C0024a.f42x), o.to(StickerType.class, C0024a.f43y), o.to(GuildScheduledEventStatus.class, C0024a.f44z), o.to(GuildScheduledEventEntityType.class, C0024a.A), o.to(Science.Event.SchemaObject.class, C0024a.B), o.to(GuildRoleSubscriptionBenefitType.class, C0024a.D), o.to(PriceTierType.class, C0024a.E));
|
2021-07-24 02:37:17 +00:00
|
|
|
public static final List<c.i.d.o> b = n.listOf((Object[]) new c.i.d.o[]{ComponentRuntimeTypeAdapter.INSTANCE.a(), new NullSerializableTypeAdapterFactory()});
|
|
|
|
|
|
|
|
/* compiled from: kotlin-style lambda group */
|
|
|
|
/* renamed from: c.a.b.a$a reason: collision with other inner class name */
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final class C0024a extends d0.z.d.o implements Function0<Object> {
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final C0024a A = new C0024a(18);
|
|
|
|
public static final C0024a B = new C0024a(19);
|
|
|
|
public static final C0024a C = new C0024a(20);
|
|
|
|
public static final C0024a D = new C0024a(21);
|
|
|
|
public static final C0024a E = new C0024a(22);
|
|
|
|
public static final C0024a F = new C0024a(23);
|
|
|
|
public static final C0024a G = new C0024a(24);
|
|
|
|
public static final C0024a H = new C0024a(25);
|
|
|
|
public static final C0024a I = new C0024a(26);
|
|
|
|
public static final C0024a J = new C0024a(27);
|
2021-08-10 10:47:20 +00:00
|
|
|
public static final C0024a K = new C0024a(28);
|
|
|
|
public static final C0024a L = new C0024a(29);
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final C0024a i = new C0024a(0);
|
|
|
|
public static final C0024a j = new C0024a(1);
|
|
|
|
public static final C0024a k = new C0024a(2);
|
|
|
|
public static final C0024a l = new C0024a(3);
|
|
|
|
public static final C0024a m = new C0024a(4);
|
|
|
|
public static final C0024a n = new C0024a(5);
|
|
|
|
public static final C0024a o = new C0024a(6);
|
|
|
|
public static final C0024a p = new C0024a(7);
|
|
|
|
public static final C0024a q = new C0024a(8);
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final C0024a r = new C0024a(9);
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-11-01 07:19:03 +00:00
|
|
|
/* renamed from: s reason: collision with root package name */
|
|
|
|
public static final C0024a f41s = new C0024a(10);
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final C0024a t = new C0024a(11);
|
|
|
|
public static final C0024a u = new C0024a(12);
|
|
|
|
public static final C0024a v = new C0024a(13);
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final C0024a w = new C0024a(14);
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* renamed from: x reason: collision with root package name */
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final C0024a f42x = new C0024a(15);
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* renamed from: y reason: collision with root package name */
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final C0024a f43y = new C0024a(16);
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* renamed from: z reason: collision with root package name */
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final C0024a f44z = new C0024a(17);
|
2021-08-10 10:47:20 +00:00
|
|
|
public final /* synthetic */ int M;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
2021-08-03 07:33:18 +00:00
|
|
|
public C0024a(int i2) {
|
2021-07-24 02:37:17 +00:00
|
|
|
super(0);
|
2021-08-10 10:47:20 +00:00
|
|
|
this.M = i2;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-11-01 07:19:03 +00:00
|
|
|
public final Object mo1invoke() {
|
2021-08-10 10:47:20 +00:00
|
|
|
switch (this.M) {
|
2021-07-24 02:37:17 +00:00
|
|
|
case 0:
|
|
|
|
return new GuildVerificationLevelTypeAdapter();
|
|
|
|
case 1:
|
|
|
|
return new GuildExplicitContentFilterTypeAdapter();
|
|
|
|
case 2:
|
|
|
|
return new GuildMaxVideoChannelUsersTypeAdapter();
|
|
|
|
case 3:
|
|
|
|
return new ComponentTypeTypeAdapter();
|
|
|
|
case 4:
|
|
|
|
return new ButtonStyleTypeAdapter();
|
|
|
|
case 5:
|
|
|
|
return new ReportNodeChildTypeAdapter();
|
|
|
|
case 6:
|
|
|
|
return new ReportNodeElementDataTypeAdapter();
|
|
|
|
case 7:
|
|
|
|
return new ReportNodeBottomButtonTypeAdapter();
|
|
|
|
case 8:
|
|
|
|
return new ApplicationCommandPermissionTypeTypeAdapter();
|
|
|
|
case 9:
|
|
|
|
return new StageInstancePrivacyLevelTypeAdapter();
|
|
|
|
case 10:
|
|
|
|
return new FriendSuggestionReasonTypeAdapter();
|
|
|
|
case 11:
|
|
|
|
return new AllowedInSuggestionsTypeAdapter();
|
|
|
|
case 12:
|
|
|
|
return new StickerFormatTypeTypeAdapter();
|
|
|
|
case 13:
|
|
|
|
return new LocalizedStringTypeAdapter();
|
|
|
|
case 14:
|
|
|
|
return new MessageActivityTypeTypeAdapter();
|
|
|
|
case 15:
|
|
|
|
return new EmbedTypeTypeAdapter();
|
|
|
|
case 16:
|
|
|
|
return new StickerTypeTypeAdapter();
|
|
|
|
case 17:
|
|
|
|
return new GuildScheduledEventStatusTypeAdapter();
|
|
|
|
case 18:
|
|
|
|
return new GuildScheduledEventEntityTypeTypeAdapter();
|
|
|
|
case 19:
|
2021-08-03 07:33:18 +00:00
|
|
|
return new AnalyticsSchemaTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 20:
|
2021-08-03 07:33:18 +00:00
|
|
|
return new ApplicationStatusTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 21:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new GuildRoleSubscriptionBenefitTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 22:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new PriceTierTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 23:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new UtcDateTimeTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 24:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new NsfwAllowanceTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 25:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new PremiumTierTypeAdapter();
|
2021-07-24 02:37:17 +00:00
|
|
|
case 26:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new ActivityTypeTypeAdapter();
|
2021-08-03 07:33:18 +00:00
|
|
|
case 27:
|
2021-08-10 10:47:20 +00:00
|
|
|
return new PhoneTypeAdapter();
|
|
|
|
case 28:
|
|
|
|
return new CommandTypeAdapter();
|
|
|
|
case 29:
|
2021-07-24 02:37:17 +00:00
|
|
|
return new OAuthScopeTypeAdapter();
|
|
|
|
default:
|
|
|
|
throw null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: TypeAdapterRegistrar.kt */
|
2021-11-01 07:19:03 +00:00
|
|
|
public static final class b extends d0.z.d.o implements Function0<ActivityPlatformTypeAdapter> {
|
2021-07-24 02:37:17 +00:00
|
|
|
public static final b i = new b();
|
|
|
|
|
|
|
|
public b() {
|
|
|
|
super(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-11-01 07:19:03 +00:00
|
|
|
public ActivityPlatformTypeAdapter mo1invoke() {
|
2021-07-24 02:37:17 +00:00
|
|
|
return new ActivityPlatformTypeAdapter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final e a(e eVar) {
|
|
|
|
m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapters");
|
2021-08-03 07:33:18 +00:00
|
|
|
for (Map.Entry<Class<? extends Object>, Function0<Object>> entry : a.entrySet()) {
|
2021-11-01 07:19:03 +00:00
|
|
|
eVar.b(entry.getKey(), entry.getValue().mo1invoke());
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapterFactories");
|
|
|
|
for (c.i.d.o oVar : b) {
|
|
|
|
eVar.e.add(oVar);
|
|
|
|
}
|
|
|
|
return eVar;
|
|
|
|
}
|
|
|
|
}
|