123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- //
- // XYConfigAPIManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2019/12/18.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYConfigAPIManager : ZYLAPIManager
- /// 获取APP初始化配置
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAppInitConfSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取区域列表
- /// @param parentId 上级id (可以不传,不传则返回省级列表)
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAreaListWithParentId:(NSString *__nullable)parentId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取举报原因
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getReportReasonsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取意见反馈类型列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getSuggestTypeListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取应用最新版本
- /// @param versionNum 内部版本号
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAppVersionNewWithVersionNum:(NSInteger)versionNum successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取 Banner
- /// @param bannerPosition 位置 不传为获取所有位置
- /// @param categoryId 位置 -1 关注 -2 推荐 -3 附近 其他分类直接传categoryId
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getBannersWithBannerPosition:(NSInteger)bannerPosition categoryId:(NSString *)categoryId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取金币类型名称
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getCoinTypeNameMapSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取用户标签
- /// @param tagType 标签类型 不传表示所有 1 男士 2女士
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getUserTagsWithTagType:(NSInteger)tagType successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取兴趣标签
- /// @param tagType 标签类型 不传表示所有 1 男士 2女士
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getHobbyTagsWithTagType:(NSInteger)tagType successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取国家手机区号
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getCountryPhoneCodeSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取开屏广告
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getOpenScreenBannersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 推送-注册设备
- /// @param deviceId 设备id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)registerDeviceWithDeviceId:(NSString *)deviceId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取技能列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getSkillsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取房间内PK配置
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getBattleRoomInConfigSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取入口
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getEntrancesSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取游戏大厅地址
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getHallUrlSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 游戏分享
- /// @param params 游戏参数
- /// @param gameName 游戏名称
- /// @param gameIcon 游戏图标
- /// @param targetType 目标类型 101 公聊大厅 201 粉丝
- /// @param targetId 目标ID 公聊大厅传0 粉丝传粉丝userId
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)shareGameWithParams:(NSString *)params gameName:(NSString *)gameName gameIcon:(NSString *)gameIcon targetType:(NSInteger)targetType targetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 首页-挂件接口
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getCofnigWidgetSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 首页-挂件接口
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getCofnigWidgetSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 用户首充礼包档次配置
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFirstRechargePackageGrade:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 用户首充倒计时
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFirstRechargeEntry:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|