imToken v2.14.1版本的 MD5 值为:83050b2c91219b46832c8336279e7878

以下内容为反编译后的 ChatApiService.java 源代码,内容仅作参考


package com.helpscout.beacon.internal.data.remote.chat;

import a.a;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Intrinsics;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;
@Metadata(d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b`\u0018\u0000 12\u00020\u0001:\u00011J5\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\b\u001a\u00020\tH§@ø\u0001\u0000¢\u0006\u0002\u0010\nJ?\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\f0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\r\u001a\u00020\u00062\b\b\u0001\u0010\u000e\u001a\u00020\u000fH§@ø\u0001\u0000¢\u0006\u0002\u0010\u0010J+\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00120\u00032\b\b\u0001\u0010\u0013\u001a\u00020\u00062\b\b\u0001\u0010\u0014\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u0015J+\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\f0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u0015J+\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\f0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u0015J5\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00040\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\u0019\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u001aJ5\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\u001d\u001a\u00020\u001eH§@ø\u0001\u0000¢\u0006\u0002\u0010\u001fJ+\u0010 \u001a\b\u0012\u0004\u0012\u00020!0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u0015J.\u0010\"\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020%0$0#2\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u000e\u001a\u00020&H'J5\u0010'\u001a\b\u0012\u0004\u0012\u00020(0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010)\u001a\u00020*H§@ø\u0001\u0000¢\u0006\u0002\u0010+J+\u0010,\u001a\b\u0012\u0004\u0012\u00020-0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u0006H§@ø\u0001\u0000¢\u0006\u0002\u0010\u0015J5\u0010.\u001a\b\u0012\u0004\u0012\u00020\f0\u00032\b\b\u0001\u0010\u0005\u001a\u00020\u00062\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\u000e\u001a\u00020/H§@ø\u0001\u0000¢\u0006\u0002\u00100\u0082\u0002\u0004\n\u0002\b\u0019¨\u00062"}, d2 = {"Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService;", "", "addAttachments", "Lretrofit2/Response;", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEventApi;", "header", "", "chatId", "file", "Lokhttp3/MultipartBody$Part;", "(Ljava/lang/String;Ljava/lang/String;Lokhttp3/MultipartBody$Part;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "addMessage", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEnvelopeApi;", "messageId", "body", "Lcom/helpscout/beacon/internal/data/remote/chat/AddMessageRequestBodyApi;", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/AddMessageRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "availableAgents", "Lcom/helpscout/beacon/internal/data/remote/chat/AgentsApi;", "beaconId", "deviceId", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "endChat", "getChat", "getChatEvent", "eventId", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getChatEvents", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEventsResponseApi;", "page", "", "(Ljava/lang/String;Ljava/lang/String;ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getCount", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatCountApi;", "pusherAuth", "Lretrofit2/Call;", "", "Lcom/helpscout/beacon/internal/data/remote/chat/RealtimeChannelApi;", "Lokhttp3/RequestBody;", "rateChat", "", "chatRatingBody", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatRatingRequestBodyApi;", "(Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/ChatRatingRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "sendBeaconClosedEvent", "Lcom/helpscout/beacon/internal/data/remote/chat/UserApi;", "startChat", "Lcom/helpscout/beacon/internal/data/remote/chat/StartChatRequestBodyApi;", "(Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/StartChatRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Factory", "beacon_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public interface ChatApiService {
    public static final Factory Factory = Factory.$$INSTANCE;

    @Metadata(bv = {}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u0016\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082T¢\u0006\u0006\n\u0004\b\t\u0010\n¨\u0006\r"}, d2 = {"Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService$Factory;", "", "Lokhttp3/OkHttpClient;", "okHttpClient", "La/a;", "parser", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService;", "create", "", "BASE_URL", "Ljava/lang/String;", "<init>", "()V", "beacon_release"}, k = 1, mv = {1, 7, 1})
    public static final class Factory {
        static final Factory $$INSTANCE = new Factory();
        private static final String BASE_URL = "https://chatapi.helpscout.net/";

        private Factory() {
        }

        public final ChatApiService create(OkHttpClient okHttpClient, a parser) {
            Intrinsics.checkNotNullParameter(okHttpClient, "okHttpClient");
            Intrinsics.checkNotNullParameter(parser, "parser");
            Object create = new Retrofit.Builder().baseUrl("https://chatapi.helpscout.net/").client(okHttpClient).addConverterFactory(parser.a()).build().create(ChatApiService.class);
            Intrinsics.checkNotNullExpressionValue(create, "retrofit.create(ChatApiService::class.java)");
            return (ChatApiService) create;
        }
    }

    @POST("v1/chats/{chatId}/attachments")
    @Multipart
    Object addAttachments(@Header("Authorization") String str, @Path("chatId") String str2, @Part MultipartBody.Part part, Continuation<? super Response<ChatEventApi>> continuation);

    @PUT("v1/chats/{chatId}/messages/{messageId}")
    Object addMessage(@Header("Authorization") String str, @Path("chatId") String str2, @Path("messageId") String str3, @Body AddMessageRequestBodyApi addMessageRequestBodyApi, Continuation<? super Response<ChatEnvelopeApi>> continuation);

    @GET("v2/beacon/{beaconId}/agents")
    Object availableAgents(@Path("beaconId") String str, @Query("deviceId") String str2, Continuation<? super Response<AgentsApi>> continuation);

    @PUT("v1/chats/{chatId}/leave")
    Object endChat(@Header("Authorization") String str, @Path("chatId") String str2, Continuation<? super Response<ChatEnvelopeApi>> continuation);

    @GET("v1/chats/{chatId}")
    Object getChat(@Header("Authorization") String str, @Path("chatId") String str2, Continuation<? super Response<ChatEnvelopeApi>> continuation);

    @GET("v1/chats/{chatId}/events/{eventId}")
    Object getChatEvent(@Header("Authorization") String str, @Path("chatId") String str2, @Path("eventId") String str3, Continuation<? super Response<ChatEventApi>> continuation);

    @GET("v1/chats/{chatId}/events")
    Object getChatEvents(@Header("Authorization") String str, @Path("chatId") String str2, @Query("page") int i2, Continuation<? super Response<ChatEventsResponseApi>> continuation);

    @GET("v1/chats/{chatId}/events/count")
    Object getCount(@Header("Authorization") String str, @Path("chatId") String str2, Continuation<? super Response<ChatCountApi>> continuation);

    @POST("v1/pusher/auth")
    Call<Map<String, RealtimeChannelApi>> pusherAuth(@Header("Authorization") String str, @Body RequestBody requestBody);

    @PUT("v1/chats/{chatId}/rating")
    Object rateChat(@Header("Authorization") String str, @Path("chatId") String str2, @Body ChatRatingRequestBodyApi chatRatingRequestBodyApi, Continuation<? super Response<Unit>> continuation);

    @PUT("v1/chats/{chatId}/beacon-closed")
    Object sendBeaconClosedEvent(@Header("Authorization") String str, @Path("chatId") String str2, Continuation<? super Response<UserApi>> continuation);

    @PUT("v1/chats/{chatId}")
    Object startChat(@Header("Authorization") String str, @Path("chatId") String str2, @Body StartChatRequestBodyApi startChatRequestBodyApi, Continuation<? super Response<ChatEnvelopeApi>> continuation);
}