package com.strmr.ps.data.remote.api;

import androidx.media3.container.NalUnitUtil;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridCredentialsResponse;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridDeviceCodeResponse;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridTokenResponse;
import defpackage.kp6;
import defpackage.pq6;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\bf\u0018\u00002\u00020\u0001J\"\u0010\u0002\u001a\u00020\u00032\b\b\u0001\u0010\u0004\u001a\u00020\u00052\b\b\u0003\u0010\u0006\u001a\u00020\u0005H§@¢\u0006\u0002\u0010\u0007J\"\u0010\b\u001a\u00020\t2\b\b\u0001\u0010\u0004\u001a\u00020\u00052\b\b\u0001\u0010\n\u001a\u00020\u0005H§@¢\u0006\u0002\u0010\u0007J6\u0010\u000b\u001a\u00020\f2\b\b\u0001\u0010\u0004\u001a\u00020\u00052\b\b\u0001\u0010\r\u001a\u00020\u00052\b\b\u0001\u0010\n\u001a\u00020\u00052\b\b\u0003\u0010\u000e\u001a\u00020\u0005H§@¢\u0006\u0002\u0010\u000fJ6\u0010\u0010\u001a\u00020\f2\b\b\u0001\u0010\u0004\u001a\u00020\u00052\b\b\u0001\u0010\r\u001a\u00020\u00052\b\b\u0001\u0010\u0010\u001a\u00020\u00052\b\b\u0003\u0010\u000e\u001a\u00020\u0005H§@¢\u0006\u0002\u0010\u000f¨\u0006\u0011"}, d2 = {"Lcom/strmr/ps/data/remote/api/RealDebridAuthService;", "", "requestDeviceCode", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridDeviceCodeResponse;", "clientId", "", "newCredentials", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "pollForCredentials", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridCredentialsResponse;", "deviceCode", "getToken", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridTokenResponse;", "clientSecret", "grantType", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "refreshToken", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public interface RealDebridAuthService {

    @Metadata(k = 3, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class DefaultImpls {
        public static /* synthetic */ Object getToken$default(RealDebridAuthService realDebridAuthService, String str, String str2, String str3, String str4, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getToken");
            }
            if ((i & 8) != 0) {
                str4 = "http://oauth.net/grant_type/device/1.0";
            }
            return realDebridAuthService.getToken(str, str2, str3, str4, continuation);
        }

        public static /* synthetic */ Object refreshToken$default(RealDebridAuthService realDebridAuthService, String str, String str2, String str3, String str4, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: refreshToken");
            }
            if ((i & 8) != 0) {
                str4 = "http://oauth.net/grant_type/device/1.0";
            }
            return realDebridAuthService.refreshToken(str, str2, str3, str4, continuation);
        }

        public static /* synthetic */ Object requestDeviceCode$default(RealDebridAuthService realDebridAuthService, String str, String str2, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: requestDeviceCode");
            }
            if ((i & 2) != 0) {
                str2 = "yes";
            }
            return realDebridAuthService.requestDeviceCode(str, str2, continuation);
        }
    }

    @pq6
    @FormUrlEncoded
    @POST("token")
    Object getToken(@Field("client_id") @kp6 String str, @Field("client_secret") @kp6 String str2, @Field("code") @kp6 String str3, @Field("grant_type") @kp6 String str4, @kp6 Continuation<? super RealDebridTokenResponse> continuation);

    @pq6
    @GET("device/credentials")
    Object pollForCredentials(@kp6 @Query("client_id") String str, @kp6 @Query("code") String str2, @kp6 Continuation<? super RealDebridCredentialsResponse> continuation);

    @pq6
    @FormUrlEncoded
    @POST("token")
    Object refreshToken(@Field("client_id") @kp6 String str, @Field("client_secret") @kp6 String str2, @Field("code") @kp6 String str3, @Field("grant_type") @kp6 String str4, @kp6 Continuation<? super RealDebridTokenResponse> continuation);

    @pq6
    @GET("device/code")
    Object requestDeviceCode(@kp6 @Query("client_id") String str, @kp6 @Query("new_credentials") String str2, @kp6 Continuation<? super RealDebridDeviceCodeResponse> continuation);
}
