mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-17 04:00:48 +01:00
fixed #544
This commit is contained in:
parent
262dfe961c
commit
e19f77f72d
@ -19,26 +19,26 @@
|
||||
|
||||
package org.mariotaku.microblog.library.twitter.api;
|
||||
|
||||
import org.mariotaku.microblog.library.MicroBlogException;
|
||||
import org.mariotaku.microblog.library.twitter.model.User;
|
||||
import org.mariotaku.restfu.annotation.method.POST;
|
||||
import org.mariotaku.restfu.annotation.param.KeyValue;
|
||||
import org.mariotaku.restfu.annotation.param.Param;
|
||||
import org.mariotaku.restfu.annotation.param.Queries;
|
||||
import org.mariotaku.microblog.library.MicroBlogException;
|
||||
import org.mariotaku.microblog.library.twitter.model.User;
|
||||
|
||||
@Queries({@KeyValue(key = "include_entities", valueKey = "include_entities")})
|
||||
public interface PrivateFriendsFollowersResources extends PrivateResources {
|
||||
|
||||
@POST("/friendships/accept.json")
|
||||
User acceptFriendship(@Param("user_id") long userId) throws MicroBlogException;
|
||||
User acceptFriendship(@Param("user_id") String userId) throws MicroBlogException;
|
||||
|
||||
@POST("/friendships/accept.json")
|
||||
User acceptFriendship(@Param("screen_name") String screenName) throws MicroBlogException;
|
||||
User acceptFriendshipByScreenName(@Param("screen_name") String screenName) throws MicroBlogException;
|
||||
|
||||
@POST("/friendships/deny.json")
|
||||
User denyFriendship(@Param("user_id") long userId) throws MicroBlogException;
|
||||
User denyFriendship(@Param("user_id") String userId) throws MicroBlogException;
|
||||
|
||||
@POST("/friendships/deny.json")
|
||||
User denyFriendship(@Param("screen_name") String screenName) throws MicroBlogException;
|
||||
User denyFriendshipByScreenName(@Param("screen_name") String screenName) throws MicroBlogException;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user