Esempio n. 1
0
 public static void getChatMessageList(int friendId, int page, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("id", friendId);
   params.put("pageIndex", page);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/message_detail", params, handler);
 }
Esempio n. 2
0
 /**
  * @param searchTag   软件分类  推荐:recommend 最新:time 热门:view 国产:list_cn
  * @param page
  * @param handler
  */
 public static void getSoftwareList(String searchTag, int page, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("searchTag", searchTag);
   params.put("pageIndex", page);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/software_list", params, handler);
 }
Esempio n. 3
0
 /**
  * 获取某活动已出席的人员列表
  *
  * @param eventId
  * @param pageIndex
  * @param handler
  */
 public static void getEventApplies(int eventId, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("pageIndex", pageIndex);
   params.put("event_id", eventId);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/event_attend_user", params, handler);
 }
Esempio n. 4
0
 /**
  * * 使用第三方账号注册
  *
  * @param catalog 类别(qq、wechat)
  * @param openIdInfo 第三方info
  * @param handler handler
  */
 public static void openid_reg(
     String catalog, String openIdInfo, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("catalog", catalog);
   params.put("openid_info", openIdInfo);
   ApiHttpClient.post("action/api/openid_reg", params, handler);
 }
Esempio n. 5
0
 /** 摇一摇指定请求类型 */
 public static void shake(int type, AsyncHttpResponseHandler handler) {
   String inter = "action/api/rock_rock";
   if (type > 0) {
     inter = (inter + "/?type=" + type);
   }
   ApiHttpClient.get(inter, handler);
 }
Esempio n. 6
0
 public static void pubUnLikeTweet(int tweetId, int authorId, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("tweetid", tweetId);
   params.put("uid", AppContext.getInstance().getLoginUid());
   params.put("ownerOfTweet", authorId);
   ApiHttpClient.post("action/api/tweet_unlike", params, handler);
 }
Esempio n. 7
0
 /**
  * 获取所有关注好友列表
  *
  * @param uid 指定用户UID
  * @param handler
  */
 public static void getAllFriendsList(int uid, int relation, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("relation", relation);
   params.put("all", 1);
   ApiHttpClient.get("action/api/friends_list", params, handler);
 }
Esempio n. 8
0
 public static void getBlogList(String type, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("type", type);
   params.put("pageIndex", pageIndex);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/blog_list", params, handler);
 }
Esempio n. 9
0
 public static void delFavorite(int uid, int objid, int type, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("objid", objid);
   params.put("type", type);
   ApiHttpClient.post("action/api/favorite_delete", params, handler);
 }
Esempio n. 10
0
 public static void updatePortrait(int uid, File portrait, AsyncHttpResponseHandler handler)
     throws FileNotFoundException {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("portrait", portrait);
   ApiHttpClient.post("action/api/portrait_update", params, handler);
 }
Esempio n. 11
0
 public static void getTweetList(int uid, int page, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("pageIndex", page);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/tweet_list", params, handler);
 }
Esempio n. 12
0
 public static void deleteBlog(int uid, int authoruid, int id, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("authoruid", authoruid);
   params.put("id", id);
   ApiHttpClient.post("action/api/userblog_delete", params, handler);
 }
Esempio n. 13
0
 public static void getTweetTopicList(int page, String topic, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("pageIndex", page);
   params.put("title", topic);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/tweet_topic_list", params, handler);
 }
Esempio n. 14
0
 public static void pubSoftWareTweet(Tweet tweet, int softid, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", tweet.getAuthorid());
   params.put("msg", tweet.getBody());
   params.put("project", softid);
   ApiHttpClient.post("action/api/software_tweet_pub", params, handler);
 }
Esempio n. 15
0
 public static void getPostListByTag(String tag, int page, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("tag", tag);
   params.put("pageIndex", page);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/post_list", params, handler);
 }
Esempio n. 16
0
 private static void uploadLog(String data, String report, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("app", "1");
   params.put("report", report);
   params.put("msg", data);
   ApiHttpClient.post("action/api/user_report_to_admin", params, handler);
 }
Esempio n. 17
0
 public static void publicBlogComment(
     int blog, int uid, String content, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("blog", blog);
   params.put("uid", uid);
   params.put("content", content);
   ApiHttpClient.post("action/api/blogcomment_pub", params, handler);
 }
Esempio n. 18
0
 public static void updateRelation(
     int uid, int hisuid, int newrelation, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("hisuid", hisuid);
   params.put("newrelation", newrelation);
   ApiHttpClient.post("action/api/user_updaterelation", params, handler);
 }
