123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- //
- // XYLiveAPIManage.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/1/9.
- // Copyright © 2020 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYLiveAPIManage : ZYLAPIManager
- /// 获取粉丝团成员
- /// @param userId 主播 id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFansWithUserId:(NSString *)userId page:(NSInteger)page successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取贵族席位列表
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getNoblesWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取日榜数据
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRankDayWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取周榜数据
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRankWeekWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取月榜数据 目前是一次返回50条 没有分页
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRankMonthWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取总榜数据 目前是一次返回50条 没有分页
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRankTotalWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取类目直播列表
- /// @param categoryId 类目id
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getListByCategoryWithCategoryId:(NSString *)categoryId pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取关注直播列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFollowListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取附近直播列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getNearByListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取直播记录列表
- /// @param pageIndex 页码
- /// @param yearMonth 年月 YYYYMM
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getLiveHisListWithPageIndex:(NSInteger)pageIndex yearMonth:(NSString *)yearMonth successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取热门直播列表
- /// @param lastId 分页id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getHotListWithLastId:(NSString *)lastId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 分享直播间
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)shareLiveWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取用户礼物墙统计 api-app/v1/user/getGiftWallStat
- /// @param userId 用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getGiftWallStatWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取用户本周礼物墙列表 api-app/v1/user/getWeekGiftWallList
- /// @param userId 用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getWeekGiftWallListWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取用户礼物墙列表
- /// @param userId 用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getkGiftWallListWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取热爱榜数据
- /// @param type 查询类型 -1:昨天 1:今天
- /// @param userId 用户id 不传就是自己
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getHotLoveLeaderboardListWithType:(NSInteger)type userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|