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