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

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.rtsp.RtspHeaders;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridAddMagnetResponse;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridDownloadItem;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridTorrentInfo;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridTorrentListItem;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridUnrestrictResponse;
import com.strmr.ps.data.remote.model.realdebrid.RealDebridUserResponse;
import defpackage.e6a;
import defpackage.kp6;
import defpackage.pq6;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import retrofit2.Response;
import retrofit2.http.DELETE;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\bf\u0018\u00002\u00020\u0001J\u001a\u0010\u0005\u001a\u00020\u00042\b\b\u0001\u0010\u0003\u001a\u00020\u0002H§@¢\u0006\u0004\b\u0005\u0010\u0006J0\u0010\t\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00010\b2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u0007\u001a\u00020\u0002H§@¢\u0006\u0004\b\t\u0010\nJ$\u0010\r\u001a\u00020\f2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u000b\u001a\u00020\u0002H§@¢\u0006\u0004\b\r\u0010\nJ$\u0010\u0010\u001a\u00020\u000f2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u000e\u001a\u00020\u0002H§@¢\u0006\u0004\b\u0010\u0010\nJ4\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00130\u00122\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u000e\u001a\u00020\u00022\b\b\u0003\u0010\u0011\u001a\u00020\u0002H§@¢\u0006\u0004\b\u0014\u0010\u0015J:\u0010\u001b\u001a\u00020\u001a2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u0016\u001a\u00020\u00022\n\b\u0003\u0010\u0017\u001a\u0004\u0018\u00010\u00022\b\b\u0003\u0010\u0019\u001a\u00020\u0018H§@¢\u0006\u0004\b\u001b\u0010\u001cJ*\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00130\u00122\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u000e\u001a\u00020\u0002H§@¢\u0006\u0004\b\u001d\u0010\nJP\u0010$\u001a\b\u0012\u0004\u0012\u00020#0\"2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\n\b\u0003\u0010\u001e\u001a\u0004\u0018\u00010\u00182\n\b\u0003\u0010\u001f\u001a\u0004\u0018\u00010\u00182\n\b\u0003\u0010 \u001a\u0004\u0018\u00010\u00182\n\b\u0003\u0010!\u001a\u0004\u0018\u00010\u0002H§@¢\u0006\u0004\b$\u0010%JD\u0010'\u001a\b\u0012\u0004\u0012\u00020&0\"2\b\b\u0001\u0010\u0003\u001a\u00020\u00022\n\b\u0003\u0010\u001e\u001a\u0004\u0018\u00010\u00182\n\b\u0003\u0010\u001f\u001a\u0004\u0018\u00010\u00182\n\b\u0003\u0010 \u001a\u0004\u0018\u00010\u0018H§@¢\u0006\u0004\b'\u0010(J*\u0010)\u001a\b\u0012\u0004\u0012\u00020\u00130\u00122\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u000e\u001a\u00020\u0002H§@¢\u0006\u0004\b)\u0010\n¨\u0006*"}, d2 = {"Lcom/strmr/ps/data/remote/api/RealDebridApiService;", "", "", "authHeader", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridUserResponse;", "getUser", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "hashes", "", "checkInstantAvailability", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "magnet", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridAddMagnetResponse;", "addMagnet", TtmlNode.ATTR_ID, "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridTorrentInfo;", "getTorrentInfo", "files", "Lretrofit2/Response;", "Le6a;", "selectFiles", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "link", "password", "", "remote", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridUnrestrictResponse;", "unrestrictLink", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteTorrent", "offset", "page", "limit", "filter", "", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridTorrentListItem;", "getTorrents", "(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/strmr/ps/data/remote/model/realdebrid/RealDebridDownloadItem;", "getDownloads", "(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "deleteDownload", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public interface RealDebridApiService {

    @Metadata(k = 3, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class DefaultImpls {
        public static /* synthetic */ Object getDownloads$default(RealDebridApiService realDebridApiService, String str, Integer num, Integer num2, Integer num3, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getDownloads");
            }
            if ((i & 2) != 0) {
                num = null;
            }
            if ((i & 4) != 0) {
                num2 = null;
            }
            if ((i & 8) != 0) {
                num3 = 100;
            }
            return realDebridApiService.getDownloads(str, num, num2, num3, continuation);
        }

        public static /* synthetic */ Object getTorrents$default(RealDebridApiService realDebridApiService, String str, Integer num, Integer num2, Integer num3, 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: getTorrents");
            }
            if ((i & 2) != 0) {
                num = null;
            }
            if ((i & 4) != 0) {
                num2 = null;
            }
            if ((i & 8) != 0) {
                num3 = 100;
            }
            if ((i & 16) != 0) {
                str2 = null;
            }
            return realDebridApiService.getTorrents(str, num, num2, num3, str2, continuation);
        }

        public static /* synthetic */ Object selectFiles$default(RealDebridApiService realDebridApiService, String str, String str2, String str3, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: selectFiles");
            }
            if ((i & 4) != 0) {
                str3 = TtmlNode.COMBINE_ALL;
            }
            return realDebridApiService.selectFiles(str, str2, str3, continuation);
        }

        public static /* synthetic */ Object unrestrictLink$default(RealDebridApiService realDebridApiService, String str, String str2, String str3, int i, Continuation continuation, int i2, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: unrestrictLink");
            }
            if ((i2 & 4) != 0) {
                str3 = null;
            }
            String str4 = str3;
            if ((i2 & 8) != 0) {
                i = 0;
            }
            return realDebridApiService.unrestrictLink(str, str2, str4, i, continuation);
        }
    }

    @pq6
    @FormUrlEncoded
    @POST("torrents/addMagnet")
    Object addMagnet(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Field("magnet") @kp6 String str2, @kp6 Continuation<? super RealDebridAddMagnetResponse> continuation);

    @pq6
    @GET("torrents/instantAvailability/{hashes}")
    Object checkInstantAvailability(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Path("hashes") @kp6 String str2, @kp6 Continuation<? super Map<String, ? extends Object>> continuation);

    @pq6
    @DELETE("downloads/delete/{id}")
    Object deleteDownload(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Path(TtmlNode.ATTR_ID) @kp6 String str2, @kp6 Continuation<? super Response<e6a>> continuation);

    @pq6
    @DELETE("torrents/delete/{id}")
    Object deleteTorrent(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Path(TtmlNode.ATTR_ID) @kp6 String str2, @kp6 Continuation<? super Response<e6a>> continuation);

    @pq6
    @GET("downloads")
    Object getDownloads(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @pq6 @Query("offset") Integer num, @pq6 @Query("page") Integer num2, @pq6 @Query("limit") Integer num3, @kp6 Continuation<? super List<RealDebridDownloadItem>> continuation);

    @pq6
    @GET("torrents/info/{id}")
    Object getTorrentInfo(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Path(TtmlNode.ATTR_ID) @kp6 String str2, @kp6 Continuation<? super RealDebridTorrentInfo> continuation);

    @pq6
    @GET("torrents")
    Object getTorrents(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @pq6 @Query("offset") Integer num, @pq6 @Query("page") Integer num2, @pq6 @Query("limit") Integer num3, @pq6 @Query("filter") String str2, @kp6 Continuation<? super List<RealDebridTorrentListItem>> continuation);

    @pq6
    @GET("user")
    Object getUser(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @kp6 Continuation<? super RealDebridUserResponse> continuation);

    @pq6
    @FormUrlEncoded
    @POST("torrents/selectFiles/{id}")
    Object selectFiles(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Path(TtmlNode.ATTR_ID) @kp6 String str2, @Field("files") @kp6 String str3, @kp6 Continuation<? super Response<e6a>> continuation);

    @pq6
    @FormUrlEncoded
    @POST("unrestrict/link")
    Object unrestrictLink(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Field("link") @kp6 String str2, @pq6 @Field("password") String str3, @Field("remote") int i, @kp6 Continuation<? super RealDebridUnrestrictResponse> continuation);
}
