提交 6c5dc585 authored 作者: kongdywang's avatar kongdywang

update pigeon code

上级 8ea0a67a
// Copyright (c) 2022 Tencent. All rights reserved. // Copyright (c) 2022 Tencent. All rights reserved.
// Autogenerated from Pigeon (v21.2.0), do not edit directly. // Autogenerated from Pigeon (v22.6.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon // See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
...@@ -18,6 +18,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -18,6 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
@class PipParamsPlayerMsg; @class PipParamsPlayerMsg;
@class StringListPlayerMsg; @class StringListPlayerMsg;
@class BoolPlayerMsg; @class BoolPlayerMsg;
@class StringIntPlayerMsg;
@class StringPlayerMsg; @class StringPlayerMsg;
@class DoublePlayerMsg; @class DoublePlayerMsg;
@class IntPlayerMsg; @class IntPlayerMsg;
...@@ -112,6 +113,15 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -112,6 +113,15 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, strong, nullable) NSNumber * value; @property(nonatomic, strong, nullable) NSNumber * value;
@end @end
@interface StringIntPlayerMsg : NSObject
+ (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId
strValue:(nullable NSString *)strValue
intValue:(nullable NSNumber *)intValue;
@property(nonatomic, strong, nullable) NSNumber * playerId;
@property(nonatomic, copy, nullable) NSString * strValue;
@property(nonatomic, strong, nullable) NSNumber * intValue;
@end
@interface StringPlayerMsg : NSObject @interface StringPlayerMsg : NSObject
+ (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId + (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId
value:(nullable NSString *)value; value:(nullable NSString *)value;
......
// Copyright (c) 2022 Tencent. All rights reserved. // Copyright (c) 2022 Tencent. All rights reserved.
// Autogenerated from Pigeon (v21.2.0), do not edit directly. // Autogenerated from Pigeon (v22.6.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon // See also: https://pub.dev/packages/pigeon
#import "FtxMessages.h" #import "FtxMessages.h"
...@@ -74,6 +74,12 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) { ...@@ -74,6 +74,12 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) {
- (NSArray<id> *)toList; - (NSArray<id> *)toList;
@end @end
@interface StringIntPlayerMsg ()
+ (StringIntPlayerMsg *)fromList:(NSArray<id> *)list;
+ (nullable StringIntPlayerMsg *)nullableFromList:(NSArray<id> *)list;
- (NSArray<id> *)toList;
@end
@interface StringPlayerMsg () @interface StringPlayerMsg ()
+ (StringPlayerMsg *)fromList:(NSArray<id> *)list; + (StringPlayerMsg *)fromList:(NSArray<id> *)list;
+ (nullable StringPlayerMsg *)nullableFromList:(NSArray<id> *)list; + (nullable StringPlayerMsg *)nullableFromList:(NSArray<id> *)list;
...@@ -401,6 +407,35 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) { ...@@ -401,6 +407,35 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) {
} }
@end @end
@implementation StringIntPlayerMsg
+ (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId
strValue:(nullable NSString *)strValue
intValue:(nullable NSNumber *)intValue {
StringIntPlayerMsg* pigeonResult = [[StringIntPlayerMsg alloc] init];
pigeonResult.playerId = playerId;
pigeonResult.strValue = strValue;
pigeonResult.intValue = intValue;
return pigeonResult;
}
+ (StringIntPlayerMsg *)fromList:(NSArray<id> *)list {
StringIntPlayerMsg *pigeonResult = [[StringIntPlayerMsg alloc] init];
pigeonResult.playerId = GetNullableObjectAtIndex(list, 0);
pigeonResult.strValue = GetNullableObjectAtIndex(list, 1);
pigeonResult.intValue = GetNullableObjectAtIndex(list, 2);
return pigeonResult;
}
+ (nullable StringIntPlayerMsg *)nullableFromList:(NSArray<id> *)list {
return (list) ? [StringIntPlayerMsg fromList:list] : nil;
}
- (NSArray<id> *)toList {
return @[
self.playerId ?: [NSNull null],
self.strValue ?: [NSNull null],
self.intValue ?: [NSNull null],
];
}
@end
@implementation StringPlayerMsg @implementation StringPlayerMsg
+ (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId + (instancetype)makeWithPlayerId:(nullable NSNumber *)playerId
value:(nullable NSString *)value { value:(nullable NSString *)value {
...@@ -1145,44 +1180,46 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) { ...@@ -1145,44 +1180,46 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) {
case 135: case 135:
return [BoolPlayerMsg fromList:[self readValue]]; return [BoolPlayerMsg fromList:[self readValue]];
case 136: case 136:
return [StringPlayerMsg fromList:[self readValue]]; return [StringIntPlayerMsg fromList:[self readValue]];
case 137: case 137:
return [DoublePlayerMsg fromList:[self readValue]]; return [StringPlayerMsg fromList:[self readValue]];
case 138: case 138:
return [IntPlayerMsg fromList:[self readValue]]; return [DoublePlayerMsg fromList:[self readValue]];
case 139: case 139:
return [FTXVodPlayConfigPlayerMsg fromList:[self readValue]]; return [IntPlayerMsg fromList:[self readValue]];
case 140: case 140:
return [FTXLivePlayConfigPlayerMsg fromList:[self readValue]]; return [FTXVodPlayConfigPlayerMsg fromList:[self readValue]];
case 141: case 141:
return [TXVodDownloadMediaMsg fromList:[self readValue]]; return [FTXLivePlayConfigPlayerMsg fromList:[self readValue]];
case 142: case 142:
return [TXDownloadListMsg fromList:[self readValue]]; return [TXVodDownloadMediaMsg fromList:[self readValue]];
case 143: case 143:
return [UInt8ListMsg fromList:[self readValue]]; return [TXDownloadListMsg fromList:[self readValue]];
case 144: case 144:
return [ListMsg fromList:[self readValue]]; return [UInt8ListMsg fromList:[self readValue]];
case 145: case 145:
return [BoolMsg fromList:[self readValue]]; return [ListMsg fromList:[self readValue]];
case 146: case 146:
return [IntMsg fromList:[self readValue]]; return [BoolMsg fromList:[self readValue]];
case 147: case 147:
return [StringMsg fromList:[self readValue]]; return [IntMsg fromList:[self readValue]];
case 148: case 148:
return [CachePathMsg fromList:[self readValue]]; return [StringMsg fromList:[self readValue]];
case 149: case 149:
return [DoubleMsg fromList:[self readValue]]; return [CachePathMsg fromList:[self readValue]];
case 150: case 150:
return [PreLoadMsg fromList:[self readValue]]; return [DoubleMsg fromList:[self readValue]];
case 151: case 151:
return [PreLoadInfoMsg fromList:[self readValue]]; return [PreLoadMsg fromList:[self readValue]];
case 152: case 152:
return [MapMsg fromList:[self readValue]]; return [PreLoadInfoMsg fromList:[self readValue]];
case 153: case 153:
return [SubTitlePlayerMsg fromList:[self readValue]]; return [MapMsg fromList:[self readValue]];
case 154: case 154:
return [SubTitleRenderModelPlayerMsg fromList:[self readValue]]; return [SubTitlePlayerMsg fromList:[self readValue]];
case 155: case 155:
return [SubTitleRenderModelPlayerMsg fromList:[self readValue]];
case 156:
return [StringOptionPlayerMsg fromList:[self readValue]]; return [StringOptionPlayerMsg fromList:[self readValue]];
default: default:
return [super readValueOfType:type]; return [super readValueOfType:type];
...@@ -1215,66 +1252,69 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) { ...@@ -1215,66 +1252,69 @@ static id GetNullableObjectAtIndex(NSArray<id> *array, NSInteger key) {
} else if ([value isKindOfClass:[BoolPlayerMsg class]]) { } else if ([value isKindOfClass:[BoolPlayerMsg class]]) {
[self writeByte:135]; [self writeByte:135];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[StringPlayerMsg class]]) { } else if ([value isKindOfClass:[StringIntPlayerMsg class]]) {
[self writeByte:136]; [self writeByte:136];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[DoublePlayerMsg class]]) { } else if ([value isKindOfClass:[StringPlayerMsg class]]) {
[self writeByte:137]; [self writeByte:137];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[IntPlayerMsg class]]) { } else if ([value isKindOfClass:[DoublePlayerMsg class]]) {
[self writeByte:138]; [self writeByte:138];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[FTXVodPlayConfigPlayerMsg class]]) { } else if ([value isKindOfClass:[IntPlayerMsg class]]) {
[self writeByte:139]; [self writeByte:139];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[FTXLivePlayConfigPlayerMsg class]]) { } else if ([value isKindOfClass:[FTXVodPlayConfigPlayerMsg class]]) {
[self writeByte:140]; [self writeByte:140];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[TXVodDownloadMediaMsg class]]) { } else if ([value isKindOfClass:[FTXLivePlayConfigPlayerMsg class]]) {
[self writeByte:141]; [self writeByte:141];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[TXDownloadListMsg class]]) { } else if ([value isKindOfClass:[TXVodDownloadMediaMsg class]]) {
[self writeByte:142]; [self writeByte:142];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[UInt8ListMsg class]]) { } else if ([value isKindOfClass:[TXDownloadListMsg class]]) {
[self writeByte:143]; [self writeByte:143];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[ListMsg class]]) { } else if ([value isKindOfClass:[UInt8ListMsg class]]) {
[self writeByte:144]; [self writeByte:144];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[BoolMsg class]]) { } else if ([value isKindOfClass:[ListMsg class]]) {
[self writeByte:145]; [self writeByte:145];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[IntMsg class]]) { } else if ([value isKindOfClass:[BoolMsg class]]) {
[self writeByte:146]; [self writeByte:146];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[StringMsg class]]) { } else if ([value isKindOfClass:[IntMsg class]]) {
[self writeByte:147]; [self writeByte:147];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[CachePathMsg class]]) { } else if ([value isKindOfClass:[StringMsg class]]) {
[self writeByte:148]; [self writeByte:148];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[DoubleMsg class]]) { } else if ([value isKindOfClass:[CachePathMsg class]]) {
[self writeByte:149]; [self writeByte:149];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[PreLoadMsg class]]) { } else if ([value isKindOfClass:[DoubleMsg class]]) {
[self writeByte:150]; [self writeByte:150];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[PreLoadInfoMsg class]]) { } else if ([value isKindOfClass:[PreLoadMsg class]]) {
[self writeByte:151]; [self writeByte:151];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[MapMsg class]]) { } else if ([value isKindOfClass:[PreLoadInfoMsg class]]) {
[self writeByte:152]; [self writeByte:152];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[SubTitlePlayerMsg class]]) { } else if ([value isKindOfClass:[MapMsg class]]) {
[self writeByte:153]; [self writeByte:153];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[SubTitleRenderModelPlayerMsg class]]) { } else if ([value isKindOfClass:[SubTitlePlayerMsg class]]) {
[self writeByte:154]; [self writeByte:154];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[StringOptionPlayerMsg class]]) { } else if ([value isKindOfClass:[SubTitleRenderModelPlayerMsg class]]) {
[self writeByte:155]; [self writeByte:155];
[self writeValue:[value toList]]; [self writeValue:[value toList]];
} else if ([value isKindOfClass:[StringOptionPlayerMsg class]]) {
[self writeByte:156];
[self writeValue:[value toList]];
} else { } else {
[super writeValue:value]; [super writeValue:value];
} }
......
...@@ -17,7 +17,7 @@ dependencies: ...@@ -17,7 +17,7 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
#pigeon: ^21.0.0 # pigeon: ^22.6.0
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论