2021-08-18 07:29:27 +00:00
|
|
|
package com.discord.stores;
|
|
|
|
|
2021-08-31 07:21:49 +00:00
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventUser;
|
2021-11-01 07:19:03 +00:00
|
|
|
import d0.t.u;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
2021-08-18 07:29:27 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: StoreGuildScheduledEvents.kt */
|
2021-08-31 07:21:49 +00:00
|
|
|
public final class StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 extends o implements Function1<List<? extends GuildScheduledEventUser>, Unit> {
|
|
|
|
public final /* synthetic */ long $guildId;
|
2021-08-18 07:29:27 +00:00
|
|
|
public final /* synthetic */ StoreGuildScheduledEvents this$0;
|
|
|
|
|
|
|
|
/* compiled from: StoreGuildScheduledEvents.kt */
|
|
|
|
/* renamed from: com.discord.stores.StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
2021-08-31 07:21:49 +00:00
|
|
|
public final /* synthetic */ List $eventUsers;
|
2021-08-18 07:29:27 +00:00
|
|
|
public final /* synthetic */ StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public AnonymousClass1(StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 storeGuildScheduledEvents$fetchUserGuildScheduledEvents$1, List list) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = storeGuildScheduledEvents$fetchUserGuildScheduledEvents$1;
|
2021-08-31 07:21:49 +00:00
|
|
|
this.$eventUsers = list;
|
2021-08-18 07:29:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-11-01 07:19:03 +00:00
|
|
|
public final void mo1invoke() {
|
2021-08-31 07:21:49 +00:00
|
|
|
List<GuildScheduledEventUser> list = this.$eventUsers;
|
2021-11-01 07:19:03 +00:00
|
|
|
ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(list, 10));
|
2021-08-31 07:21:49 +00:00
|
|
|
for (GuildScheduledEventUser guildScheduledEventUser : list) {
|
|
|
|
arrayList.add(Long.valueOf(guildScheduledEventUser.a()));
|
2021-08-18 07:29:27 +00:00
|
|
|
}
|
2021-09-29 23:07:52 +00:00
|
|
|
StoreGuildScheduledEvents.access$getUserGuildScheduledEventIds$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$guildId), u.toMutableSet(arrayList));
|
2021-08-31 07:21:49 +00:00
|
|
|
StoreGuildScheduledEvents.access$getUserGuildScheduledEventsFetches$p(this.this$0.this$0).add(Long.valueOf(this.this$0.$guildId));
|
2021-08-18 07:29:27 +00:00
|
|
|
this.this$0.this$0.markChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
2021-08-31 07:21:49 +00:00
|
|
|
public StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1(StoreGuildScheduledEvents storeGuildScheduledEvents, long j) {
|
2021-08-18 07:29:27 +00:00
|
|
|
super(1);
|
|
|
|
this.this$0 = storeGuildScheduledEvents;
|
2021-08-31 07:21:49 +00:00
|
|
|
this.$guildId = j;
|
2021-08-18 07:29:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
2021-08-31 07:21:49 +00:00
|
|
|
public /* bridge */ /* synthetic */ Unit invoke(List<? extends GuildScheduledEventUser> list) {
|
|
|
|
invoke((List<GuildScheduledEventUser>) list);
|
2021-08-18 07:29:27 +00:00
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
2021-08-31 07:21:49 +00:00
|
|
|
public final void invoke(List<GuildScheduledEventUser> list) {
|
|
|
|
m.checkNotNullParameter(list, "eventUsers");
|
2021-08-18 07:29:27 +00:00
|
|
|
StoreGuildScheduledEvents.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, list));
|
|
|
|
}
|
|
|
|
}
|