26 lines
1 KiB
Java
26 lines
1 KiB
Java
package com.discord.utilities.rest;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.models.user.User;
|
|
import d0.t.u;
|
|
import j0.k.b;
|
|
import j0.l.e.j;
|
|
import java.util.List;
|
|
import rx.Observable;
|
|
/* compiled from: RestAPI.kt */
|
|
public final class RestAPI$addGroupRecipients$2<T, R> implements b<Channel, Observable<? extends Channel>> {
|
|
public final /* synthetic */ long $channelId;
|
|
public final /* synthetic */ List $recipients;
|
|
public final /* synthetic */ RestAPI this$0;
|
|
|
|
public RestAPI$addGroupRecipients$2(RestAPI restAPI, long j, List list) {
|
|
this.this$0 = restAPI;
|
|
this.$channelId = j;
|
|
this.$recipients = list;
|
|
}
|
|
|
|
public final Observable<? extends Channel> call(Channel channel) {
|
|
return (channel == null || !AnimatableValueParser.r1(channel)) ? RestAPI.access$get_api$p(this.this$0).convertDMToGroup(this.$channelId, ((User) u.first((List<? extends Object>) this.$recipients)).getId()) : new j(channel);
|
|
}
|
|
}
|