Commit c1abba68b1bb5691f6b400c0487746c364cca93a

Authored by niudaojian
1 parent 9b76dcff

添加图文直播相关消息

CNLiveNewIMAManagerKit.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveNewIMAManagerKit'
11   - s.version = '0.7.8'
  11 + s.version = '0.7.9'
12 12 s.summary = 'A short description of CNLiveNewIMAManagerKit.'
13 13  
14 14 #s.description = <<-DESC
... ...
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.h
... ... @@ -115,7 +115,11 @@ typedef NS_ENUM(NSInteger, IMAMSGType) {
115 115 #pragma mark 领取商家优惠券
116 116 ///领取商家优惠券
117 117 EIMAMSG_ShareCoupon ,
118   -
  118 +#pragma mark 图文直播
  119 + ///图文直播消息
  120 + EIMAMSG_ImageTextLiveMsg ,
  121 + ///图文直播删除消息
  122 + EIMAMSG_ImageTextLiveDeleteMsg,
119 123 #pragma mark 电商原生商品详情,电商原生订单详情
120 124 EIMAMSG_ShopGoodsInfo , //电商原生商品详情
121 125 EIMAMSG_ShopOrderDetail , //电商原生订单详情
... ... @@ -214,7 +218,8 @@ typedef NS_ENUM(NSUInteger, CustomMsgType) {
214 218 CustomMsgTypeUGCLivePlayShare = 4005, //UGC直播分享
215 219 CustomMsgTypeUGCLivePlayEnd = 4006, //UGC直播结束
216 220 CustomMsgTypeUGCLiveGoodsListUpate = 4007, //UGC直播间商品列表发生更新
217   -
  221 + CustomMsgTypeImageTextLiveMsg = 4008, //图文直播消息
  222 + CustomMsgTypeImageTextLiveDeleteMsg = 4009, //图文直播删除消息
218 223 CustomMsgTypeShareLink = 6001, //分享链接
219 224  
220 225 CustomMsgTypeCustomFace = 7000, //自定义表情
... ...
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.m
... ... @@ -680,6 +680,14 @@
680 680 {
681 681 type = EIMAMSG_LiveRemind;
682 682 }
  683 + else if ([dic[@"type"] integerValue] == CustomMsgTypeImageTextLiveMsg)
  684 + {
  685 + type = EIMAMSG_ImageTextLiveMsg;
  686 + }
  687 + else if ([dic[@"type"] integerValue] == CustomMsgTypeImageTextLiveDeleteMsg)
  688 + {
  689 + type = EIMAMSG_ImageTextLiveDeleteMsg;
  690 + }
683 691 else {
684 692 type = EIMAMSG_Unknown;
685 693 }
... ...