Esempio n. 19
0
 public static void forwardMessage(
     int uid, String receiverName, String content, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("receiverName", receiverName);
   params.put("content", content);
   ApiHttpClient.post("action/api/message_pub", params, handler);
 }
Esempio n. 20
0
 /**
  * 登陆
  *
  * @param username
  * @param password
  * @param handler
  */
 public static void login(String username, String password, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("username", username);
   params.put("pwd", password);
   params.put("keep_login", 1);
   String loginurl = "action/api/login_validate";
   ApiHttpClient.post(loginurl, params, handler);
 }
Esempio n. 21
0
 /**
  * 获取指定周周报
  *
  * @param teamid
  * @param year
  * @param week
  * @param handler
  */
 public static void getDiaryFromWhichWeek(
     int teamid, int year, int week, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("teamid", teamid);
   params.put("year", year);
   params.put("week", week);
   ApiHttpClient.get("action/api/team_diary_list", params, handler);
 }
Esempio n. 22
0
 /**
  * 动态详情
  *
  * @param activeid
  * @param teamid
  * @param uid
  * @param handler
  */
 public static void getDynamicDetail(
     int activeid, int teamid, int uid, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("teamid", teamid);
   params.put("uid", uid);
   params.put("activeid", activeid);
   ApiHttpClient.get("action/api/team_active_detail", params, handler);
 }
Esempio n. 23
0
 public static void deleteComment(
     int id, int catalog, int replyid, int authorid, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("id", id);
   params.put("catalog", catalog);
   params.put("replyid", replyid);
   params.put("authorid", authorid);
   ApiHttpClient.post("action/api/comment_delete", params, handler);
 }
Esempio n. 24
0
 public static void getSearchList(
     String catalog, String content, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("catalog", catalog);
   params.put("content", content);
   params.put("pageIndex", pageIndex);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/search_list", params, handler);
 }
Esempio n. 25
0
 /**
  * 获取team成员个人信息
  *
  * @param handler
  */
 public static void getTeamUserInfo(
     String teamid, String uid, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("teamid", teamid);
   params.put("uid", uid);
   params.put("pageIndex", pageIndex);
   params.put("pageSize", 20);
   ApiHttpClient.get("action/api/team_user_information", params, handler);
 }
Esempio n. 26
0
 public static void getUserInformation(
     int uid, int hisuid, String hisname, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("hisuid", hisuid);
   params.put("hisname", hisname);
   params.put("pageIndex", pageIndex);
   params.put("pageSize", AppContext.PAGE_SIZE);
   ApiHttpClient.get("action/api/user_information", params, handler);
 }
Esempio n. 27
0
 /**
  * 周报评论(以后可改为全局评论)
  *
  * @param uid
  * @param teamid
  * @param diaryId
  * @param content
  * @param handler
  */
 public static void sendComment(
     int uid, int teamid, int diaryId, String content, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("uid", uid);
   params.put("teamid", teamid);
   params.put("type", "118");
   params.put("tweetid", diaryId);
   params.put("content", content);
   ApiHttpClient.post("action/api/team_tweet_reply", params, handler);
 }
Esempio n. 28
0
 /**
  * diary评论列表
  *
  * @param teamid
  * @param diaryid
  * @param handler
  */
 public static void getDiaryComment(int teamid, int diaryid, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("teamid", teamid);
   params.put("id", diaryid);
   params.put("type", "diary");
   params.put("pageIndex", 0);
   params.put("pageSize", "20");
   KJLoger.debug(teamid + "==getDiaryComment接口=" + diaryid);
   ApiHttpClient.get("action/api/team_reply_list_by_type", params, handler);
 }
Esempio n. 29
0
 /**
  * team动态
  *
  * @param team
  * @param page
  * @param handler
  */
 public static void teamDynamic(Team team, int page, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   // int uid = AppContext.getInstance().getLoginUid();
   // params.put("uid", uid);
   params.put("teamid", team.getId());
   params.put("pageIndex", page);
   params.put("pageSize", 20);
   params.put("type", "all");
   ApiHttpClient.get("action/api/team_active_list", params, handler);
 }
Esempio n. 30
0
 /** 获取指定用户的动态 */
 public static void getUserDynamic(
     int teamid, String uid, int pageIndex, AsyncHttpResponseHandler handler) {
   RequestParams params = new RequestParams();
   params.put("teamid", teamid);
   params.put("pageIndex", pageIndex);
   params.put("pageSize", 20);
   params.put("type", "git");
   params.put("uid", uid);
   ApiHttpClient.get("action/api/team_active_list", params, handler);
 }