123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- //
- // LCCustomAttachmentDefine.h
- // LiveChat
- //
- // Created by 张灿 on 2018/9/22.
- // Copyright © 2018年 caicai. All rights reserved.
- //
- typedef NS_ENUM(NSInteger,UCIMCustomMessageType){
- CustomMessageTxt = 11, //文字模板消息
- CustomOneImage = 12, //单图文消息
- CustomMultiImage = 13, //多图文消息
- CustomGift = 14, //礼物消息
- CustomCall = 15, //通话消息
- CustomFollow = 16, //被关注通知
- //add by leo v1.0.8
- CustomDynamic = 17, //更新动态
- //add by leo v1.0.7 上线通知
- CustomOnLine = 18,
- CustomOnSendVideo = 19,
- CustomOnGuard = 20, // 守护
- CustomOnLiveInfoUpdate = 21, // 直播间信息
- CustomOnLiveClose = 22, // 直播间关闭
- CustomOnLiveClose1 = 23, // 直播间关闭
- CustomOnLiveFollow = 24, // 直播间关注
-
- CustomOnLiveRank = 30, // 直播间成员前三排名
- CustomOnLiveBarrage = 31, // 直播间弹幕
- CustomOnLiveManage = 32, // 直播间管理
- CustomOnLiveVipBarrage = 33, // 直播间贵族飘屏
- CustomOnLiveCar = 34, // 直播间座驾
-
- CustomOnReloadChatRoomSeat = 50, // 更新语聊房座位
- CustomOnChatRoomInviactionUpSeat = 51, // 邀请上麦位
- CustomOnChatRoomApplySeat = 52, // 申请座位
- CustomOnChatRoomInfoEditPassword = 54, // 编辑语聊房密码
- CustomOnChatRoomInfoEditTitle = 55, // 编辑语聊房名称信息
- CustomOnChatRoomInfoEditNotice = 56, // 编辑语聊房公告信息
- CustomOnChatRoomModeUpdate = 57, // 语聊房麦位模式
- CustomOnChatRoomEmptyChat = 58, // 房间清空公屏
- CustomOnChatRoomCloseOpenChat = 59, // 房间开启关闭公屏
- CustomOnChatRoomEmoji = 60, // 房间互动表情
- CustomOnChatRoomGift = 61, // 语聊房礼物
- CustomOnChatRoomEnd = 62, // 移出语聊房
- CustomOnChatRoomFP = 63, // 防骗提示
- CustomOnChatRoomHint = 64, // 温馨提示
- CustomOnChatRoomTransferPlay = 66, // 语聊房玩法切换
- CustomOnChatRoomBlindDateProgressChange = 67, // 语聊房相亲玩法进度变化
- CustomOnChatRoomBlindDateSelected = 68, // 语聊房相亲选择心仪对象
- CustomOnChatRoomBlindDateAnimation = 69, // 语聊房相亲动画
- CustomOnChatRoomSetterBackgoundImage = 70, // 语聊房更换背景图片
- CustomOnChatRoomUpdatePower = 71, // 语聊房权限更新
- CustomOnChatFate = 72, // 缘分牵线
- };
- #define CMEventWithPK @"pk" /// pk
- #define CMEventWithLianMai @"lianmai" /// 连麦
- #define CMEventWithPKData @"pkdata" /// pk数据消息
- #define CMType @"type"
- #define CMEvent @"event"
- #define CMData @"data"
- #define CMAction @"action"
- #define CMTitle @"title"
- #define CMDate @"date"
- #define CMTxt1 @"txt1"
- #define CMfields @"fields"
- #define CMTxt2 @"txt2"
- #define CMLink_type @"link_type"
- #define CMLink_url @"link_url"
- #define CMImage @"image"
- #define CMTxt @"txt"
- #define CMAct_Type @"act_type"
- #define CMAct_String @"act_string"
- #define CMGiftId @"gift_id"
- #define CMGiftName @"gift_name"
- #define CMGiftUrl @"gift_url"
- #define CMGiftCount @"gift_count"
- #define CMFrom @"from_uid"
- #define CMTo @"to_uid"
- #define CMRoomId @"roomid"
- #define CMMd5String @"md5_string"
- #define CMGiftSvga @"gift_svga"
- #define CMGiftType @"gift_type"
- #define CMCallType @"calltype"
- #define CMCallTime @"call_time"
- #define CMStatus @"status"
- #define CMList @"list"
- #define CMUserid @"userid"
- #define CMAge @"age"
- #define CMSex @"sex"
- #define CMNickname @"nickname"
- #define CMAvatar @"avatar"
- #define CMCity @"city"
- #define CMTimer @"time"
- #define CMIsAnchor @"is_anchor"
- #define CMVip @"vip"
- #define CMSign @"sign"
- #define CMGender @"gender"
- #define CMGuardName @"guard_name"
- #define CMGuardUrl @"guard_url"
- #define CMGuardCount @"guard_count"
- #define CMAnchorCharm @"anchor_charm"
- #define CMFans @"fans"
- #define CMFromRoomid @"from_roomid"
- #define CMToRoomid @"to_roomid"
- #define CMId @"id"
- #define CMStartTime @"start_time"
- #define CMPkEndTime @"pk_end_time"
- #define CMPunishEndTime @"punish_end_time"
- #define CMFromNum @"from_num"
- #define CMToNum @"to_num"
- #define CMOperateUid @"operate_uid"
- #define CMMsg @"msg"
- #define CMRank @"rank"
- #define CMAnchorRankInfo @"anchor_rank_info"
- #define CMRankTopThree @"rank_top_three"
- #define CMRankInfo @"rankInfo"
- #define CMGradeInfo @"gradeInfo"
- #define CMUserInfo @"userInfo"
- #define CMGrade @"grade"
- #define CMSign @"sign"
- #define CMForbiddenUid @"forbidden_uid"
- #define CMName @"name"
- #define CMDes @"des"
- #define CMUserDes @"user_des"
- #define CMBBox @"b_box"
- #define CMAvatarFrame @"avatar_frame"
- #define CMNobleFile @"noble_file"
- #define CMNobleName @"noble_name"
- #define CMCar @"car"
- #define CMCarPreviewSvga @"car_preview_svga"
- #define CMCarBigPreviewImgSvga @"car_big_preview_img_svga"
- #define CMFromNickname @"from_nickname"
- #define CMSendGiftHide @"send_gift_hide"
- #define CMFromAvatar @"from_avatar"
- #define CMNormal @"normal"
- #define CMHost @"host"
- #define CMSeat @"seat"
- #define CMOpUid @"op_uid"
- #define CMNum @"num"
- #define CMChangeType @"change_type"
- #define CMChangeData @"changeData"
- #define CMClearMsg @"clear_msg"
- #define CMImg @"img"
- #define CMReceiveInfo @"receiveInfo"
- #define CMToNickname @"to_nickname"
- #define CMToAvatar @"to_avatar"
- #define CMBlindDataChange @"blind_data_change"
- #define CMBlindStatus @"blind_status"
- #define CMSelectData @"select_data"
- #define CMBg @"bg"
- #define CMUID @"uid"
- #define CMIdentity @"identity"
- #define CMContent @"content"
- #define CMContent2 @"content2"
- @protocol LCCustomAttachmentInfo <NSObject>
- @optional
- - (NSString *)cellContent:(NIMMessage *)message;
- - (CGSize)contentSize:(NIMMessage *)message cellWidth:(CGFloat)width;
- - (UIEdgeInsets)contentViewInsets:(NIMMessage *)message;
- //- (NSString *)formatedMessage;
- //
- //- (UIImage *)showCoverImage;
- //
- //- (void)setShowCoverImage:(UIImage *)image;
- @end
|