YH_NetworkAdapter+Live.h
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// YH_NetworkAdapter+Live.h
// yohoLive
//
// Created by 孟顺 on 16/8/18.
// Copyright © 2016年 NewPower. All rights reserved.
//
#import "YH_NetworkAdapter.h"
typedef NS_ENUM(NSInteger, PushStatus) {
PushStatusEnd = 0,
PushStatusStart = 1,
};
/**
* @brief 有货直播 数据请求
*
* @since 4.9.1
*/
@interface YH_NetworkAdapter (Live)
/**
* @author Kennaki Kai, 16-08-19 13:08:08
*
* @brief Get push flow list.
*
* @param finishBlock
*
* @since 1.0.1
*/
- (void)getPushListFinished:(DictionaryBlock)finishBlock;
- (void)setStatusWithStat:(PushStatus)status andRoomId:(NSString *)room completion:(BoolBlock)block;
- (void)validateAnchorWithSecret:(NSString *)secret andRoomId:(NSString *)room completion:(BoolBlock)block;
/**
* @author Kennaki Kai, 16-08-18 15:08:24
*
* @brief Get barrage socket address
*
* @param param type=@"tcp"/@"websock"
* @param finishBlock finishBlock description
*
* @since 1.0
*/
- (void)getLiveBarrageSocketAddressWithParam:(NSDictionary *)param completion:(DictionaryBlock)finishBlock;
@end