34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
package org.mariotaku.microblog.library.fanfou.api;
|
|
|
|
import org.mariotaku.restfu.annotation.method.GET;
|
|
import org.mariotaku.restfu.annotation.method.POST;
|
|
import org.mariotaku.restfu.annotation.param.Param;
|
|
import org.mariotaku.restfu.annotation.param.Query;
|
|
import org.mariotaku.microblog.library.MicroBlogException;
|
|
import org.mariotaku.microblog.library.twitter.model.Paging;
|
|
import org.mariotaku.microblog.library.twitter.model.ResponseList;
|
|
import org.mariotaku.microblog.library.twitter.model.User;
|
|
|
|
/**
|
|
* Created by mariotaku on 16/3/11.
|
|
*/
|
|
@SuppressWarnings("RedundantThrows")
|
|
public interface FriendshipsResources {
|
|
|
|
@POST("/friendships/create.json")
|
|
User createFanfouFriendship(@Param("id") String id) throws MicroBlogException;
|
|
|
|
@POST("/friendships/destroy.json")
|
|
User destroyFanfouFriendship(@Param("id") String id) throws MicroBlogException;
|
|
|
|
@POST("/friendships/accept.json")
|
|
User acceptFanfouFriendship(@Param("id") String id) throws MicroBlogException;
|
|
|
|
@POST("/friendships/deny.json")
|
|
User denyFanfouFriendship(@Param("id") String id) throws MicroBlogException;
|
|
|
|
@GET("/friendships/requests.json")
|
|
ResponseList<User> getFriendshipsRequests(@Query Paging paging) throws MicroBlogException;
|
|
|
|
}
|