//
//  OffcnIMCSChatListViewController.h
//  classonline
//
//  Created by HX on 2020/10/14.
//  Copyright © 2020 offcn. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OffcnIMModel.h"

NS_ASSUME_NONNULL_BEGIN

//消息总数回调
typedef void(^OffcnIMTotal_unread_number)(NSInteger num);

@interface OffcnIMCSChatListViewController : UIViewController

@property (nonatomic, assign) BOOL isNavBarHidden;//是否隐藏导航

/// 自定义UI
/// @param viewTopHeight （view top的高度,一级子视图传0，二级子视图传0.1或自定义高度）
/// @param viewBottomHeight （view bottom的高度）
/// @param isNeedSearch 是否需要搜索功能
-(void)setUIWithViewTopHeight:(CGFloat)viewTopHeight ViewBottomHeight:(CGFloat)viewBottomHeight isNeedSearch:(BOOL)isNeedSearch;

@property (nonatomic, assign) BOOL isShowNoWifiTip;//显示没网提示

@property (nonatomic, copy) OffcnIMTotal_unread_number total_unread_number;//消息总数回调


/// 返回联系人信息
/// @param agent_ID 客服ID
/// @param toID 对方ID
/// @param group_id 客服组ID
-(OffcnIMUserList_listModel *)cs_getContactInfoModelWithAgent_ID:(NSString *)agent_ID toID:(NSString *)toID group_id:(NSString *)group_id;


//聊天内容点击链接是否跳转浏览器(yes:跳转浏览器；no:不跳转，返回的链接根据产品需求处理)
-(BOOL)isJumpToBrowserWithLinkUrlStr:(NSString *)linkUrlStr;


/// 满足条件：“学员在班级&班级状态不是已结班”  或  “学员在学习包内”返回YES，否则返回NO
/// @param teacherID 教师ID
/// @param studentID 学生ID
/// @param group_id 客服组ID
-(BOOL)isEndClassWithTeacherID:(NSString *)teacherID studentID:(NSString *)studentID group_id:(NSString *)group_id;


//清空数据
-(void)clearData;

//刷新
-(void)reloadData;
@end

NS_ASSUME_NONNULL_END
