19 lines
1,010 B
Java
19 lines
1,010 B
Java
package com.discord.widgets.servers;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.models.user.User;
|
|
import com.discord.widgets.servers.WidgetServerSettingsTransferOwnership;
|
|
import rx.functions.Func3;
|
|
/* compiled from: WidgetServerSettingsTransferOwnership.kt */
|
|
public final class WidgetServerSettingsTransferOwnership$Model$Companion$get$1<T1, T2, T3, R> implements Func3<Guild, User, MeUser, WidgetServerSettingsTransferOwnership.Model> {
|
|
public static final WidgetServerSettingsTransferOwnership$Model$Companion$get$1 INSTANCE = new WidgetServerSettingsTransferOwnership$Model$Companion$get$1();
|
|
|
|
public final WidgetServerSettingsTransferOwnership.Model call(Guild guild, User user, MeUser meUser) {
|
|
if (guild == null || meUser == null || user == null) {
|
|
return null;
|
|
}
|
|
return new WidgetServerSettingsTransferOwnership.Model(user, guild, meUser.getMfaEnabled(), guild.getOwnerId() == meUser.getId());
|
|
}
|
|
}
|