public class AccountActionUtil
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
AccountActionUtil.PostUserAppealInfo
上报用户申诉信息
|
static class |
AccountActionUtil.QueryProfileAnchorInfoMessage |
static class |
AccountActionUtil.QueryRecommendMessage |
static class |
AccountActionUtil.QueryReplayVideoListMessage |
static class |
AccountActionUtil.RecomendFriendsData |
static class |
AccountActionUtil.SearchResult |
static class |
AccountActionUtil.SearchUserInfo |
static class |
AccountActionUtil.SystemMessageItem |
static class |
AccountActionUtil.TagSpecialDescription
Tag页,对话题进行描述的文字增加 附带链接功能,用户点击链接跳转到 个人页、他人页、直播间、回放视频、H5、网址外链
为响应此需求号召,此类用于描述 服务端获取location字段内容返回的object数组的 每一项object。
|
static class |
AccountActionUtil.UserAppealBo |
static class |
AccountActionUtil.UserRelation
封装一个用户的followerList,和 followingList数据
|
限定符和类型 | 字段和说明 |
---|---|
static int |
PROFILE_FROME_DEFAULT |
static int |
PROFILE_FROME_MYPAGE |
static int |
PROFILE_FROME_OTHERPAGE |
static int |
SEARCH_USER_PAGE_COUNT
/search/searchUser GET请求
params:
keyword:关键词
page:页码
pagesize:条数
return:
{
"status": 200,
"msg": "ok",
"data": [
{
"user_id":"" uid
"nickname":"", 昵称
"face":"", 头像地址
"praise":"", 点赞数
"follower_count":"", 关注人数
"is_following":0 关注状态,0非关注,1关注
}
]
}
|
static java.lang.String |
TAG |
static int |
TYPE_QUERY_FOLLOWER |
static int |
TYPE_QUERY_FOLLOWING |
构造器和说明 |
---|
AccountActionUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
asyncRefreshCurrentAccount(com.app.common.common.AsyncActionCallback cb,
java.lang.String httpMsgTag)
异步触发更新我当前账号数据
result == AsyncActionCallback.RESULT_OK :刷新成功且更新完毕
|
static void |
checkNicknameIsExist(com.app.user.account.AccountInfo accountInfo,
com.app.common.common.AsyncActionCallback callback)
检查用户昵称是否重复
|
static void |
deletePoster(com.app.user.account.AccountInfo.PosterItem poster,
com.app.common.common.AsyncActionCallback cb) |
static void |
deleteSystemMessage(java.lang.String targetUserId,
java.lang.String msgId,
com.app.common.common.AsyncActionCallback cb)
删除活动消息接口
返回值 AsyncActionCallback.RESULT_OK / AsyncActionCallback.RESULT_FAILED
|
static void |
deleteVideoList(java.lang.String vid,
com.app.common.common.AsyncActionCallback cb)
获取指定uid的播放列表
返回值类型为 List
|
static void |
editprofile(com.app.user.account.AccountInfo accountInfo,
com.app.common.common.AsyncActionCallback cb) |
static void |
followUsersBatch(java.lang.String type,
java.lang.String userIds,
com.app.common.common.AsyncActionCallback cb)
批量关注好友
|
static void |
getDiscoverMessage(com.app.common.common.AsyncActionCallback cb) |
static void |
getDiscoverRankMessage(com.app.common.common.AsyncActionCallback cb) |
static void |
getHotList(java.lang.String url,
com.app.common.common.AsyncActionCallback cb)
榜单页数据获取
|
static void |
getInterestsList(com.app.common.common.AsyncActionCallback cb) |
static void |
getRecommendAnchorList(com.app.common.common.AsyncActionCallback cb)
获取推荐关注播主列表
返回值: List
|
static void |
getSystemMessage(java.lang.String type,
java.lang.String targetUserid,
com.app.common.common.AsyncActionCallback cb)
用户在主界面时候查询看是否有针对本用户的推送消息
|
static void |
getTagList(int type,
com.app.common.common.AsyncActionCallback cb) |
static void |
getTopContributeUsers(java.lang.String hostid,
int page,
int pageSize,
com.app.common.common.AsyncActionCallback cb) |
static void |
getTopContributeUsers(java.lang.String hostid,
int page,
int pageSize,
java.lang.String session,
com.app.common.common.AsyncActionCallback cb) |
static void |
getTopContributeUsersNew(java.lang.String hostid,
int page,
int pageSize,
java.lang.String url,
com.app.common.common.AsyncActionCallback cb) |
static void |
postShopifyBuyProduct(java.util.HashMap<java.lang.String,java.lang.String> params,
com.app.common.common.AsyncActionCallback cb) |
static void |
queryAnchorInfo(java.lang.String uid,
com.app.common.common.AsyncActionCallback cb,
java.lang.String httpMsgTag)
查询给定uid的主播信息
返回值为 AccountInfo
|
static void |
queryAnchorInfo(java.lang.String uid,
java.lang.String videoId,
com.app.common.common.AsyncActionCallback cb,
java.lang.String httpMsgTag)
添加一个重载方法,根据videoid获取用户是否是这个视频主播的管理员,是否被禁言
|
static void |
queryAnchorInfo(java.lang.String uid,
java.lang.String videoId,
int from,
com.app.common.common.AsyncActionCallback cb,
java.lang.String httpMsgTag)
添加一个重载方法,根据videoid获取用户是否是这个视频主播的管理员,是否被禁言
|
static void |
queryAnchorInfo(java.lang.String uid,
java.lang.String scene,
java.lang.String appId,
com.app.common.common.AsyncActionCallback cb,
java.lang.String httpMsgTag) |
static void |
queryAnchorInfoWithStat(java.lang.String uid,
com.app.common.common.AsyncActionCallback cb) |
static void |
queryFollowings(com.app.common.common.AsyncActionCallback cb) |
static void |
queryFollowText(com.app.common.common.AsyncActionCallback cb) |
static void |
queryFriend(int type,
java.lang.String targetUid,
com.app.common.common.AsyncActionCallback cb)
获取粉丝列表
成功返回类型为 List
|
static void |
queryFriend2(int type,
java.lang.String targetUid,
int pageIndex,
int pageCount,
com.app.common.common.AsyncActionCallback cb)
返回值 List
|
static void |
queryProfileAnchorInfo(java.lang.String uid,
int from,
com.app.common.common.AsyncActionCallback cb)
查询他人页的信息
|
static void |
queryProfileAnchorInfo(java.lang.String uid,
int from,
java.lang.String snece,
java.lang.String appId,
com.app.common.common.AsyncActionCallback cb) |
static void |
queryRecommendFollow(int type,
java.lang.String targetUid,
int pageIndex,
int pageCount,
com.app.common.common.AsyncActionCallback cb)
他人页好友推荐
返回值 List
|
static void |
queryRelation(java.lang.String targetUid,
com.app.common.common.AsyncActionCallback cb)
返回UserRelation,也就是同时返回关注和被关注
|
static void |
queryReplayVideoList(java.lang.String uid,
int pageIndex,
int pageCount,
com.app.common.common.AsyncActionCallback cb)
获取指定uid的回放放列表
|
static void |
ReportUpstreamEnd(java.lang.String userid,
java.lang.String vid,
com.app.common.common.AsyncActionCallback cb) |
static void |
searchFollowAndFans(java.lang.String type,
java.lang.String keyword,
int pageCount,
int pageSize,
com.app.common.common.AsyncActionCallback cb) |
static void |
searchUser(int type,
java.lang.String keyword,
int pageCount,
int pageSize,
com.app.common.common.AsyncActionCallback cb)
/search/searchUser GET请求
params:
keyword:关键词
page:页码
pagesize:条数
return:
{
"status": 200,
"msg": "ok",
"data": [
{
"user_id":"" uid
"nickname":"", 昵称
"face":"", 头像地址
"praise":"", 点赞数
"follower_count":"", 关注人数
"is_following":0 关注状态,0非关注,1关注
}
]
}
|
static void |
setPoster(com.app.user.account.AccountInfo.PosterItem poster,
com.app.common.common.AsyncActionCallback cb) |
static void |
updateAccountLevel(int level,
long currentExp,
long currentLevelStartExp,
long nextLevelExp,
java.lang.String levelRight,
java.lang.String httpMsgTag)
更新用户级别
|
public static final java.lang.String TAG
public static final int TYPE_QUERY_FOLLOWER
public static final int TYPE_QUERY_FOLLOWING
public static final int PROFILE_FROME_DEFAULT
public static final int PROFILE_FROME_MYPAGE
public static final int PROFILE_FROME_OTHERPAGE
public static final int SEARCH_USER_PAGE_COUNT
public static void queryRelation(java.lang.String targetUid, com.app.common.common.AsyncActionCallback cb)
public static void queryFriend2(int type, java.lang.String targetUid, int pageIndex, int pageCount, com.app.common.common.AsyncActionCallback cb)
public static void queryFollowText(com.app.common.common.AsyncActionCallback cb)
public static void queryFriend(int type, java.lang.String targetUid, com.app.common.common.AsyncActionCallback cb)
public static void queryAnchorInfo(java.lang.String uid, com.app.common.common.AsyncActionCallback cb, java.lang.String httpMsgTag)
public static void queryAnchorInfo(java.lang.String uid, java.lang.String videoId, com.app.common.common.AsyncActionCallback cb, java.lang.String httpMsgTag)
uid
- videoId
- cb
- httpMsgTag
- public static void queryAnchorInfo(java.lang.String uid, java.lang.String videoId, int from, com.app.common.common.AsyncActionCallback cb, java.lang.String httpMsgTag)
uid
- videoId
- from
- cb
- httpMsgTag
- public static void queryAnchorInfo(java.lang.String uid, java.lang.String scene, java.lang.String appId, com.app.common.common.AsyncActionCallback cb, java.lang.String httpMsgTag)
public static void queryProfileAnchorInfo(java.lang.String uid, int from, com.app.common.common.AsyncActionCallback cb)
uid
- from
- cb
- public static void queryProfileAnchorInfo(java.lang.String uid, int from, java.lang.String snece, java.lang.String appId, com.app.common.common.AsyncActionCallback cb)
public static void queryAnchorInfoWithStat(java.lang.String uid, com.app.common.common.AsyncActionCallback cb)
public static void queryReplayVideoList(java.lang.String uid, int pageIndex, int pageCount, com.app.common.common.AsyncActionCallback cb)
public static void deleteVideoList(java.lang.String vid, com.app.common.common.AsyncActionCallback cb)
public static void getRecommendAnchorList(com.app.common.common.AsyncActionCallback cb)
public static void getSystemMessage(java.lang.String type, java.lang.String targetUserid, com.app.common.common.AsyncActionCallback cb)
type
- : self 自己的, sys 系统消息
返回值 Listpublic static void deleteSystemMessage(java.lang.String targetUserId, java.lang.String msgId, com.app.common.common.AsyncActionCallback cb)
public static void searchUser(int type, java.lang.String keyword, int pageCount, int pageSize, com.app.common.common.AsyncActionCallback cb)
public static void searchFollowAndFans(java.lang.String type, java.lang.String keyword, int pageCount, int pageSize, com.app.common.common.AsyncActionCallback cb)
public static void getTagList(int type, com.app.common.common.AsyncActionCallback cb)
public static void ReportUpstreamEnd(java.lang.String userid, java.lang.String vid, com.app.common.common.AsyncActionCallback cb)
public static void getTopContributeUsers(java.lang.String hostid, int page, int pageSize, com.app.common.common.AsyncActionCallback cb)
public static void getTopContributeUsers(java.lang.String hostid, int page, int pageSize, java.lang.String session, com.app.common.common.AsyncActionCallback cb)
public static void getTopContributeUsersNew(java.lang.String hostid, int page, int pageSize, java.lang.String url, com.app.common.common.AsyncActionCallback cb)
public static void getHotList(java.lang.String url, com.app.common.common.AsyncActionCallback cb)
url
- cb
- public static void followUsersBatch(java.lang.String type, java.lang.String userIds, com.app.common.common.AsyncActionCallback cb)
type
- userIds
- cb
- public static void getDiscoverRankMessage(com.app.common.common.AsyncActionCallback cb)
public static void getDiscoverMessage(com.app.common.common.AsyncActionCallback cb)
public static void queryFollowings(com.app.common.common.AsyncActionCallback cb)
public static void postShopifyBuyProduct(java.util.HashMap<java.lang.String,java.lang.String> params, com.app.common.common.AsyncActionCallback cb)
public static void checkNicknameIsExist(com.app.user.account.AccountInfo accountInfo, com.app.common.common.AsyncActionCallback callback)
accountInfo
- callback
- public static void editprofile(com.app.user.account.AccountInfo accountInfo, com.app.common.common.AsyncActionCallback cb)
public static void deletePoster(com.app.user.account.AccountInfo.PosterItem poster, com.app.common.common.AsyncActionCallback cb)
public static void setPoster(com.app.user.account.AccountInfo.PosterItem poster, com.app.common.common.AsyncActionCallback cb)
public static void getInterestsList(com.app.common.common.AsyncActionCallback cb)
public static void queryRecommendFollow(int type, java.lang.String targetUid, int pageIndex, int pageCount, com.app.common.common.AsyncActionCallback cb)
public static void asyncRefreshCurrentAccount(com.app.common.common.AsyncActionCallback cb, java.lang.String httpMsgTag)
public static void updateAccountLevel(int level, long currentExp, long currentLevelStartExp, long nextLevelExp, java.lang.String levelRight, java.lang.String httpMsgTag)
level
- currentExp
- currentLevelStartExp
- nextLevelExp
- levelRight
- httpMsgTag
-