导航菜单

页面标题

页面副标题

imToken v3.28.8 - ChatApiService.java 源代码

正在查看: imToken v3.28.8 应用的 ChatApiService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


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

import com.helpscout.beacon.a.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(bv = {1, 0, 3}, d1 = {"\u0000|\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b`\u0018\u0000 22\u00020\u0001:\u00012J-\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u00052\b\b\u0001\u0010\u0003\u001a\u00020\u00022\b\b\u0001\u0010\u0004\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b\u0007\u0010\bJ7\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\r0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010\f\u001a\u00020\u000bH§@ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000fJ-\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\r0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b\u0010\u0010\bJA\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\r0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010\u0011\u001a\u00020\u00022\b\b\u0001\u0010\f\u001a\u00020\u0012H§@ø\u0001\u0000¢\u0006\u0004\b\u0013\u0010\u0014J7\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00170\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010\u0016\u001a\u00020\u0015H§@ø\u0001\u0000¢\u0006\u0004\b\u0018\u0010\u0019J-\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\r0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b\u001a\u0010\bJ7\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00170\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010\u001b\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b\u001c\u0010\u001dJ7\u0010!\u001a\b\u0012\u0004\u0012\u00020 0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010\u001f\u001a\u00020\u001eH§@ø\u0001\u0000¢\u0006\u0004\b!\u0010\"J5\u0010'\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020&0%0$2\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\f\u001a\u00020#H'¢\u0006\u0004\b'\u0010(J-\u0010*\u001a\b\u0012\u0004\u0012\u00020)0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b*\u0010\bJ-\u0010,\u001a\b\u0012\u0004\u0012\u00020+0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u0002H§@ø\u0001\u0000¢\u0006\u0004\b,\u0010\bJ7\u00100\u001a\b\u0012\u0004\u0012\u00020/0\u00052\b\b\u0001\u0010\t\u001a\u00020\u00022\b\b\u0001\u0010\n\u001a\u00020\u00022\b\b\u0001\u0010.\u001a\u00020-H§@ø\u0001\u0000¢\u0006\u0004\b0\u00101\u0082\u0002\u0004\n\u0002\b\u0019¨\u00063"}, d2 = {"Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService;", "", "", "beaconId", "deviceId", "Lretrofit2/Response;", "Lcom/helpscout/beacon/internal/data/remote/chat/AgentsApi;", "availableAgents", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "header", "chatId", "Lcom/helpscout/beacon/internal/data/remote/chat/StartChatRequestBodyApi;", "body", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEnvelopeApi;", "startChat", "(Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/StartChatRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getChat", "messageId", "Lcom/helpscout/beacon/internal/data/remote/chat/AddMessageRequestBodyApi;", "addMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/AddMessageRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lokhttp3/MultipartBody$Part;", "file", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEventApi;", "addAttachments", "(Ljava/lang/String;Ljava/lang/String;Lokhttp3/MultipartBody$Part;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "endChat", "eventId", "getChatEvent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", "page", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatEventsResponseApi;", "getChatEvents", "(Ljava/lang/String;Ljava/lang/String;ILkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lokhttp3/RequestBody;", "Lretrofit2/Call;", "", "Lcom/helpscout/beacon/internal/data/remote/chat/RealtimeChannelApi;", "pusherAuth", "(Ljava/lang/String;Lokhttp3/RequestBody;)Lretrofit2/Call;", "Lcom/helpscout/beacon/internal/data/remote/chat/UserApi;", "sendBeaconClosedEvent", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatCountApi;", "getCount", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatRatingRequestBodyApi;", "chatRatingBody", "", "rateChat", "(Ljava/lang/String;Ljava/lang/String;Lcom/helpscout/beacon/internal/data/remote/chat/ChatRatingRequestBodyApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Factory", "beacon_release"}, k = 1, mv = {1, 4, 2})
public interface ChatApiService {

    public static final Companion INSTANCE = Companion.$$INSTANCE;

    @Metadata(bv = {1, 0, 3}, 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\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\f\u0010\rJ\u001d\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0007\u0010\bR\u0016\u0010\n\u001a\u00020\t8\u0002@\u0002X\u0082T¢\u0006\u0006\n\u0004\b\n\u0010\u000b¨\u0006\u000e"}, d2 = {"Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService$Factory;", "", "Lokhttp3/OkHttpClient;", "okHttpClient", "Lcom/helpscout/beacon/a/a/a;", "parser", "Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService;", "create", "(Lokhttp3/OkHttpClient;Lcom/helpscout/beacon/a/a/a;)Lcom/helpscout/beacon/internal/data/remote/chat/ChatApiService;", "", "BASE_URL", "Ljava/lang/String;", "<init>", "()V", "beacon_release"}, k = 1, mv = {1, 4, 2})
    public static final class Companion {
        static final Companion $$INSTANCE = new Companion();
        private static final String BASE_URL = "https://chatapi.helpscout.net/";

        private Companion() {
        }

        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 i, 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 header, @Body RequestBody body);

    @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);
}