2
0
Эх сурвалжийг харах

start call message add type

heavyrian2012 2 жил өмнө
parent
commit
22281fa6af

+ 5 - 0
wfclient/WFChatClient/Messages/WFCCCallStartMessageContent.h

@@ -44,6 +44,11 @@ WFAVCallEndReason
  */
 @property (nonatomic, assign)int status;
 
+/*
+ 0 未知;1 音视频免费版;2 音视频高级版
+ */
+@property (nonatomic, assign)int type;
+
 /*
  * 是否仅音频
  */

+ 4 - 0
wfclient/WFChatClient/Messages/WFCCCallStartMessageContent.m

@@ -29,6 +29,9 @@
     if (self.pin) {
         [dataDict setObject:self.pin forKey:@"p"];
     }
+    if(self.type > 0) {
+        [dataDict setObject:@(self.type) forKey:@"ty"];
+    }
     
     [dataDict setObject:self.targetIds forKey:@"ts"];
     //多人音视频与单人音视频兼容
@@ -61,6 +64,7 @@
         self.connectTime = dictionary[@"c"] ? [dictionary[@"c"] longLongValue] : 0;
         self.endTime = dictionary[@"e"] ? [dictionary[@"e"] longLongValue] : 0;
         self.status = dictionary[@"s"] ? [dictionary[@"s"] intValue] : 0;
+        self.type = dictionary[@"ty"] ? [dictionary[@"ty"] intValue] : 0;
         self.audioOnly = [dictionary[@"a"] intValue] ? YES : NO;
         self.targetIds = dictionary[@"ts"];
         self.pin = dictionary[@"p"];