Commit 8fc5a4c1bef97291280da55efe9d8e87700cd120

Authored by zhangxiaowen
1 parent fc73a53a

no message

CNLiveServices.podspec
... ... @@ -62,6 +62,11 @@ TODO: 网家家 - 业务接口协议库.
62 62 ss.source_files = 'CNLiveServices/Classes/QrCode/*.{h,m}'
63 63 end
64 64  
  65 + # 积分
  66 + s.subspec 'Integral' do |ss|
  67 + ss.source_files = 'CNLiveServices/Classes/Integral/*.{h,m}'
  68 + end
  69 +
65 70 # s.resource_bundles = {
66 71 # 'CNLiveServices' => ['CNLiveServices/Assets/*.png']
67 72 # }
... ...
CNLiveServices/Classes/Integral/CNLiveIntegralServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveIntegralServiceProtocol.h
  3 +// CNLiveServices
  4 +//
  5 +// Created by 153993236@qq.com on 07/22/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import <UIKit/UIKit.h>
  11 +#import "BHServiceProtocol.h"
  12 +
  13 +@protocol CNLiveIntegralServiceProtocol <NSObject, BHServiceProtocol>
  14 +
  15 +#pragma mark - 任务列表
  16 +// 任务列表
  17 +- (UIViewController *)getTaskListViewController;
  18 +
  19 +- (void)pushToTaskListViewController;
  20 +
  21 +#pragma mark - 积分明细
  22 +// 积分明细
  23 +- (UIViewController *)getIntegralDetailsViewController;
  24 +
  25 +- (void)pushToIntegralDetailsViewController;
  26 +
  27 +#pragma mark - 增加积分
  28 +// 请求
  29 +//延时调用
  30 +- (void)requestTime:(NSInteger)time taskId:(NSString *)taskId contentId:(NSString *)contentId block:(RequestCompleted _Nullable)block;
  31 +//取消延时
  32 +- (void)cancelSendRequest;
  33 +
  34 +//首次登录加积分
  35 +- (void)firstLogin:(RequestCompleted _Nullable)block;
  36 +
  37 +//直接调用
  38 +- (void)requestTaskId:(NSString *)taskId contentId:(NSString *)contentId block:(RequestCompleted _Nullable)block;
  39 +
  40 +- (BOOL)judgeIsAddScoreJson:(NSString *)name taskType:(NSString *)taskType taskId:(NSString *)taskId;
  41 +
  42 +- (BOOL)writeJsonName:(NSString *)name dic:(NSDictionary *)dic;
  43 +
  44 +// 视图
  45 ++ (void)showAddScoreViewWithDesc:(NSString *)desc score:(NSString *)score;
  46 ++ (void)showAddScoreViewWithDesc:(NSString *)desc login:(NSString *)login delegate:(id<CNLiveAddScoreViewDelegate>)delegate;
  47 +
  48 ++ (void)hideAddScoreView;
  49 +
  50 +#pragma mark - 金币下落
  51 +// 游客模式浏览加积分
  52 ++ (void)showGoldWhereaboutsViewWithDesc:(NSString *)desc delegate:(id<CNLiveGoldWhereaboutsViewDelegate>) delegate;
  53 +
  54 +// 默认展示添加积分视图
  55 ++ (void)showGoldWhereaboutsViewWithDesc:(NSString *)desc score:(NSString *)score;
  56 +
  57 +// 默认签到
  58 ++ (void)showGoldWhereaboutsViewModel:(CNLiveScoreModel *)model controller:(id<CNLiveSignInViewDelegate>)controller;
  59 ++ (void)hideGoldWhereaboutsView
  60 +
  61 +#pragma mark - 签到
  62 ++ (void)showSignInView:(NSString *)score scores:(NSString *)scores day:(NSInteger)day url:(NSString *)url delegate:(id<CNLiveSignInViewDelegate>)delegate;
  63 +
  64 +@end
  65 +
... ...