28 lines
1.4 KiB
Java
28 lines
1.4 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.api.fingerprint.FingerprintResponse;
|
||
|
import com.discord.restapi.RestAPIParams;
|
||
|
import com.discord.utilities.rest.RestAPI;
|
||
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||
|
import j0.k.b;
|
||
|
import j0.l.e.j;
|
||
|
import rx.Observable;
|
||
|
/* compiled from: StoreAuthentication.kt */
|
||
|
public final class StoreAuthentication$getFingerprintSnapshotOrGenerate$1<T, R> implements b<String, Observable<? extends String>> {
|
||
|
public static final StoreAuthentication$getFingerprintSnapshotOrGenerate$1 INSTANCE = new StoreAuthentication$getFingerprintSnapshotOrGenerate$1();
|
||
|
|
||
|
/* compiled from: StoreAuthentication.kt */
|
||
|
/* renamed from: com.discord.stores.StoreAuthentication$getFingerprintSnapshotOrGenerate$1$2 reason: invalid class name */
|
||
|
public static final class AnonymousClass2<T, R> implements b<FingerprintResponse, String> {
|
||
|
public static final AnonymousClass2 INSTANCE = new AnonymousClass2();
|
||
|
|
||
|
public final String call(FingerprintResponse fingerprintResponse) {
|
||
|
return fingerprintResponse.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final Observable<? extends String> call(String str) {
|
||
|
return str != null ? new j(str) : ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().postAuthFingerprint(new RestAPIParams.EmptyBody()), false, 1, null).G(AnonymousClass2.INSTANCE);
|
||
|
}
|
||
|
}
|