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

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

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

import cn.blankcat.dto.channel.Channel;
import cn.blankcat.dto.channel.ChannelPermissions;
import cn.blankcat.dto.channel.UpdateChannelPermissions;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.List;

public interface ChannelService {

    @GET("/channels/{channel_id}")
    Call getGuildChannel(@Path("channel_id") String channelId);

    @GET("/guilds/{guild_id}/channels")
    Call> getGuildChannels(@Path("guild_id") String guildId);

    @GET("/channels/{channel_id}/members/{user_id}/permissions")
    Call getGuildChannelPermissions(@Path("channel_id") String channelId,
                                                        @Path("user_id") String userId);

    @HTTP(method = "PUT", path = "/channels/{channel_id}/members/{user_id}/permissions", hasBody = true)
    Call putGuildChannelPermissions(@Path("channel_id") String channelId,
                                            @Path("user_id") String userId,
                                            @Body UpdateChannelPermissions updateChannelPermissions);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy