XYConfigAPIManager.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //
  2. // XYConfigAPIManager.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/18.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYConfigAPIManager : ZYLAPIManager
  11. /// 获取APP初始化配置
  12. /// @param successHandler 请求成功
  13. /// @param failureHandler 请求失败
  14. - (NSNumber *)getAppInitConfSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  15. /// 获取区域列表
  16. /// @param parentId 上级id (可以不传,不传则返回省级列表)
  17. /// @param successHandler 请求成功
  18. /// @param failureHandler 请求失败
  19. - (NSNumber *)getAreaListWithParentId:(NSString *__nullable)parentId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  20. /// 获取举报原因
  21. /// @param successHandler 请求成功
  22. /// @param failureHandler 请求失败
  23. - (NSNumber *)getReportReasonsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  24. /// 获取意见反馈类型列表
  25. /// @param successHandler 请求成功
  26. /// @param failureHandler 请求失败
  27. - (NSNumber *)getSuggestTypeListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  28. /// 获取应用最新版本
  29. /// @param versionNum 内部版本号
  30. /// @param successHandler 请求成功
  31. /// @param failureHandler 请求失败
  32. - (NSNumber *)getAppVersionNewWithVersionNum:(NSInteger)versionNum successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  33. /// 获取 Banner
  34. /// @param bannerPosition 位置 不传为获取所有位置
  35. /// @param categoryId 位置 -1 关注 -2 推荐 -3 附近 其他分类直接传categoryId
  36. /// @param successHandler 请求成功
  37. /// @param failureHandler 请求失败
  38. - (NSNumber *)getBannersWithBannerPosition:(NSInteger)bannerPosition categoryId:(NSString *)categoryId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  39. /// 获取金币类型名称
  40. /// @param successHandler 请求成功
  41. /// @param failureHandler 请求失败
  42. - (NSNumber *)getCoinTypeNameMapSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  43. /// 获取用户标签
  44. /// @param tagType 标签类型 不传表示所有 1 男士 2女士
  45. /// @param successHandler 请求成功
  46. /// @param failureHandler 请求失败
  47. - (NSNumber *)getUserTagsWithTagType:(NSInteger)tagType successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  48. /// 获取兴趣标签
  49. /// @param tagType 标签类型 不传表示所有 1 男士 2女士
  50. /// @param successHandler 请求成功
  51. /// @param failureHandler 请求失败
  52. - (NSNumber *)getHobbyTagsWithTagType:(NSInteger)tagType successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  53. /// 获取国家手机区号
  54. /// @param successHandler 请求成功
  55. /// @param failureHandler 请求失败
  56. - (NSNumber *)getCountryPhoneCodeSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  57. /// 获取开屏广告
  58. /// @param successHandler 请求成功
  59. /// @param failureHandler 请求失败
  60. - (NSNumber *)getOpenScreenBannersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  61. /// 推送-注册设备
  62. /// @param deviceId 设备id
  63. /// @param successHandler 请求成功
  64. /// @param failureHandler 请求失败
  65. - (NSNumber *)registerDeviceWithDeviceId:(NSString *)deviceId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  66. /// 获取技能列表
  67. /// @param successHandler 请求成功
  68. /// @param failureHandler 请求失败
  69. - (NSNumber *)getSkillsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  70. /// 获取房间内PK配置
  71. /// @param successHandler 请求成功
  72. /// @param failureHandler 请求失败
  73. - (NSNumber *)getBattleRoomInConfigSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  74. /// 获取入口
  75. /// @param successHandler 请求成功
  76. /// @param failureHandler 请求失败
  77. - (NSNumber *)getEntrancesSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  78. /// 获取游戏大厅地址
  79. /// @param successHandler 请求成功
  80. /// @param failureHandler 请求失败
  81. - (NSNumber *)getHallUrlSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  82. /// 游戏分享
  83. /// @param params 游戏参数
  84. /// @param gameName 游戏名称
  85. /// @param gameIcon 游戏图标
  86. /// @param targetType 目标类型 101 公聊大厅 201 粉丝
  87. /// @param targetId 目标ID 公聊大厅传0 粉丝传粉丝userId
  88. /// @param successHandler 请求成功
  89. /// @param failureHandler 请求失败
  90. - (NSNumber *)shareGameWithParams:(NSString *)params gameName:(NSString *)gameName gameIcon:(NSString *)gameIcon targetType:(NSInteger)targetType targetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  91. /// 首页-挂件接口
  92. /// @param successHandler 请求成功
  93. /// @param failureHandler 请求失败
  94. - (NSNumber *)getCofnigWidgetSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  95. /// 首页-挂件接口
  96. /// @param successHandler 请求成功
  97. /// @param failureHandler 请求失败
  98. - (NSNumber *)getCofnigWidgetSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  99. /// 用户首充礼包档次配置
  100. /// @param successHandler 请求成功
  101. /// @param failureHandler 请求失败
  102. - (NSNumber *)getFirstRechargePackageGrade:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  103. /// 用户首充倒计时
  104. /// @param successHandler 请求成功
  105. /// @param failureHandler 请求失败
  106. - (NSNumber *)getFirstRechargeEntry:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  107. @end
  108. NS_ASSUME_NONNULL_END