35 lines
736 B
Objective-C
35 lines
736 B
Objective-C
//
|
|
// TLChatUserProtocol.h
|
|
// TLChat
|
|
//
|
|
// Created by 李伯坤 on 16/5/6.
|
|
// Copyright © 2016年 李伯坤. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSInteger, TLChatUserType) {
|
|
TLChatUserTypeUser = 0,
|
|
TLChatUserTypeGroup,
|
|
};
|
|
|
|
|
|
@protocol TLChatUserProtocol <NSObject>
|
|
|
|
@property (nonatomic, strong, readonly) NSString *chat_userID;
|
|
|
|
@property (nonatomic, strong, readonly) NSString *chat_username;
|
|
|
|
@property (nonatomic, strong, readonly) NSString *chat_avatarURL;
|
|
|
|
@property (nonatomic, strong, readonly) NSString *chat_avatarPath;
|
|
|
|
@property (nonatomic, assign, readonly) NSInteger chat_userType;
|
|
|
|
@optional;
|
|
- (id)groupMemberByID:(NSString *)userID;
|
|
|
|
- (NSArray *)groupMembers;
|
|
|
|
@end
|