XYLiveAPIManage.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //
  2. // XYLiveAPIManage.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/1/9.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYLiveAPIManage : ZYLAPIManager
  11. /// 获取粉丝团成员
  12. /// @param userId 主播 id
  13. /// @param successHandler 请求成功
  14. /// @param failureHandler 请求失败
  15. - (NSNumber *)getFansWithUserId:(NSString *)userId page:(NSInteger)page successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  16. /// 获取贵族席位列表
  17. /// @param userId 主播id
  18. /// @param successHandler 请求成功
  19. /// @param failureHandler 请求失败
  20. - (NSNumber *)getNoblesWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  21. /// 获取日榜数据
  22. /// @param userId 主播id
  23. /// @param successHandler 请求成功
  24. /// @param failureHandler 请求失败
  25. - (NSNumber *)getRankDayWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  26. /// 获取周榜数据
  27. /// @param userId 主播id
  28. /// @param successHandler 请求成功
  29. /// @param failureHandler 请求失败
  30. - (NSNumber *)getRankWeekWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  31. /// 获取月榜数据 目前是一次返回50条 没有分页
  32. /// @param userId 主播id
  33. /// @param successHandler 请求成功
  34. /// @param failureHandler 请求失败
  35. - (NSNumber *)getRankMonthWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  36. /// 获取总榜数据 目前是一次返回50条 没有分页
  37. /// @param userId 主播id
  38. /// @param successHandler 请求成功
  39. /// @param failureHandler 请求失败
  40. - (NSNumber *)getRankTotalWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  41. /// 获取类目直播列表
  42. /// @param categoryId 类目id
  43. /// @param pageIndex 页码
  44. /// @param successHandler 请求成功
  45. /// @param failureHandler 请求失败
  46. - (NSNumber *)getListByCategoryWithCategoryId:(NSString *)categoryId pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  47. /// 获取关注直播列表
  48. /// @param pageIndex 页码
  49. /// @param successHandler 请求成功
  50. /// @param failureHandler 请求失败
  51. - (NSNumber *)getFollowListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  52. /// 获取附近直播列表
  53. /// @param pageIndex 页码
  54. /// @param successHandler 请求成功
  55. /// @param failureHandler 请求失败
  56. - (NSNumber *)getNearByListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  57. /// 获取直播记录列表
  58. /// @param pageIndex 页码
  59. /// @param yearMonth 年月 YYYYMM
  60. /// @param successHandler 请求成功
  61. /// @param failureHandler 请求失败
  62. - (NSNumber *)getLiveHisListWithPageIndex:(NSInteger)pageIndex yearMonth:(NSString *)yearMonth successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  63. /// 获取热门直播列表
  64. /// @param lastId 分页id
  65. /// @param successHandler 请求成功
  66. /// @param failureHandler 请求失败
  67. - (NSNumber *)getHotListWithLastId:(NSString *)lastId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  68. /// 分享直播间
  69. /// @param userId 主播id
  70. /// @param successHandler 请求成功
  71. /// @param failureHandler 请求失败
  72. - (NSNumber *)shareLiveWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  73. /// 获取用户礼物墙统计 api-app/v1/user/getGiftWallStat
  74. /// @param userId 用户id
  75. /// @param successHandler 请求成功
  76. /// @param failureHandler 请求失败
  77. - (NSNumber *)getGiftWallStatWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  78. /// 获取用户本周礼物墙列表 api-app/v1/user/getWeekGiftWallList
  79. /// @param userId 用户id
  80. /// @param successHandler 请求成功
  81. /// @param failureHandler 请求失败
  82. - (NSNumber *)getWeekGiftWallListWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  83. /// 获取用户礼物墙列表
  84. /// @param userId 用户id
  85. /// @param successHandler 请求成功
  86. /// @param failureHandler 请求失败
  87. - (NSNumber *)getkGiftWallListWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  88. /// 获取热爱榜数据
  89. /// @param type 查询类型 -1:昨天 1:今天
  90. /// @param userId 用户id 不传就是自己
  91. /// @param successHandler 请求成功
  92. /// @param failureHandler 请求失败
  93. - (NSNumber *)getHotLoveLeaderboardListWithType:(NSInteger)type userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  94. @end
  95. NS_ASSUME_NONNULL_END