All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.blankcat.openapi.MessageService Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package cn.blankcat.openapi;

import cn.blankcat.dto.message.Message;
import cn.blankcat.dto.message.MessageArk;
import cn.blankcat.dto.message.MessageToCreate;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface MessageService {

    @POST("/channels/{channel_id}/messages")
    Call postChannelMessages(@Path("channel_id") String channelId,
                                      @Body MessageToCreate messageToCreate);

    @POST("/channels/{channel_id}/messages")
    Call postChannelArkMessages(@Path("channel_id") String channelId,
                                         @Body MessageArk messageArk);

    @GET("/channels/{channel_id}/messages/{message_id}")
    Call getChannelMessage(@Path("channel_id") String channelId,
                                    @Path("message_id") String messageId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy