YH_NetworkAdapter+Live.h 1.06 KB
//
//  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