TConversationCell.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // TConversationCell.h
  3. // UIKit
  4. //
  5. // Created by kennethmiao on 2018/9/14.
  6. // Copyright © 2018年 kennethmiao. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "TUnReadView.h"
  10. typedef NS_ENUM(NSUInteger, TConvType) {
  11. TConv_Type_C2C = 1,
  12. TConv_Type_Group = 2,
  13. TConv_Type_System = 3,
  14. };
  15. @interface TConversationCellData : NSObject
  16. @property (nonatomic, strong) NSString *convId; // C2C的时候 是单人id Group 是群id
  17. @property(nonatomic,strong)NSString *groupOwner; // 群组的时候 是群主的id
  18. //@property(nonatomic,strong)V2TIMConversation *lastConv;
  19. //@property(nonatomic, strong)V2TIMConversation *lastConv;
  20. @property(nonatomic,assign)BOOL nameShouldCenter; // 名称居中
  21. @property (nonatomic, assign) TConvType convType;
  22. @property (nonatomic, strong) NSString *head;
  23. @property (nonatomic, strong) NSString *title;
  24. @property (nonatomic, strong) NSString *subTitle;
  25. @property (nonatomic, strong) NSString *time;
  26. @property (nonatomic, strong) NSDate *timestamp; //nsstring
  27. @property (nonatomic, strong) NSString *userName;
  28. @property (nonatomic, strong) NSString *userHeader;
  29. //@property (nonatomic, strong) NSString *isauth;
  30. //@property (nonatomic, strong) NSString *level_anchor;
  31. @property (nonatomic, strong) NSString *isAtt;
  32. @property (nonatomic, strong) NSString *isVIP;
  33. //@property (nonatomic, strong) NSString *isblack;
  34. @property (nonatomic, assign) int unRead;
  35. // 更新信息
  36. -(void)updateUserInfo:(NSDictionary *)userInfo;
  37. @end
  38. @interface TConversationCell : UITableViewCell
  39. @property (nonatomic, strong) UIImageView *headImageView;
  40. @property(nonatomic,strong)UIImageView *officeFlagIV;
  41. @property (nonatomic, strong) UILabel *titleLabel;
  42. @property (nonatomic, strong) UILabel *subTitleLabel;
  43. @property (nonatomic, strong) UILabel *timeLabel;
  44. @property (nonatomic, strong) TUnReadView *unReadView;
  45. @property (nonatomic, strong) UIImageView *rightImageView;
  46. @property (nonatomic, strong) UIImageView *vipImageView;
  47. + (CGSize)getSize;
  48. - (void)setData:(TConversationCellData *)data;
  49. // 私信小窗改变UI
  50. @property(nonatomic,assign)BOOL isSmall;
  51. @property(nonatomic,strong)UILabel *chatSmallBtn;
  52. -(void)imsmallViewResetUI;
  53. -(void)checkImRecordWithHostid:(NSString *)liveuid;
  54. @end