net.mossol.bot.connection.RetrofitClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of line_bot_mossol-lib Show documentation
Show all versions of line_bot_mossol-lib Show documentation
Line Bot Mossol (line_bot_mossol-lib)
package net.mossol.bot.connection;
import net.mossol.bot.model.LinePushRequest;
import net.mossol.bot.model.LineReplyRequest;
import retrofit2.Response;
import retrofit2.http.*;
import java.util.concurrent.CompletableFuture;
public interface RetrofitClient {
String CONTENT_TYPE_JSON_UTF8 = "content-type: application/json; charset=UTF-8";
@POST("v2/bot/message/reply")
@Headers(CONTENT_TYPE_JSON_UTF8)
CompletableFuture> sendReply(@Header("Authorization") String token,
@Body LineReplyRequest request);
@POST("/v2/bot/room/{roomId}/leave")
@Headers(CONTENT_TYPE_JSON_UTF8)
CompletableFuture> leaveRoom(@Path("roomId") String roomId,
@Header("Authorization") String token,
@Body Object dummy);
@POST("/v2/bot/group/{groupId}/leave")
@Headers(CONTENT_TYPE_JSON_UTF8)
CompletableFuture> leaveGroup(@Path("groupId") String groupId,
@Header("Authorization") String token,
@Body Object dummy);
@POST("/v2/bot/message/push")
@Headers(CONTENT_TYPE_JSON_UTF8)
CompletableFuture> sendPush(@Header("Authorization") String token,
@Body LinePushRequest request);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy