LCCustomAttachmentDefine.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //
  2. // LCCustomAttachmentDefine.h
  3. // LiveChat
  4. //
  5. // Created by 张灿 on 2018/9/22.
  6. // Copyright © 2018年 caicai. All rights reserved.
  7. //
  8. typedef NS_ENUM(NSInteger,UCIMCustomMessageType){
  9. CustomMessageTxt = 11, //文字模板消息
  10. CustomOneImage = 12, //单图文消息
  11. CustomMultiImage = 13, //多图文消息
  12. CustomGift = 14, //礼物消息
  13. CustomCall = 15, //通话消息
  14. CustomFollow = 16, //被关注通知
  15. //add by leo v1.0.8
  16. CustomDynamic = 17, //更新动态
  17. //add by leo v1.0.7 上线通知
  18. CustomOnLine = 18,
  19. CustomOnSendVideo = 19,
  20. CustomOnGuard = 20, // 守护
  21. CustomOnLiveInfoUpdate = 21, // 直播间信息
  22. CustomOnLiveClose = 22, // 直播间关闭
  23. CustomOnLiveClose1 = 23, // 直播间关闭
  24. CustomOnLiveFollow = 24, // 直播间关注
  25. CustomOnLiveRank = 30, // 直播间成员前三排名
  26. CustomOnLiveBarrage = 31, // 直播间弹幕
  27. CustomOnLiveManage = 32, // 直播间管理
  28. CustomOnLiveVipBarrage = 33, // 直播间贵族飘屏
  29. CustomOnLiveCar = 34, // 直播间座驾
  30. CustomOnReloadChatRoomSeat = 50, // 更新语聊房座位
  31. CustomOnChatRoomInviactionUpSeat = 51, // 邀请上麦位
  32. CustomOnChatRoomApplySeat = 52, // 申请座位
  33. CustomOnChatRoomInfoEditPassword = 54, // 编辑语聊房密码
  34. CustomOnChatRoomInfoEditTitle = 55, // 编辑语聊房名称信息
  35. CustomOnChatRoomInfoEditNotice = 56, // 编辑语聊房公告信息
  36. CustomOnChatRoomModeUpdate = 57, // 语聊房麦位模式
  37. CustomOnChatRoomEmptyChat = 58, // 房间清空公屏
  38. CustomOnChatRoomCloseOpenChat = 59, // 房间开启关闭公屏
  39. CustomOnChatRoomEmoji = 60, // 房间互动表情
  40. CustomOnChatRoomGift = 61, // 语聊房礼物
  41. CustomOnChatRoomEnd = 62, // 移出语聊房
  42. CustomOnChatRoomFP = 63, // 防骗提示
  43. CustomOnChatRoomHint = 64, // 温馨提示
  44. CustomOnChatRoomTransferPlay = 66, // 语聊房玩法切换
  45. CustomOnChatRoomBlindDateProgressChange = 67, // 语聊房相亲玩法进度变化
  46. CustomOnChatRoomBlindDateSelected = 68, // 语聊房相亲选择心仪对象
  47. CustomOnChatRoomBlindDateAnimation = 69, // 语聊房相亲动画
  48. CustomOnChatRoomSetterBackgoundImage = 70, // 语聊房更换背景图片
  49. CustomOnChatRoomUpdatePower = 71, // 语聊房权限更新
  50. CustomOnChatFate = 72, // 缘分牵线
  51. };
  52. #define CMEventWithPK @"pk" /// pk
  53. #define CMEventWithLianMai @"lianmai" /// 连麦
  54. #define CMEventWithPKData @"pkdata" /// pk数据消息
  55. #define CMType @"type"
  56. #define CMEvent @"event"
  57. #define CMData @"data"
  58. #define CMAction @"action"
  59. #define CMTitle @"title"
  60. #define CMDate @"date"
  61. #define CMTxt1 @"txt1"
  62. #define CMfields @"fields"
  63. #define CMTxt2 @"txt2"
  64. #define CMLink_type @"link_type"
  65. #define CMLink_url @"link_url"
  66. #define CMImage @"image"
  67. #define CMTxt @"txt"
  68. #define CMAct_Type @"act_type"
  69. #define CMAct_String @"act_string"
  70. #define CMGiftId @"gift_id"
  71. #define CMGiftName @"gift_name"
  72. #define CMGiftUrl @"gift_url"
  73. #define CMGiftCount @"gift_count"
  74. #define CMFrom @"from_uid"
  75. #define CMTo @"to_uid"
  76. #define CMRoomId @"roomid"
  77. #define CMMd5String @"md5_string"
  78. #define CMGiftSvga @"gift_svga"
  79. #define CMGiftType @"gift_type"
  80. #define CMCallType @"calltype"
  81. #define CMCallTime @"call_time"
  82. #define CMStatus @"status"
  83. #define CMList @"list"
  84. #define CMUserid @"userid"
  85. #define CMAge @"age"
  86. #define CMSex @"sex"
  87. #define CMNickname @"nickname"
  88. #define CMAvatar @"avatar"
  89. #define CMCity @"city"
  90. #define CMTimer @"time"
  91. #define CMIsAnchor @"is_anchor"
  92. #define CMVip @"vip"
  93. #define CMSign @"sign"
  94. #define CMGender @"gender"
  95. #define CMGuardName @"guard_name"
  96. #define CMGuardUrl @"guard_url"
  97. #define CMGuardCount @"guard_count"
  98. #define CMAnchorCharm @"anchor_charm"
  99. #define CMFans @"fans"
  100. #define CMFromRoomid @"from_roomid"
  101. #define CMToRoomid @"to_roomid"
  102. #define CMId @"id"
  103. #define CMStartTime @"start_time"
  104. #define CMPkEndTime @"pk_end_time"
  105. #define CMPunishEndTime @"punish_end_time"
  106. #define CMFromNum @"from_num"
  107. #define CMToNum @"to_num"
  108. #define CMOperateUid @"operate_uid"
  109. #define CMMsg @"msg"
  110. #define CMRank @"rank"
  111. #define CMAnchorRankInfo @"anchor_rank_info"
  112. #define CMRankTopThree @"rank_top_three"
  113. #define CMRankInfo @"rankInfo"
  114. #define CMGradeInfo @"gradeInfo"
  115. #define CMUserInfo @"userInfo"
  116. #define CMGrade @"grade"
  117. #define CMSign @"sign"
  118. #define CMForbiddenUid @"forbidden_uid"
  119. #define CMName @"name"
  120. #define CMDes @"des"
  121. #define CMUserDes @"user_des"
  122. #define CMBBox @"b_box"
  123. #define CMAvatarFrame @"avatar_frame"
  124. #define CMNobleFile @"noble_file"
  125. #define CMNobleName @"noble_name"
  126. #define CMCar @"car"
  127. #define CMCarPreviewSvga @"car_preview_svga"
  128. #define CMCarBigPreviewImgSvga @"car_big_preview_img_svga"
  129. #define CMFromNickname @"from_nickname"
  130. #define CMSendGiftHide @"send_gift_hide"
  131. #define CMFromAvatar @"from_avatar"
  132. #define CMNormal @"normal"
  133. #define CMHost @"host"
  134. #define CMSeat @"seat"
  135. #define CMOpUid @"op_uid"
  136. #define CMNum @"num"
  137. #define CMChangeType @"change_type"
  138. #define CMChangeData @"changeData"
  139. #define CMClearMsg @"clear_msg"
  140. #define CMImg @"img"
  141. #define CMReceiveInfo @"receiveInfo"
  142. #define CMToNickname @"to_nickname"
  143. #define CMToAvatar @"to_avatar"
  144. #define CMBlindDataChange @"blind_data_change"
  145. #define CMBlindStatus @"blind_status"
  146. #define CMSelectData @"select_data"
  147. #define CMBg @"bg"
  148. #define CMUID @"uid"
  149. #define CMIdentity @"identity"
  150. #define CMContent @"content"
  151. #define CMContent2 @"content2"
  152. @protocol LCCustomAttachmentInfo <NSObject>
  153. @optional
  154. - (NSString *)cellContent:(NIMMessage *)message;
  155. - (CGSize)contentSize:(NIMMessage *)message cellWidth:(CGFloat)width;
  156. - (UIEdgeInsets)contentViewInsets:(NIMMessage *)message;
  157. //- (NSString *)formatedMessage;
  158. //
  159. //- (UIImage *)showCoverImage;
  160. //
  161. //- (void)setShowCoverImage:(UIImage *)image;
  162. @end