2016-05-13 07:08:02 +02:00
|
|
|
package org.mariotaku.microblog.library.statusnet.api;
|
2016-03-04 04:54:27 +01:00
|
|
|
|
2016-03-04 17:09:02 +01:00
|
|
|
import org.mariotaku.restfu.annotation.method.GET;
|
|
|
|
import org.mariotaku.restfu.annotation.param.Path;
|
2016-03-04 04:54:27 +01:00
|
|
|
import org.mariotaku.restfu.annotation.param.Query;
|
2016-05-13 07:08:02 +02:00
|
|
|
import org.mariotaku.microblog.library.statusnet.model.Group;
|
|
|
|
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.Status;
|
|
|
|
import org.mariotaku.microblog.library.twitter.model.User;
|
2016-03-04 04:54:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by mariotaku on 16/3/4.
|
|
|
|
*/
|
2017-02-04 11:42:14 +01:00
|
|
|
@SuppressWarnings("RedundantThrows")
|
2016-03-04 04:54:27 +01:00
|
|
|
public interface GroupResources {
|
|
|
|
|
2016-03-04 17:09:02 +01:00
|
|
|
@GET("/statusnet/groups/timeline/{group_id}.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<Status> getGroupStatuses(@Path("group_id") String groupId, @Query Paging paging) throws MicroBlogException;
|
2016-03-04 04:54:27 +01:00
|
|
|
|
2016-03-04 17:09:02 +01:00
|
|
|
@GET("/statusnet/groups/timeline/{group_name}.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<Status> getGroupStatusesByName(@Path("group_name") String name, @Query Paging paging) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/show.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
Group showGroup(@Query("group_id") String groupId) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/show.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
Group showGroupByName(@Query("group_name") String groupName) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/membership.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<User> getGroupMembers(@Query("group_id") String groupId, @Query Paging paging) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/membership.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<User> getGroupMembersByName(@Query("group_name") String groupName, @Query Paging paging) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/list.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<Group> getGroupsByScreenName(@Query("screen_name") String screenName) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/list.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<Group> getGroups(@Query("id") String userId) throws MicroBlogException;
|
2016-03-04 17:09:02 +01:00
|
|
|
|
|
|
|
@GET("/statusnet/groups/list_all.json")
|
2016-05-13 07:08:02 +02:00
|
|
|
ResponseList<Group> getAllGroups(@Query Paging paging) throws MicroBlogException;
|
2016-03-04 04:54:27 +01:00
|
|
|
|
|
|
|
}
|