1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Share/ApiLayer38.m
2015-10-01 19:19:52 +03:00

29830 lines
1.2 MiB

#import "ApiLayer38.h"
#import <objc/runtime.h>
static const char *Api38__Serializer_Key = "Api38__Serializer";
@interface Api38__Number : NSNumber
{
NSNumber *_value;
}
@end
@implementation Api38__Number
- (instancetype)initWithNumber:(NSNumber *)number
{
self = [super init];
if (self != nil)
{
_value = number;
}
return self;
}
- (char)charValue
{
return [_value charValue];
}
- (unsigned char)unsignedCharValue
{
return [_value unsignedCharValue];
}
- (short)shortValue
{
return [_value shortValue];
}
- (unsigned short)unsignedShortValue
{
return [_value unsignedShortValue];
}
- (int)intValue
{
return [_value intValue];
}
- (unsigned int)unsignedIntValue
{
return [_value unsignedIntValue];
}
- (long)longValue
{
return [_value longValue];
}
- (unsigned long)unsignedLongValue
{
return [_value unsignedLongValue];
}
- (long long)longLongValue
{
return [_value longLongValue];
}
- (unsigned long long)unsignedLongLongValue
{
return [_value unsignedLongLongValue];
}
- (float)floatValue
{
return [_value floatValue];
}
- (double)doubleValue
{
return [_value doubleValue];
}
- (BOOL)boolValue
{
return [_value boolValue];
}
- (NSInteger)integerValue
{
return [_value integerValue];
}
- (NSUInteger)unsignedIntegerValue
{
return [_value unsignedIntegerValue];
}
- (NSString *)stringValue
{
return [_value stringValue];
}
- (NSComparisonResult)compare:(NSNumber *)otherNumber
{
return [_value compare:otherNumber];
}
- (BOOL)isEqualToNumber:(NSNumber *)number
{
return [_value isEqualToNumber:number];
}
- (NSString *)descriptionWithLocale:(id)locale
{
return [_value descriptionWithLocale:locale];
}
- (void)getValue:(void *)value
{
[_value getValue:value];
}
- (const char *)objCType
{
return [_value objCType];
}
- (NSUInteger)hash
{
return [_value hash];
}
- (instancetype)copyWithZone:(NSZone *)__unused zone
{
return self;
}
@end
@interface Api38__Serializer : NSObject
@property (nonatomic) int32_t constructorSignature;
@property (nonatomic, copy) bool (^serializeBlock)(id object, NSMutableData *);
@end
@implementation Api38__Serializer
- (instancetype)initWithConstructorSignature:(int32_t)constructorSignature serializeBlock:(bool (^)(id, NSMutableData *))serializeBlock
{
self = [super init];
if (self != nil)
{
self.constructorSignature = constructorSignature;
self.serializeBlock = serializeBlock;
}
return self;
}
+ (id)addSerializerToObject:(id)object withConstructorSignature:(int32_t)constructorSignature serializeBlock:(bool (^)(id, NSMutableData *))serializeBlock
{
if (object != nil)
objc_setAssociatedObject(object, Api38__Serializer_Key, [[Api38__Serializer alloc] initWithConstructorSignature:constructorSignature serializeBlock:serializeBlock], OBJC_ASSOCIATION_RETAIN_NONATOMIC);
return object;
}
+ (id)addSerializerToObject:(id)object serializer:(Api38__Serializer *)serializer
{
if (object != nil)
objc_setAssociatedObject(object, Api38__Serializer_Key, serializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
return object;
}
@end
@interface Api38__UnboxedTypeMetaInfo : NSObject
@property (nonatomic, readonly) int32_t constructorSignature;
@end
@implementation Api38__UnboxedTypeMetaInfo
- (instancetype)initWithConstructorSignature:(int32_t)constructorSignature
{
self = [super init];
if (self != nil)
{
_constructorSignature = constructorSignature;
}
return self;
}
@end
@interface Api38__PreferNSDataTypeMetaInfo : NSObject
@end
@implementation Api38__PreferNSDataTypeMetaInfo
+ (instancetype)preferNSDataTypeMetaInfo
{
static Api38__PreferNSDataTypeMetaInfo *instance = nil;
static dispatch_once_t t;
dispatch_once(&t, ^
{
instance = [[Api38__PreferNSDataTypeMetaInfo alloc] init];
});
return instance;
}
@end
@interface Api38__BoxedTypeMetaInfo : NSObject
@end
@implementation Api38__BoxedTypeMetaInfo
+ (instancetype)boxedTypeMetaInfo
{
static Api38__BoxedTypeMetaInfo *instance = nil;
static dispatch_once_t t;
dispatch_once(&t, ^
{
instance = [[Api38__BoxedTypeMetaInfo alloc] init];
});
return instance;
}
@end
@implementation Api38__Environment
+ (id (^)(NSData *data, NSUInteger *offset, id metaInfo))parserByConstructorSignature:(int32_t)constructorSignature
{
static NSMutableDictionary *parsers = nil;
static dispatch_once_t t;
dispatch_once(&t, ^
{
parsers = [[NSMutableDictionary alloc] init];
parsers[@((int32_t)0xA8509BDA)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo)
{
if (*offset + 4 > data.length)
return nil;
int32_t value = 0;
[data getBytes:(void *)&value range:NSMakeRange(*offset, 4)];
*offset += 4;
return @(value);
} copy];
parsers[@((int32_t)0x22076CBA)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo)
{
if (*offset + 8 > data.length)
return nil;
int64_t value = 0;
[data getBytes:(void *)&value range:NSMakeRange(*offset, 8)];
*offset += 8;
return @(value);
} copy];
parsers[@((int32_t)0x2210C154)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo)
{
if (*offset + 8 > data.length)
return nil;
double value = 0;
[data getBytes:(void *)&value range:NSMakeRange(*offset, 8)];
*offset += 8;
return @(value);
} copy];
parsers[@((int32_t)0xB5286E24)] = [^id (NSData *data, NSUInteger *offset, __unused id metaInfo)
{
if (*offset + 1 > data.length)
return nil;
uint8_t tmp = 0;
[data getBytes:(void *)&tmp range:NSMakeRange(*offset, 1)];
*offset += 1;
int paddingBytes = 0;
int32_t length = tmp;
if (length == 254)
{
length = 0;
if (*offset + 3 > data.length)
return nil;
[data getBytes:((uint8_t *)&length) + 1 range:NSMakeRange(*offset, 3)];
*offset += 3;
length >>= 8;
paddingBytes = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length;
}
else
paddingBytes = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1);
bool isData = [metaInfo isKindOfClass:[Api38__PreferNSDataTypeMetaInfo class]];
id object = nil;
if (length > 0)
{
if (*offset + length > data.length)
return nil;
if (isData)
object = [[NSData alloc] initWithBytes:((uint8_t *)data.bytes) + *offset length:length];
else
object = [[NSString alloc] initWithBytes:((uint8_t *)data.bytes) + *offset length:length encoding:NSUTF8StringEncoding];
*offset += length;
}
*offset += paddingBytes;
return object == nil ? (isData ? [NSData data] : @"") : object;
} copy];
parsers[@((int32_t)0x1cb5c415)] = [^id (NSData *data, NSUInteger *offset, id metaInfo)
{
if (*offset + 4 > data.length)
return nil;
int32_t count = 0;
[data getBytes:(void *)&count range:NSMakeRange(*offset, 4)];
*offset += 4;
if (count < 0)
return nil;
bool isBoxed = false;
int32_t unboxedConstructorSignature = 0;
if ([metaInfo isKindOfClass:[Api38__BoxedTypeMetaInfo class]])
isBoxed = true;
else if ([metaInfo isKindOfClass:[Api38__UnboxedTypeMetaInfo class]])
unboxedConstructorSignature = ((Api38__UnboxedTypeMetaInfo *)metaInfo).constructorSignature;
else
return nil;
NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:(NSUInteger)count];
for (int32_t i = 0; i < count; i++)
{
int32_t itemConstructorSignature = 0;
if (isBoxed)
{
if (*offset + 4 > data.length)
return nil;
[data getBytes:(void *)&itemConstructorSignature range:NSMakeRange(*offset, 4)];
*offset += 4;
}
else
itemConstructorSignature = unboxedConstructorSignature;
id item = [Api38__Environment parseObject:data offset:offset implicitSignature:itemConstructorSignature metaInfo:nil];
if (item == nil)
return nil;
[array addObject:item];
}
return array;
} copy];
parsers[@((int32_t)0xb60a24a6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_StickerSet * set = nil;
int32_t set_signature = 0; [data getBytes:(void *)&set_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((set = [Api38__Environment parseObject:data offset:_offset implicitSignature:set_signature metaInfo:nil]) == nil)
return nil;
NSArray * packs = nil;
int32_t packs_signature = 0; [data getBytes:(void *)&packs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((packs = [Api38__Environment parseObject:data offset:_offset implicitSignature:packs_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * documents = nil;
int32_t documents_signature = 0; [data getBytes:(void *)&documents_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((documents = [Api38__Environment parseObject:data offset:_offset implicitSignature:documents_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_StickerSet messages_stickerSetWithSet:set packs:packs documents:documents];
} copy];
parsers[@((int32_t)0x68afa7d4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * country = nil;
if ((country = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * state = nil;
if ((state = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * city = nil;
if ((city = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * district = nil;
if ((district = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * street = nil;
if ((street = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputGeoPlaceName inputGeoPlaceNameWithCountry:country state:state city:city district:district street:street];
} copy];
parsers[@((int32_t)0xe4c123d6)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputGeoPoint inputGeoPointEmpty];
} copy];
parsers[@((int32_t)0xf3b7acc9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * lat = nil;
if ((lat = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
NSNumber * plong = nil;
if ((plong = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
return [Api38_InputGeoPoint inputGeoPointWithLat:lat plong:plong];
} copy];
parsers[@((int32_t)0x40e9002a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Chat * chat = nil;
int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chat = [Api38__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Chat messages_chatWithChat:chat users:users];
} copy];
parsers[@((int32_t)0x2e02a614)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_ChatParticipants * participants = nil;
int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((participants = [Api38__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:nil]) == nil)
return nil;
Api38_Photo * chatPhoto = nil;
int32_t chatPhoto_signature = 0; [data getBytes:(void *)&chatPhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chatPhoto = [Api38__Environment parseObject:data offset:_offset implicitSignature:chatPhoto_signature metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
Api38_ExportedChatInvite * exportedInvite = nil;
int32_t exportedInvite_signature = 0; [data getBytes:(void *)&exportedInvite_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((exportedInvite = [Api38__Environment parseObject:data offset:_offset implicitSignature:exportedInvite_signature metaInfo:nil]) == nil)
return nil;
NSArray * botInfo = nil;
int32_t botInfo_signature = 0; [data getBytes:(void *)&botInfo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((botInfo = [Api38__Environment parseObject:data offset:_offset implicitSignature:botInfo_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_ChatFull chatFullWithPid:pid participants:participants chatPhoto:chatPhoto notifySettings:notifySettings exportedInvite:exportedInvite botInfo:botInfo];
} copy];
parsers[@((int32_t)0xfab31aa3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * about = nil;
if ((about = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * participantsCount = nil;
if (flags != nil && ([flags intValue] & (1 << 0))) {
if ((participantsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * adminsCount = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((adminsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * kickedCount = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((kickedCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * readInboxMaxId = nil;
if ((readInboxMaxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadCount = nil;
if ((unreadCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadImportantCount = nil;
if ((unreadImportantCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Photo * chatPhoto = nil;
int32_t chatPhoto_signature = 0; [data getBytes:(void *)&chatPhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chatPhoto = [Api38__Environment parseObject:data offset:_offset implicitSignature:chatPhoto_signature metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
Api38_ExportedChatInvite * exportedInvite = nil;
int32_t exportedInvite_signature = 0; [data getBytes:(void *)&exportedInvite_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((exportedInvite = [Api38__Environment parseObject:data offset:_offset implicitSignature:exportedInvite_signature metaInfo:nil]) == nil)
return nil;
return [Api38_ChatFull channelFullWithFlags:flags pid:pid about:about participantsCount:participantsCount adminsCount:adminsCount kickedCount:kickedCount readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount chatPhoto:chatPhoto notifySettings:notifySettings exportedInvite:exportedInvite];
} copy];
parsers[@((int32_t)0xc8d7493e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChatParticipant chatParticipantWithUserId:userId inviterId:inviterId date:date];
} copy];
parsers[@((int32_t)0x5d75a138)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * seq = nil;
if ((seq = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_updates_Difference updates_differenceEmptyWithDate:date seq:seq];
} copy];
parsers[@((int32_t)0xf49ca0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * pnewMessages = nil;
int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pnewMessages = [Api38__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * pnewEncryptedMessages = nil;
int32_t pnewEncryptedMessages_signature = 0; [data getBytes:(void *)&pnewEncryptedMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pnewEncryptedMessages = [Api38__Environment parseObject:data offset:_offset implicitSignature:pnewEncryptedMessages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * otherUpdates = nil;
int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((otherUpdates = [Api38__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
Api38_updates_State * state = nil;
int32_t state_signature = 0; [data getBytes:(void *)&state_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((state = [Api38__Environment parseObject:data offset:_offset implicitSignature:state_signature metaInfo:nil]) == nil)
return nil;
return [Api38_updates_Difference updates_differenceWithPnewMessages:pnewMessages pnewEncryptedMessages:pnewEncryptedMessages otherUpdates:otherUpdates chats:chats users:users state:state];
} copy];
parsers[@((int32_t)0xa8fb1981)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * pnewMessages = nil;
int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pnewMessages = [Api38__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * pnewEncryptedMessages = nil;
int32_t pnewEncryptedMessages_signature = 0; [data getBytes:(void *)&pnewEncryptedMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pnewEncryptedMessages = [Api38__Environment parseObject:data offset:_offset implicitSignature:pnewEncryptedMessages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * otherUpdates = nil;
int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((otherUpdates = [Api38__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
Api38_updates_State * intermediateState = nil;
int32_t intermediateState_signature = 0; [data getBytes:(void *)&intermediateState_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((intermediateState = [Api38__Environment parseObject:data offset:_offset implicitSignature:intermediateState_signature metaInfo:nil]) == nil)
return nil;
return [Api38_updates_Difference updates_differenceSliceWithPnewMessages:pnewMessages pnewEncryptedMessages:pnewEncryptedMessages otherUpdates:otherUpdates chats:chats users:users intermediateState:intermediateState];
} copy];
parsers[@((int32_t)0x479357c0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * method = nil;
if ((method = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * params = nil;
int32_t params_signature = 0; [data getBytes:(void *)&params_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((params = [Api38__Environment parseObject:data offset:_offset implicitSignature:params_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_SchemeMethod schemeMethodWithPid:pid method:method params:params type:type];
} copy];
parsers[@((int32_t)0xade6b004)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPhotoCrop inputPhotoCropAuto];
} copy];
parsers[@((int32_t)0xd9915325)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * cropLeft = nil;
if ((cropLeft = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
NSNumber * cropTop = nil;
if ((cropTop = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
NSNumber * cropWidth = nil;
if ((cropWidth = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
return [Api38_InputPhotoCrop inputPhotoCropWithCropLeft:cropLeft cropTop:cropTop cropWidth:cropWidth];
} copy];
parsers[@((int32_t)0x2331b22d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Photo photoEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0x559dc1e2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_GeoPoint * geo = nil;
int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((geo = [Api38__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * unread = nil;
int32_t unread_signature = 0; [data getBytes:(void *)&unread_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((unread = [Api38__Environment parseObject:data offset:_offset implicitSignature:unread_signature metaInfo:nil]) == nil)
return nil;
NSArray * sizes = nil;
int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((sizes = [Api38__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Photo wallPhotoWithPid:pid accessHash:accessHash userId:userId date:date caption:caption geo:geo unread:unread sizes:sizes];
} copy];
parsers[@((int32_t)0xcded42fe)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * sizes = nil;
int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((sizes = [Api38__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Photo photoWithPid:pid accessHash:accessHash date:date sizes:sizes];
} copy];
parsers[@((int32_t)0x9ba2d800)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Chat chatEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0x678e9587)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * username = nil;
if (flags != nil && ([flags intValue] & (1 << 6))) {
if ((username = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
Api38_ChatPhoto * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Chat channelWithFlags:flags pid:pid accessHash:accessHash title:title username:username photo:photo date:date version:version];
} copy];
parsers[@((int32_t)0x2d85832c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Chat channelForbiddenWithPid:pid accessHash:accessHash title:title];
} copy];
parsers[@((int32_t)0x7312bc48)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_ChatPhoto * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
NSNumber * participantsCount = nil;
if ((participantsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Chat chatWithFlags:flags pid:pid title:title photo:photo participantsCount:participantsCount date:date version:version];
} copy];
parsers[@((int32_t)0x7328bdb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Chat chatForbiddenWithPid:pid title:title];
} copy];
parsers[@((int32_t)0x5a686d7c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Chat * chat = nil;
int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chat = [Api38__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil)
return nil;
return [Api38_ChatInvite chatInviteAlreadyWithChat:chat];
} copy];
parsers[@((int32_t)0x93e99b60)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_ChatInvite chatInviteWithFlags:flags title:title];
} copy];
parsers[@((int32_t)0x6262c36c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * requests = nil;
int32_t requests_signature = 0; [data getBytes:(void *)&requests_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((requests = [Api38__Environment parseObject:data offset:_offset implicitSignature:requests_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Requests contacts_requestsWithRequests:requests users:users];
} copy];
parsers[@((int32_t)0x6f585b8c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * requests = nil;
int32_t requests_signature = 0; [data getBytes:(void *)&requests_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((requests = [Api38__Environment parseObject:data offset:_offset implicitSignature:requests_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Requests contacts_requestsSliceWithCount:count requests:requests users:users];
} copy];
parsers[@((int32_t)0xf56ee2a8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * participants = nil;
int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((participants = [Api38__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_channels_ChannelParticipants channels_channelParticipantsWithCount:count participants:participants users:users];
} copy];
parsers[@((int32_t)0x3819538f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * country = nil;
if ((country = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * state = nil;
if ((state = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * city = nil;
if ((city = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * district = nil;
if ((district = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * street = nil;
if ((street = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_GeoPlaceName geoPlaceNameWithCountry:country state:state city:city district:district street:street];
} copy];
parsers[@((int32_t)0x5a89ac5b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_User * user = nil;
int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((user = [Api38__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil)
return nil;
Api38_contacts_Link * link = nil;
int32_t link_signature = 0; [data getBytes:(void *)&link_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((link = [Api38__Environment parseObject:data offset:_offset implicitSignature:link_signature metaInfo:nil]) == nil)
return nil;
Api38_Photo * profilePhoto = nil;
int32_t profilePhoto_signature = 0; [data getBytes:(void *)&profilePhoto_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((profilePhoto = [Api38__Environment parseObject:data offset:_offset implicitSignature:profilePhoto_signature metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * blocked = nil;
int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((blocked = [Api38__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:nil]) == nil)
return nil;
Api38_BotInfo * botInfo = nil;
int32_t botInfo_signature = 0; [data getBytes:(void *)&botInfo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((botInfo = [Api38__Environment parseObject:data offset:_offset implicitSignature:botInfo_signature metaInfo:nil]) == nil)
return nil;
return [Api38_UserFull userFullWithUser:user link:link profilePhoto:profilePhoto notifySettings:notifySettings blocked:blocked botInfo:botInfo];
} copy];
parsers[@((int32_t)0xf03064d8)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPeerNotifyEvents inputPeerNotifyEventsEmpty];
} copy];
parsers[@((int32_t)0xe86a2c74)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPeerNotifyEvents inputPeerNotifyEventsAll];
} copy];
parsers[@((int32_t)0xee8c1e86)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputChannel inputChannelEmpty];
} copy];
parsers[@((int32_t)0xafeb712e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputChannel inputChannelWithChannelId:channelId accessHash:accessHash];
} copy];
parsers[@((int32_t)0x5d8c6cc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * ipAddress = nil;
if ((ipAddress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * port = nil;
if ((port = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_DcOption dcOptionWithFlags:flags pid:pid ipAddress:ipAddress port:port];
} copy];
parsers[@((int32_t)0xe8346f53)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * minId = nil;
if ((minId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * maxId = nil;
if ((maxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageGroup messageGroupWithMinId:minId maxId:maxId count:count date:date];
} copy];
parsers[@((int32_t)0xb7b72ab3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * email = nil;
if ((email = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_account_PasswordSettings account_passwordSettingsWithEmail:email];
} copy];
parsers[@((int32_t)0x8987f311)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * critical = nil;
int32_t critical_signature = 0; [data getBytes:(void *)&critical_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((critical = [Api38__Environment parseObject:data offset:_offset implicitSignature:critical_signature metaInfo:nil]) == nil)
return nil;
NSString * url = nil;
if ((url = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * text = nil;
if ((text = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_help_AppUpdate help_appUpdateWithPid:pid critical:critical url:url text:text];
} copy];
parsers[@((int32_t)0xc45a6536)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_help_AppUpdate help_noAppUpdate];
} copy];
parsers[@((int32_t)0xd0d9b163)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_ChannelParticipant * participant = nil;
int32_t participant_signature = 0; [data getBytes:(void *)&participant_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((participant = [Api38__Environment parseObject:data offset:_offset implicitSignature:participant_signature metaInfo:nil]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_channels_ChannelParticipant channels_channelParticipantWithParticipant:participant users:users];
} copy];
parsers[@((int32_t)0x96a0c63e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_messages_Message * message = nil;
int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil)
return nil;
Api38_contacts_Link * link = nil;
int32_t link_signature = 0; [data getBytes:(void *)&link_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((link = [Api38__Environment parseObject:data offset:_offset implicitSignature:link_signature metaInfo:nil]) == nil)
return nil;
return [Api38_contacts_SentLink contacts_sentLinkWithMessage:message link:link];
} copy];
parsers[@((int32_t)0xb285a0c6)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantRole channelRoleEmpty];
} copy];
parsers[@((int32_t)0x9618d975)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantRole channelRoleModerator];
} copy];
parsers[@((int32_t)0x820bfe8c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantRole channelRoleEditor];
} copy];
parsers[@((int32_t)0xaa963b05)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileUnknown];
} copy];
parsers[@((int32_t)0x7efe0e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileJpeg];
} copy];
parsers[@((int32_t)0xcae1aadf)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileGif];
} copy];
parsers[@((int32_t)0xa4f63c0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_filePng];
} copy];
parsers[@((int32_t)0xae1e508d)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_filePdf];
} copy];
parsers[@((int32_t)0x528a0677)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileMp3];
} copy];
parsers[@((int32_t)0x4b09ebbc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileMov];
} copy];
parsers[@((int32_t)0x40bc6f52)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_filePartial];
} copy];
parsers[@((int32_t)0xb3cea0e4)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileMp4];
} copy];
parsers[@((int32_t)0x1081464c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_storage_FileType storage_fileWebp];
} copy];
parsers[@((int32_t)0x1837c364)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputEncryptedFile inputEncryptedFileEmpty];
} copy];
parsers[@((int32_t)0x64bd0306)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * parts = nil;
if ((parts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * md5Checksum = nil;
if ((md5Checksum = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * keyFingerprint = nil;
if ((keyFingerprint = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_InputEncryptedFile inputEncryptedFileUploadedWithPid:pid parts:parts md5Checksum:md5Checksum keyFingerprint:keyFingerprint];
} copy];
parsers[@((int32_t)0x5a17b5e5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputEncryptedFile inputEncryptedFileWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x2dc173c8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * parts = nil;
if ((parts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * keyFingerprint = nil;
if ((keyFingerprint = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_InputEncryptedFile inputEncryptedFileBigUploadedWithPid:pid parts:parts keyFingerprint:keyFingerprint];
} copy];
parsers[@((int32_t)0x560f8935)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_messages_SentEncryptedMessage messages_sentEncryptedMessageWithDate:date];
} copy];
parsers[@((int32_t)0x9493ff32)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_EncryptedFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
return [Api38_messages_SentEncryptedMessage messages_sentEncryptedFileWithDate:date file:file];
} copy];
parsers[@((int32_t)0xff036af1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_User * user = nil;
int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((user = [Api38__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil)
return nil;
return [Api38_auth_Authorization auth_authorizationWithUser:user];
} copy];
parsers[@((int32_t)0xf52ff27f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * parts = nil;
if ((parts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * name = nil;
if ((name = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * md5Checksum = nil;
if ((md5Checksum = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputFile inputFileWithPid:pid parts:parts name:name md5Checksum:md5Checksum];
} copy];
parsers[@((int32_t)0xfa4f0bb5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * parts = nil;
if ((parts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * name = nil;
if ((name = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputFile inputFileBigWithPid:pid parts:parts name:name];
} copy];
parsers[@((int32_t)0x9db1bc6d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Peer peerUserWithUserId:userId];
} copy];
parsers[@((int32_t)0xbad0e5bb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Peer peerChatWithChatId:chatId];
} copy];
parsers[@((int32_t)0xbddde532)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Peer peerChannelWithChannelId:channelId];
} copy];
parsers[@((int32_t)0x9d05049)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_UserStatus userStatusEmpty];
} copy];
parsers[@((int32_t)0xedb93949)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * expires = nil;
if ((expires = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_UserStatus userStatusOnlineWithExpires:expires];
} copy];
parsers[@((int32_t)0x8c703f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * wasOnline = nil;
if ((wasOnline = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_UserStatus userStatusOfflineWithWasOnline:wasOnline];
} copy];
parsers[@((int32_t)0xe26f42f1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_UserStatus userStatusRecently];
} copy];
parsers[@((int32_t)0x7bf09fc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_UserStatus userStatusLastWeek];
} copy];
parsers[@((int32_t)0x77ebc742)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_UserStatus userStatusLastMonth];
} copy];
parsers[@((int32_t)0xc1dd804a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
NSNumber * topMessage = nil;
if ((topMessage = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * readInboxMaxId = nil;
if ((readInboxMaxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadCount = nil;
if ((unreadCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Dialog dialogWithPeer:peer topMessage:topMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount notifySettings:notifySettings];
} copy];
parsers[@((int32_t)0x5b8496b2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
NSNumber * topMessage = nil;
if ((topMessage = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * topImportantMessage = nil;
if ((topImportantMessage = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * readInboxMaxId = nil;
if ((readInboxMaxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadCount = nil;
if ((unreadCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadImportantCount = nil;
if ((unreadImportantCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Dialog dialogChannelWithPeer:peer topMessage:topMessage topImportantMessage:topImportantMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount notifySettings:notifySettings pts:pts];
} copy];
parsers[@((int32_t)0xaf7e0394)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_help_AppChangelog help_appChangelogEmpty];
} copy];
parsers[@((int32_t)0x4668e6bd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * text = nil;
if ((text = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_help_AppChangelog help_appChangelogWithText:text];
} copy];
parsers[@((int32_t)0x16bf744e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageTypingAction];
} copy];
parsers[@((int32_t)0xfd5ec8f5)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageCancelAction];
} copy];
parsers[@((int32_t)0xa187d66f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageRecordVideoAction];
} copy];
parsers[@((int32_t)0xd52f73f7)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageRecordAudioAction];
} copy];
parsers[@((int32_t)0x176f8ba1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageGeoLocationAction];
} copy];
parsers[@((int32_t)0x628cbc6f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_SendMessageAction sendMessageChooseContactAction];
} copy];
parsers[@((int32_t)0xe9763aec)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * progress = nil;
if ((progress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_SendMessageAction sendMessageUploadVideoActionWithProgress:progress];
} copy];
parsers[@((int32_t)0xf351d7ab)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * progress = nil;
if ((progress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_SendMessageAction sendMessageUploadAudioActionWithProgress:progress];
} copy];
parsers[@((int32_t)0xaa0cd9e4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * progress = nil;
if ((progress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_SendMessageAction sendMessageUploadDocumentActionWithProgress:progress];
} copy];
parsers[@((int32_t)0xd1d34a26)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * progress = nil;
if ((progress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_SendMessageAction sendMessageUploadPhotoActionWithProgress:progress];
} copy];
parsers[@((int32_t)0xbc2eab30)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PrivacyKey privacyKeyStatusTimestamp];
} copy];
parsers[@((int32_t)0x4e90bfd6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * randomId = nil;
if ((randomId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateMessageIDWithPid:pid randomId:randomId];
} copy];
parsers[@((int32_t)0xd15de04d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateRestoreMessagesWithMessages:messages pts:pts];
} copy];
parsers[@((int32_t)0x7761198)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_ChatParticipants * participants = nil;
int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((participants = [Api38__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChatParticipantsWithParticipants:participants];
} copy];
parsers[@((int32_t)0x1bfbd823)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_UserStatus * status = nil;
int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((status = [Api38__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserStatusWithUserId:userId status:status];
} copy];
parsers[@((int32_t)0x2575bbb9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateContactRegisteredWithUserId:userId date:date];
} copy];
parsers[@((int32_t)0x5f83b963)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * contacts = nil;
int32_t contacts_signature = 0; [data getBytes:(void *)&contacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((contacts = [Api38__Environment parseObject:data offset:_offset implicitSignature:contacts_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Update updateContactLocatedWithContacts:contacts];
} copy];
parsers[@((int32_t)0x6f690963)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateActivationWithUserId:userId];
} copy];
parsers[@((int32_t)0x8f06529a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * authKeyId = nil;
if ((authKeyId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * device = nil;
if ((device = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * location = nil;
if ((location = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateNewAuthorizationWithAuthKeyId:authKeyId date:date device:device location:location];
} copy];
parsers[@((int32_t)0xdad7490e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_PhoneCall * phoneCall = nil;
int32_t phoneCall_signature = 0; [data getBytes:(void *)&phoneCall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneCall = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneCall_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updatePhoneCallRequestedWithPhoneCall:phoneCall];
} copy];
parsers[@((int32_t)0x5609ff88)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSData * aOrB = nil;
if ((aOrB = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
Api38_PhoneConnection * connection = nil;
int32_t connection_signature = 0; [data getBytes:(void *)&connection_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((connection = [Api38__Environment parseObject:data offset:_offset implicitSignature:connection_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updatePhoneCallConfirmedWithPid:pid aOrB:aOrB connection:connection];
} copy];
parsers[@((int32_t)0x31ae2cc2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Update updatePhoneCallDeclinedWithPid:pid];
} copy];
parsers[@((int32_t)0x95313b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_UserProfilePhoto * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * previous = nil;
int32_t previous_signature = 0; [data getBytes:(void *)&previous_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((previous = [Api38__Environment parseObject:data offset:_offset implicitSignature:previous_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserPhotoWithUserId:userId date:date photo:photo previous:previous];
} copy];
parsers[@((int32_t)0x12bcbd9a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_EncryptedMessage * message = nil;
int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil)
return nil;
NSNumber * qts = nil;
if ((qts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateNewEncryptedMessageWithMessage:message qts:qts];
} copy];
parsers[@((int32_t)0x1710f156)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateEncryptedChatTypingWithChatId:chatId];
} copy];
parsers[@((int32_t)0xb4a2e88d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_EncryptedChat * chat = nil;
int32_t chat_signature = 0; [data getBytes:(void *)&chat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chat = [Api38__Environment parseObject:data offset:_offset implicitSignature:chat_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateEncryptionWithChat:chat date:date];
} copy];
parsers[@((int32_t)0x38fe25b7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * maxDate = nil;
if ((maxDate = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateEncryptedMessagesReadWithChatId:chatId maxDate:maxDate date:date];
} copy];
parsers[@((int32_t)0x6e5f8c22)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChatParticipantDeleteWithChatId:chatId userId:userId version:version];
} copy];
parsers[@((int32_t)0x8e5e9873)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * dcOptions = nil;
int32_t dcOptions_signature = 0; [data getBytes:(void *)&dcOptions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((dcOptions = [Api38__Environment parseObject:data offset:_offset implicitSignature:dcOptions_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Update updateDcOptionsWithDcOptions:dcOptions];
} copy];
parsers[@((int32_t)0x80ece81a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * blocked = nil;
int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((blocked = [Api38__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserBlockedWithUserId:userId blocked:blocked];
} copy];
parsers[@((int32_t)0xbec268ef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_NotifyPeer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
Api38_PeerNotifySettings * notifySettings = nil;
int32_t notifySettings_signature = 0; [data getBytes:(void *)&notifySettings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((notifySettings = [Api38__Environment parseObject:data offset:_offset implicitSignature:notifySettings_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateNotifySettingsWithPeer:peer notifySettings:notifySettings];
} copy];
parsers[@((int32_t)0x5c486927)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_SendMessageAction * action = nil;
int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((action = [Api38__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserTypingWithUserId:userId action:action];
} copy];
parsers[@((int32_t)0x9a65ea1f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_SendMessageAction * action = nil;
int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((action = [Api38__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChatUserTypingWithChatId:chatId userId:userId action:action];
} copy];
parsers[@((int32_t)0xa7332b73)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * firstName = nil;
if ((firstName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * lastName = nil;
if ((lastName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * username = nil;
if ((username = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserNameWithUserId:userId firstName:firstName lastName:lastName username:username];
} copy];
parsers[@((int32_t)0x382dd3e4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * message = nil;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_MessageMedia * media = nil;
int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((media = [Api38__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * popup = nil;
int32_t popup_signature = 0; [data getBytes:(void *)&popup_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((popup = [Api38__Environment parseObject:data offset:_offset implicitSignature:popup_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateServiceNotificationWithType:type message:message media:media popup:popup];
} copy];
parsers[@((int32_t)0xee3b272a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_PrivacyKey * key = nil;
int32_t key_signature = 0; [data getBytes:(void *)&key_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((key = [Api38__Environment parseObject:data offset:_offset implicitSignature:key_signature metaInfo:nil]) == nil)
return nil;
NSArray * rules = nil;
int32_t rules_signature = 0; [data getBytes:(void *)&rules_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((rules = [Api38__Environment parseObject:data offset:_offset implicitSignature:rules_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Update updatePrivacyWithKey:key rules:rules];
} copy];
parsers[@((int32_t)0x12b9417b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * phone = nil;
if ((phone = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateUserPhoneWithUserId:userId phone:phone];
} copy];
parsers[@((int32_t)0x1f2b0afd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Message * message = nil;
int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateNewMessageWithMessage:message pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x2e5ab668)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateReadMessagesWithMessages:messages pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0xa20db0e5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateDeleteMessagesWithMessages:messages pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x9961fd5c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
NSNumber * maxId = nil;
if ((maxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateReadHistoryInboxWithPeer:peer maxId:maxId pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x2f2f21bf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
NSNumber * maxId = nil;
if ((maxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateReadHistoryOutboxWithPeer:peer maxId:maxId pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x9d2e67c5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_ContactLink * myLink = nil;
int32_t myLink_signature = 0; [data getBytes:(void *)&myLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((myLink = [Api38__Environment parseObject:data offset:_offset implicitSignature:myLink_signature metaInfo:nil]) == nil)
return nil;
Api38_ContactLink * foreignLink = nil;
int32_t foreignLink_signature = 0; [data getBytes:(void *)&foreignLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((foreignLink = [Api38__Environment parseObject:data offset:_offset implicitSignature:foreignLink_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateContactLinkWithUserId:userId myLink:myLink foreignLink:foreignLink];
} copy];
parsers[@((int32_t)0x68c13933)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateReadMessagesContentsWithMessages:messages pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0xea4b0e5c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChatParticipantAddWithChatId:chatId userId:userId inviterId:inviterId date:date version:version];
} copy];
parsers[@((int32_t)0x7f891213)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_WebPage * webpage = nil;
int32_t webpage_signature = 0; [data getBytes:(void *)&webpage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((webpage = [Api38__Environment parseObject:data offset:_offset implicitSignature:webpage_signature metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateWebPageWithWebpage:webpage pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x60946422)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChannelTooLongWithChannelId:channelId];
} copy];
parsers[@((int32_t)0xb6d45656)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChannelWithChannelId:channelId];
} copy];
parsers[@((int32_t)0xc36c1e3c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_MessageGroup * group = nil;
int32_t group_signature = 0; [data getBytes:(void *)&group_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((group = [Api38__Environment parseObject:data offset:_offset implicitSignature:group_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChannelGroupWithChannelId:channelId group:group];
} copy];
parsers[@((int32_t)0x62ba04d9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Message * message = nil;
int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateNewChannelMessageWithMessage:message pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x4214f37f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * maxId = nil;
if ((maxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateReadChannelInboxWithChannelId:channelId maxId:maxId];
} copy];
parsers[@((int32_t)0xc37521c9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateDeleteChannelMessagesWithChannelId:channelId messages:messages pts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0x98a12b4b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * views = nil;
if ((views = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Update updateChannelMessageViewsWithChannelId:channelId pid:pid views:views];
} copy];
parsers[@((int32_t)0x15ebac1d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantWithUserId:userId date:date];
} copy];
parsers[@((int32_t)0xa3289a6d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantSelfWithUserId:userId inviterId:inviterId date:date];
} copy];
parsers[@((int32_t)0x91057fef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantModeratorWithUserId:userId inviterId:inviterId date:date];
} copy];
parsers[@((int32_t)0x98192d61)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantEditorWithUserId:userId inviterId:inviterId date:date];
} copy];
parsers[@((int32_t)0x8cc5e69a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * kickedBy = nil;
if ((kickedBy = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantKickedWithUserId:userId kickedBy:kickedBy date:date];
} copy];
parsers[@((int32_t)0xe3e2e1f9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChannelParticipant channelParticipantCreatorWithUserId:userId];
} copy];
parsers[@((int32_t)0x1c138d15)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * blocked = nil;
int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((blocked = [Api38__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Blocked contacts_blockedWithBlocked:blocked users:users];
} copy];
parsers[@((int32_t)0x900802a1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * blocked = nil;
int32_t blocked_signature = 0; [data getBytes:(void *)&blocked_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((blocked = [Api38__Environment parseObject:data offset:_offset implicitSignature:blocked_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Blocked contacts_blockedSliceWithCount:count blocked:blocked users:users];
} copy];
parsers[@((int32_t)0xc4b9f9bb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * code = nil;
if ((code = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * text = nil;
if ((text = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Error errorWithCode:code text:text];
} copy];
parsers[@((int32_t)0x59aefc57)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * code = nil;
if ((code = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * nDescription = nil;
if ((nDescription = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * debug = nil;
if ((debug = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * requestParams = nil;
if ((requestParams = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Error richErrorWithCode:code type:type nDescription:nDescription debug:debug requestParams:requestParams];
} copy];
parsers[@((int32_t)0xe144acaf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_GeoPoint * location = nil;
int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((location = [Api38__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * distance = nil;
if ((distance = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ContactLocated contactLocatedWithUserId:userId location:location date:date distance:distance];
} copy];
parsers[@((int32_t)0xc1257157)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phash = nil;
if ((phash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_Bool * hidden = nil;
int32_t hidden_signature = 0; [data getBytes:(void *)&hidden_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hidden = [Api38__Environment parseObject:data offset:_offset implicitSignature:hidden_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * distance = nil;
if ((distance = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ContactLocated contactLocatedPreviewWithPhash:phash hidden:hidden date:date distance:distance];
} copy];
parsers[@((int32_t)0xa2fa4880)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * text = nil;
if ((text = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_KeyboardButton keyboardButtonWithText:text];
} copy];
parsers[@((int32_t)0xd3680c61)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_UserStatus * status = nil;
int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((status = [Api38__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil)
return nil;
return [Api38_ContactStatus contactStatusWithUserId:userId status:status];
} copy];
parsers[@((int32_t)0xe17e23c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_PhotoSize photoSizeEmptyWithType:type];
} copy];
parsers[@((int32_t)0x77bfb61b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_FileLocation * location = nil;
int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((location = [Api38__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * size = nil;
if ((size = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_PhotoSize photoSizeWithType:type location:location w:w h:h size:size];
} copy];
parsers[@((int32_t)0xe9a734fa)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_FileLocation * location = nil;
int32_t location_signature = 0; [data getBytes:(void *)&location_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((location = [Api38__Environment parseObject:data offset:_offset implicitSignature:location_signature metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_PhotoSize photoCachedSizeWithType:type location:location w:w h:h bytes:bytes];
} copy];
parsers[@((int32_t)0xf1749a22)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_messages_Stickers messages_stickersNotModified];
} copy];
parsers[@((int32_t)0x8a8ecd32)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phash = nil;
if ((phash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * stickers = nil;
int32_t stickers_signature = 0; [data getBytes:(void *)&stickers_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((stickers = [Api38__Environment parseObject:data offset:_offset implicitSignature:stickers_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Stickers messages_stickersWithPhash:phash stickers:stickers];
} copy];
parsers[@((int32_t)0x40f5c53a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * noSuggestions = nil;
int32_t noSuggestions_signature = 0; [data getBytes:(void *)&noSuggestions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((noSuggestions = [Api38__Environment parseObject:data offset:_offset implicitSignature:noSuggestions_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * hideContacts = nil;
int32_t hideContacts_signature = 0; [data getBytes:(void *)&hideContacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hideContacts = [Api38__Environment parseObject:data offset:_offset implicitSignature:hideContacts_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * hideLocated = nil;
int32_t hideLocated_signature = 0; [data getBytes:(void *)&hideLocated_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hideLocated = [Api38__Environment parseObject:data offset:_offset implicitSignature:hideLocated_signature metaInfo:nil]) == nil)
return nil;
Api38_Bool * hideLastVisit = nil;
int32_t hideLastVisit_signature = 0; [data getBytes:(void *)&hideLastVisit_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hideLastVisit = [Api38__Environment parseObject:data offset:_offset implicitSignature:hideLastVisit_signature metaInfo:nil]) == nil)
return nil;
return [Api38_GlobalPrivacySettings globalPrivacySettingsWithNoSuggestions:noSuggestions hideContacts:hideContacts hideLocated:hideLocated hideLastVisit:hideLastVisit];
} copy];
parsers[@((int32_t)0x7c596b46)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * volumeId = nil;
if ((volumeId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * localId = nil;
if ((localId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * secret = nil;
if ((secret = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_FileLocation fileLocationUnavailableWithVolumeId:volumeId localId:localId secret:secret];
} copy];
parsers[@((int32_t)0x53d69076)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * volumeId = nil;
if ((volumeId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * localId = nil;
if ((localId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * secret = nil;
if ((secret = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_FileLocation fileLocationWithDcId:dcId volumeId:volumeId localId:localId secret:secret];
} copy];
parsers[@((int32_t)0xb8bc5b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputPeer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputNotifyPeer inputNotifyPeerWithPeer:peer];
} copy];
parsers[@((int32_t)0x193b4417)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputNotifyPeer inputNotifyUsers];
} copy];
parsers[@((int32_t)0x4a95e84e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputNotifyPeer inputNotifyChats];
} copy];
parsers[@((int32_t)0xa429b886)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputNotifyPeer inputNotifyAll];
} copy];
parsers[@((int32_t)0xed18c118)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * randomId = nil;
if ((randomId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
Api38_EncryptedFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedMessage encryptedMessageWithRandomId:randomId chatId:chatId date:date bytes:bytes file:file];
} copy];
parsers[@((int32_t)0x23734b06)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * randomId = nil;
if ((randomId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_EncryptedMessage encryptedMessageServiceWithRandomId:randomId chatId:chatId date:date bytes:bytes];
} copy];
parsers[@((int32_t)0xde3f3c79)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantsFilter channelParticipantsRecent];
} copy];
parsers[@((int32_t)0xb4608969)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantsFilter channelParticipantsAdmins];
} copy];
parsers[@((int32_t)0x3c37bb7a)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelParticipantsFilter channelParticipantsKicked];
} copy];
parsers[@((int32_t)0xeb1477e8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_WebPage webPageEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0xc586da1c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_WebPage webPagePendingWithPid:pid date:date];
} copy];
parsers[@((int32_t)0xca820ed7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSString * url = nil;
if ((url = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * displayUrl = nil;
if ((displayUrl = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * type = nil;
if (flags != nil && ([flags intValue] & (1 << 0))) {
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * siteName = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((siteName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * title = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * pdescription = nil;
if (flags != nil && ([flags intValue] & (1 << 3))) {
if ((pdescription = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
Api38_Photo * photo = nil;
if (flags != nil && ([flags intValue] & (1 << 4))) {
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
}
NSString * embedUrl = nil;
if (flags != nil && ([flags intValue] & (1 << 5))) {
if ((embedUrl = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * embedType = nil;
if (flags != nil && ([flags intValue] & (1 << 5))) {
if ((embedType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSNumber * embedWidth = nil;
if (flags != nil && ([flags intValue] & (1 << 6))) {
if ((embedWidth = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * embedHeight = nil;
if (flags != nil && ([flags intValue] & (1 << 6))) {
if ((embedHeight = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * duration = nil;
if (flags != nil && ([flags intValue] & (1 << 7))) {
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSString * author = nil;
if (flags != nil && ([flags intValue] & (1 << 8))) {
if ((author = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
Api38_Document * document = nil;
if (flags != nil && ([flags intValue] & (1 << 9))) {
int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((document = [Api38__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil)
return nil;
}
return [Api38_WebPage webPageWithFlags:flags pid:pid url:url displayUrl:displayUrl type:type siteName:siteName title:title pdescription:pdescription photo:photo embedUrl:embedUrl embedType:embedType embedWidth:embedWidth embedHeight:embedHeight duration:duration author:author document:document];
} copy];
parsers[@((int32_t)0x77608b83)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * buttons = nil;
int32_t buttons_signature = 0; [data getBytes:(void *)&buttons_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((buttons = [Api38__Environment parseObject:data offset:_offset implicitSignature:buttons_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_KeyboardButtonRow keyboardButtonRowWithButtons:buttons];
} copy];
parsers[@((int32_t)0xcd303b41)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * shortName = nil;
if ((shortName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * nHash = nil;
if ((nHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_StickerSet stickerSetWithFlags:flags pid:pid accessHash:accessHash title:title shortName:shortName count:count nHash:nHash];
} copy];
parsers[@((int32_t)0x20212ca8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Photo * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_photos_Photo photos_photoWithPhoto:photo users:users];
} copy];
parsers[@((int32_t)0xf392b7f4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * clientId = nil;
if ((clientId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSString * phone = nil;
if ((phone = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * firstName = nil;
if ((firstName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * lastName = nil;
if ((lastName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputContact inputPhoneContactWithClientId:clientId phone:phone firstName:firstName lastName:lastName];
} copy];
parsers[@((int32_t)0x6f8b8cb2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * contacts = nil;
int32_t contacts_signature = 0; [data getBytes:(void *)&contacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((contacts = [Api38__Environment parseObject:data offset:_offset implicitSignature:contacts_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Contacts contacts_contactsWithContacts:contacts users:users];
} copy];
parsers[@((int32_t)0xb74ba9d2)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_contacts_Contacts contacts_contactsNotModified];
} copy];
parsers[@((int32_t)0x94d42ee7)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelMessagesFilter channelMessagesFilterEmpty];
} copy];
parsers[@((int32_t)0xcd77d957)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * ranges = nil;
int32_t ranges_signature = 0; [data getBytes:(void *)&ranges_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((ranges = [Api38__Environment parseObject:data offset:_offset implicitSignature:ranges_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_ChannelMessagesFilter channelMessagesFilterWithFlags:flags ranges:ranges];
} copy];
parsers[@((int32_t)0xfa01232e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChannelMessagesFilter channelMessagesFilterCollapsed];
} copy];
parsers[@((int32_t)0x137948a5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * emailPattern = nil;
if ((emailPattern = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_auth_PasswordRecovery auth_passwordRecoveryWithEmailPattern:emailPattern];
} copy];
parsers[@((int32_t)0x72f0eaae)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputDocument inputDocumentEmpty];
} copy];
parsers[@((int32_t)0x18798952)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputDocument inputDocumentWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x7f077ad9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_ResolvedPeer contacts_resolvedPeerWithPeer:peer chats:chats users:users];
} copy];
parsers[@((int32_t)0x9664f57f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputMedia inputMediaEmpty];
} copy];
parsers[@((int32_t)0xf9c44144)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputGeoPoint * geoPoint = nil;
int32_t geoPoint_signature = 0; [data getBytes:(void *)&geoPoint_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((geoPoint = [Api38__Environment parseObject:data offset:_offset implicitSignature:geoPoint_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaGeoPointWithGeoPoint:geoPoint];
} copy];
parsers[@((int32_t)0xa6e45987)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phoneNumber = nil;
if ((phoneNumber = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * firstName = nil;
if ((firstName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * lastName = nil;
if ((lastName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaContactWithPhoneNumber:phoneNumber firstName:firstName lastName:lastName];
} copy];
parsers[@((int32_t)0x89938781)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputAudio * pid = nil;
int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaAudioWithPid:pid];
} copy];
parsers[@((int32_t)0xd184e841)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputDocument * pid = nil;
int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaDocumentWithPid:pid];
} copy];
parsers[@((int32_t)0x4e498cab)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedAudioWithFile:file duration:duration mimeType:mimeType];
} copy];
parsers[@((int32_t)0xffe76b78)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * attributes = nil;
int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((attributes = [Api38__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedDocumentWithFile:file mimeType:mimeType attributes:attributes];
} copy];
parsers[@((int32_t)0x41481486)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
Api38_InputFile * thumb = nil;
int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((thumb = [Api38__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * attributes = nil;
int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((attributes = [Api38__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedThumbDocumentWithFile:file thumb:thumb mimeType:mimeType attributes:attributes];
} copy];
parsers[@((int32_t)0xf7aff1c0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedPhotoWithFile:file caption:caption];
} copy];
parsers[@((int32_t)0xe9bfb4f3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputPhoto * pid = nil;
int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaPhotoWithPid:pid caption:caption];
} copy];
parsers[@((int32_t)0x936a4ebd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputVideo * pid = nil;
int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaVideoWithPid:pid caption:caption];
} copy];
parsers[@((int32_t)0x2827a81a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputGeoPoint * geoPoint = nil;
int32_t geoPoint_signature = 0; [data getBytes:(void *)&geoPoint_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((geoPoint = [Api38__Environment parseObject:data offset:_offset implicitSignature:geoPoint_signature metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * address = nil;
if ((address = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * provider = nil;
if ((provider = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * venueId = nil;
if ((venueId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaVenueWithGeoPoint:geoPoint title:title address:address provider:provider venueId:venueId];
} copy];
parsers[@((int32_t)0x82713fdf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedVideoWithFile:file duration:duration w:w h:h mimeType:mimeType caption:caption];
} copy];
parsers[@((int32_t)0x7780ddf9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
Api38_InputFile * thumb = nil;
int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((thumb = [Api38__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil)
return nil;
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputMedia inputMediaUploadedThumbVideoWithFile:file thumb:thumb duration:duration w:w h:h mimeType:mimeType caption:caption];
} copy];
parsers[@((int32_t)0x7f3b18ea)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPeer inputPeerEmpty];
} copy];
parsers[@((int32_t)0x7da07ec9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPeer inputPeerSelf];
} copy];
parsers[@((int32_t)0x179be863)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_InputPeer inputPeerChatWithChatId:chatId];
} copy];
parsers[@((int32_t)0x7b8e7de6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputPeer inputPeerUserWithUserId:userId accessHash:accessHash];
} copy];
parsers[@((int32_t)0x20adaef8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * channelId = nil;
if ((channelId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputPeer inputPeerChannelWithChannelId:channelId accessHash:accessHash];
} copy];
parsers[@((int32_t)0xf911c994)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * mutual = nil;
int32_t mutual_signature = 0; [data getBytes:(void *)&mutual_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((mutual = [Api38__Environment parseObject:data offset:_offset implicitSignature:mutual_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Contact contactWithUserId:userId mutual:mutual];
} copy];
parsers[@((int32_t)0x64ff9fd5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Chats messages_chatsWithChats:chats];
} copy];
parsers[@((int32_t)0xd22a1c60)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_contacts_MyLink contacts_myLinkEmpty];
} copy];
parsers[@((int32_t)0x6c69efee)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * contact = nil;
int32_t contact_signature = 0; [data getBytes:(void *)&contact_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((contact = [Api38__Environment parseObject:data offset:_offset implicitSignature:contact_signature metaInfo:nil]) == nil)
return nil;
return [Api38_contacts_MyLink contacts_myLinkRequestedWithContact:contact];
} copy];
parsers[@((int32_t)0xc240ebd9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_contacts_MyLink contacts_myLinkContact];
} copy];
parsers[@((int32_t)0xd09e07b)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPrivacyRule inputPrivacyValueAllowContacts];
} copy];
parsers[@((int32_t)0x184b35ce)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPrivacyRule inputPrivacyValueAllowAll];
} copy];
parsers[@((int32_t)0x131cc67f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_InputPrivacyRule inputPrivacyValueAllowUsersWithUsers:users];
} copy];
parsers[@((int32_t)0xba52007)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPrivacyRule inputPrivacyValueDisallowContacts];
} copy];
parsers[@((int32_t)0xd66b66c9)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPrivacyRule inputPrivacyValueDisallowAll];
} copy];
parsers[@((int32_t)0x90110467)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_InputPrivacyRule inputPrivacyValueDisallowUsersWithUsers:users];
} copy];
parsers[@((int32_t)0xc0e24635)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSData * random = nil;
if ((random = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_DhConfig messages_dhConfigNotModifiedWithRandom:random];
} copy];
parsers[@((int32_t)0x2c221edd)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * g = nil;
if ((g = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * p = nil;
if ((p = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * random = nil;
if ((random = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_DhConfig messages_dhConfigWithG:g p:p version:version random:random];
} copy];
parsers[@((int32_t)0xdf969c2d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_auth_ExportedAuthorization auth_exportedAuthorizationWithPid:pid bytes:bytes];
} copy];
parsers[@((int32_t)0x59f24214)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ContactRequest contactRequestWithUserId:userId date:date];
} copy];
parsers[@((int32_t)0xb45c69d1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_messages_AffectedHistory messages_affectedHistoryWithPts:pts ptsCount:ptsCount offset:offset];
} copy];
parsers[@((int32_t)0xf19c121e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_account_PasswordInputSettings account_passwordInputSettings];
} copy];
parsers[@((int32_t)0xe5d7d19c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_ChatFull * fullChat = nil;
int32_t fullChat_signature = 0; [data getBytes:(void *)&fullChat_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((fullChat = [Api38__Environment parseObject:data offset:_offset implicitSignature:fullChat_signature metaInfo:nil]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_ChatFull messages_chatFullWithFullChat:fullChat chats:chats users:users];
} copy];
parsers[@((int32_t)0x133421f8)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_contacts_ForeignLink contacts_foreignLinkUnknown];
} copy];
parsers[@((int32_t)0xa7801f47)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * hasPhone = nil;
int32_t hasPhone_signature = 0; [data getBytes:(void *)&hasPhone_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hasPhone = [Api38__Environment parseObject:data offset:_offset implicitSignature:hasPhone_signature metaInfo:nil]) == nil)
return nil;
return [Api38_contacts_ForeignLink contacts_foreignLinkRequestedWithHasPhone:hasPhone];
} copy];
parsers[@((int32_t)0x1bea8ce1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_contacts_ForeignLink contacts_foreignLinkMutual];
} copy];
parsers[@((int32_t)0xf141b5e1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputEncryptedChat inputEncryptedChatWithChatId:chatId accessHash:accessHash];
} copy];
parsers[@((int32_t)0xae636f24)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * feature = nil;
if ((feature = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * nDescription = nil;
if ((nDescription = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_DisabledFeature disabledFeatureWithFeature:feature nDescription:nDescription];
} copy];
parsers[@((int32_t)0xc21f497e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_EncryptedFile encryptedFileEmpty];
} copy];
parsers[@((int32_t)0x4a70994c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * size = nil;
if ((size = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * keyFingerprint = nil;
if ((keyFingerprint = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedFile encryptedFileWithPid:pid accessHash:accessHash size:size dcId:dcId keyFingerprint:keyFingerprint];
} copy];
parsers[@((int32_t)0x9fd40bd8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Peer * peer = nil;
int32_t peer_signature = 0; [data getBytes:(void *)&peer_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((peer = [Api38__Environment parseObject:data offset:_offset implicitSignature:peer_signature metaInfo:nil]) == nil)
return nil;
return [Api38_NotifyPeer notifyPeerWithPeer:peer];
} copy];
parsers[@((int32_t)0xb4c83b4c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_NotifyPeer notifyUsers];
} copy];
parsers[@((int32_t)0xc007cec3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_NotifyPeer notifyChats];
} copy];
parsers[@((int32_t)0x74d07c60)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_NotifyPeer notifyAll];
} copy];
parsers[@((int32_t)0x4f96cb18)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPrivacyKey inputPrivacyKeyStatusTimestamp];
} copy];
parsers[@((int32_t)0xa03e5b85)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ReplyMarkup replyKeyboardHideWithFlags:flags];
} copy];
parsers[@((int32_t)0xf4108aa0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ReplyMarkup replyKeyboardForceReplyWithFlags:flags];
} copy];
parsers[@((int32_t)0x3502758c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * rows = nil;
int32_t rows_signature = 0; [data getBytes:(void *)&rows_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((rows = [Api38__Environment parseObject:data offset:_offset implicitSignature:rows_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_ReplyMarkup replyKeyboardMarkupWithFlags:flags rows:rows];
} copy];
parsers[@((int32_t)0x3ace484c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_ContactLink * myLink = nil;
int32_t myLink_signature = 0; [data getBytes:(void *)&myLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((myLink = [Api38__Environment parseObject:data offset:_offset implicitSignature:myLink_signature metaInfo:nil]) == nil)
return nil;
Api38_ContactLink * foreignLink = nil;
int32_t foreignLink_signature = 0; [data getBytes:(void *)&foreignLink_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((foreignLink = [Api38__Environment parseObject:data offset:_offset implicitSignature:foreignLink_signature metaInfo:nil]) == nil)
return nil;
Api38_User * user = nil;
int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((user = [Api38__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil)
return nil;
return [Api38_contacts_Link contacts_linkWithMyLink:myLink foreignLink:foreignLink user:user];
} copy];
parsers[@((int32_t)0x561bc879)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ContactBlocked contactBlockedWithUserId:userId date:date];
} copy];
parsers[@((int32_t)0x811ea28e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * phoneRegistered = nil;
int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneRegistered = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil)
return nil;
return [Api38_auth_CheckedPhone auth_checkedPhoneWithPhoneRegistered:phoneRegistered];
} copy];
parsers[@((int32_t)0xb98886cf)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputUser inputUserEmpty];
} copy];
parsers[@((int32_t)0xf7c1b13f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputUser inputUserSelf];
} copy];
parsers[@((int32_t)0xd8292816)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputUser inputUserWithUserId:userId accessHash:accessHash];
} copy];
parsers[@((int32_t)0xa8e1e989)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * predicate = nil;
if ((predicate = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * params = nil;
int32_t params_signature = 0; [data getBytes:(void *)&params_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((params = [Api38__Environment parseObject:data offset:_offset implicitSignature:params_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_SchemeType schemeTypeWithPid:pid predicate:predicate params:params type:type];
} copy];
parsers[@((int32_t)0x96a18d5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_storage_FileType * type = nil;
int32_t type_signature = 0; [data getBytes:(void *)&type_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:type_signature metaInfo:nil]) == nil)
return nil;
NSNumber * mtime = nil;
if ((mtime = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_upload_File upload_fileWithType:type mtime:mtime bytes:bytes];
} copy];
parsers[@((int32_t)0x5508ec75)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputVideo inputVideoEmpty];
} copy];
parsers[@((int32_t)0xee579652)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputVideo inputVideoWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0xae30253)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * minId = nil;
if ((minId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * maxId = nil;
if ((maxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageRange messageRangeWithMinId:minId maxId:maxId];
} copy];
parsers[@((int32_t)0x4e32b894)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * expires = nil;
if ((expires = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * testMode = nil;
int32_t testMode_signature = 0; [data getBytes:(void *)&testMode_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((testMode = [Api38__Environment parseObject:data offset:_offset implicitSignature:testMode_signature metaInfo:nil]) == nil)
return nil;
NSNumber * thisDc = nil;
if ((thisDc = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * dcOptions = nil;
int32_t dcOptions_signature = 0; [data getBytes:(void *)&dcOptions_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((dcOptions = [Api38__Environment parseObject:data offset:_offset implicitSignature:dcOptions_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * chatSizeMax = nil;
if ((chatSizeMax = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * broadcastSizeMax = nil;
if ((broadcastSizeMax = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * forwardedCountMax = nil;
if ((forwardedCountMax = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * onlineUpdatePeriodMs = nil;
if ((onlineUpdatePeriodMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * offlineBlurTimeoutMs = nil;
if ((offlineBlurTimeoutMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * offlineIdleTimeoutMs = nil;
if ((offlineIdleTimeoutMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * onlineCloudTimeoutMs = nil;
if ((onlineCloudTimeoutMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * notifyCloudDelayMs = nil;
if ((notifyCloudDelayMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * notifyDefaultDelayMs = nil;
if ((notifyDefaultDelayMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * chatBigSize = nil;
if ((chatBigSize = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pushChatPeriodMs = nil;
if ((pushChatPeriodMs = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pushChatLimit = nil;
if ((pushChatLimit = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * disabledFeatures = nil;
int32_t disabledFeatures_signature = 0; [data getBytes:(void *)&disabledFeatures_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((disabledFeatures = [Api38__Environment parseObject:data offset:_offset implicitSignature:disabledFeatures_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Config configWithDate:date expires:expires testMode:testMode thisDc:thisDc dcOptions:dcOptions chatSizeMax:chatSizeMax broadcastSizeMax:broadcastSizeMax forwardedCountMax:forwardedCountMax onlineUpdatePeriodMs:onlineUpdatePeriodMs offlineBlurTimeoutMs:offlineBlurTimeoutMs offlineIdleTimeoutMs:offlineIdleTimeoutMs onlineCloudTimeoutMs:onlineCloudTimeoutMs notifyCloudDelayMs:notifyCloudDelayMs notifyDefaultDelayMs:notifyDefaultDelayMs chatBigSize:chatBigSize pushChatPeriodMs:pushChatPeriodMs pushChatLimit:pushChatLimit disabledFeatures:disabledFeatures];
} copy];
parsers[@((int32_t)0xc27ac8c7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * command = nil;
if ((command = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * pdescription = nil;
if ((pdescription = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_BotCommand botCommandWithCommand:command pdescription:pdescription];
} copy];
parsers[@((int32_t)0x586988d8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Audio audioEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0xf9e35055)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * size = nil;
if ((size = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Audio audioWithPid:pid accessHash:accessHash date:date duration:duration mimeType:mimeType size:size dcId:dcId];
} copy];
parsers[@((int32_t)0xaad7f4a7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * results = nil;
int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((results = [Api38__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Located contacts_locatedWithResults:results users:users];
} copy];
parsers[@((int32_t)0x84d19185)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_messages_AffectedMessages messages_affectedMessagesWithPts:pts ptsCount:ptsCount];
} copy];
parsers[@((int32_t)0xd95adc84)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputAudio inputAudioEmpty];
} copy];
parsers[@((int32_t)0x77d440ff)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputAudio inputAudioWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x2194f56e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ResponseIndirect responseIndirect];
} copy];
parsers[@((int32_t)0xccb03657)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * sizes = nil;
int32_t sizes_signature = 0; [data getBytes:(void *)&sizes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((sizes = [Api38__Environment parseObject:data offset:_offset implicitSignature:sizes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * color = nil;
if ((color = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_WallPaper wallPaperWithPid:pid title:title sizes:sizes color:color];
} copy];
parsers[@((int32_t)0x63117f24)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * bgColor = nil;
if ((bgColor = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * color = nil;
if ((color = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_WallPaper wallPaperSolidWithPid:pid title:title bgColor:bgColor color:color];
} copy];
parsers[@((int32_t)0x8c718e87)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Messages messages_messagesWithMessages:messages chats:chats users:users];
} copy];
parsers[@((int32_t)0xb446ae3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Messages messages_messagesSliceWithCount:count messages:messages chats:chats users:users];
} copy];
parsers[@((int32_t)0xbc0f17bc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * collapsed = nil;
if (flags != nil && ([flags intValue] & (1 << 0))) {
int32_t collapsed_signature = 0; [data getBytes:(void *)&collapsed_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((collapsed = [Api38__Environment parseObject:data offset:_offset implicitSignature:collapsed_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
}
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Messages messages_channelMessagesWithFlags:flags pts:pts count:count messages:messages collapsed:collapsed chats:chats users:users];
} copy];
parsers[@((int32_t)0x3cf5727a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * phoneRegistered = nil;
int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneRegistered = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil)
return nil;
NSString * phoneCodeHash = nil;
if ((phoneCodeHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * phoneCodeTest = nil;
if ((phoneCodeTest = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_auth_SentCode auth_sentCodePreviewWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash phoneCodeTest:phoneCodeTest];
} copy];
parsers[@((int32_t)0x1a1e1fae)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * phoneRegistered = nil;
int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneRegistered = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil)
return nil;
return [Api38_auth_SentCode auth_sentPassPhraseWithPhoneRegistered:phoneRegistered];
} copy];
parsers[@((int32_t)0xefed51d9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * phoneRegistered = nil;
int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneRegistered = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil)
return nil;
NSString * phoneCodeHash = nil;
if ((phoneCodeHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * sendCallTimeout = nil;
if ((sendCallTimeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * isPassword = nil;
int32_t isPassword_signature = 0; [data getBytes:(void *)&isPassword_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((isPassword = [Api38__Environment parseObject:data offset:_offset implicitSignature:isPassword_signature metaInfo:nil]) == nil)
return nil;
return [Api38_auth_SentCode auth_sentCodeWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout isPassword:isPassword];
} copy];
parsers[@((int32_t)0xe325edcf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * phoneRegistered = nil;
int32_t phoneRegistered_signature = 0; [data getBytes:(void *)&phoneRegistered_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((phoneRegistered = [Api38__Environment parseObject:data offset:_offset implicitSignature:phoneRegistered_signature metaInfo:nil]) == nil)
return nil;
NSString * phoneCodeHash = nil;
if ((phoneCodeHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * sendCallTimeout = nil;
if ((sendCallTimeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Bool * isPassword = nil;
int32_t isPassword_signature = 0; [data getBytes:(void *)&isPassword_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((isPassword = [Api38__Environment parseObject:data offset:_offset implicitSignature:isPassword_signature metaInfo:nil]) == nil)
return nil;
return [Api38_auth_SentCode auth_sentAppCodeWithPhoneRegistered:phoneRegistered phoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout isPassword:isPassword];
} copy];
parsers[@((int32_t)0x8a5d855e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * g = nil;
if ((g = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * p = nil;
if ((p = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * ringTimeout = nil;
if ((ringTimeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * expires = nil;
if ((expires = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_phone_DhConfig phone_dhConfigWithG:g p:p ringTimeout:ringTimeout expires:expires];
} copy];
parsers[@((int32_t)0x1ca48f57)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputChatPhoto inputChatPhotoEmpty];
} copy];
parsers[@((int32_t)0x94254732)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputFile * file = nil;
int32_t file_signature = 0; [data getBytes:(void *)&file_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((file = [Api38__Environment parseObject:data offset:_offset implicitSignature:file_signature metaInfo:nil]) == nil)
return nil;
Api38_InputPhotoCrop * crop = nil;
int32_t crop_signature = 0; [data getBytes:(void *)&crop_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((crop = [Api38__Environment parseObject:data offset:_offset implicitSignature:crop_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputChatPhoto inputChatUploadedPhotoWithFile:file crop:crop];
} copy];
parsers[@((int32_t)0xb2e1bf08)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_InputPhoto * pid = nil;
int32_t pid_signature = 0; [data getBytes:(void *)&pid_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:pid_signature metaInfo:nil]) == nil)
return nil;
Api38_InputPhotoCrop * crop = nil;
int32_t crop_signature = 0; [data getBytes:(void *)&crop_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((crop = [Api38__Environment parseObject:data offset:_offset implicitSignature:crop_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InputChatPhoto inputChatPhotoWithPid:pid crop:crop];
} copy];
parsers[@((int32_t)0xe317af7e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_Updates updatesTooLong];
} copy];
parsers[@((int32_t)0x78d4dec1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Update * update = nil;
int32_t update_signature = 0; [data getBytes:(void *)&update_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((update = [Api38__Environment parseObject:data offset:_offset implicitSignature:update_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Updates updateShortWithUpdate:update date:date];
} copy];
parsers[@((int32_t)0x725b04c3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * updates = nil;
int32_t updates_signature = 0; [data getBytes:(void *)&updates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((updates = [Api38__Environment parseObject:data offset:_offset implicitSignature:updates_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * seqStart = nil;
if ((seqStart = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * seq = nil;
if ((seq = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Updates updatesCombinedWithUpdates:updates users:users chats:chats date:date seqStart:seqStart seq:seq];
} copy];
parsers[@((int32_t)0x74ae4240)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * updates = nil;
int32_t updates_signature = 0; [data getBytes:(void *)&updates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((updates = [Api38__Environment parseObject:data offset:_offset implicitSignature:updates_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * seq = nil;
if ((seq = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Updates updatesWithUpdates:updates users:users chats:chats date:date seq:seq];
} copy];
parsers[@((int32_t)0x11f1331c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_MessageMedia * media = nil;
if (flags != nil && ([flags intValue] & (1 << 9))) {
int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((media = [Api38__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil)
return nil;
}
NSArray * entities = nil;
if (flags != nil && ([flags intValue] & (1 << 7))) {
int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((entities = [Api38__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
}
return [Api38_Updates updateShortSentMessageWithFlags:flags pid:pid pts:pts ptsCount:ptsCount date:date media:media entities:entities];
} copy];
parsers[@((int32_t)0xf7d91a46)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * message = nil;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Peer * fwdFromId = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
int32_t fwdFromId_signature = 0; [data getBytes:(void *)&fwdFromId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((fwdFromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:fwdFromId_signature metaInfo:nil]) == nil)
return nil;
}
NSNumber * fwdDate = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((fwdDate = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * replyToMsgId = nil;
if (flags != nil && ([flags intValue] & (1 << 3))) {
if ((replyToMsgId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSArray * entities = nil;
if (flags != nil && ([flags intValue] & (1 << 7))) {
int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((entities = [Api38__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
}
return [Api38_Updates updateShortMessageWithFlags:flags pid:pid userId:userId message:message pts:pts ptsCount:ptsCount date:date fwdFromId:fwdFromId fwdDate:fwdDate replyToMsgId:replyToMsgId entities:entities];
} copy];
parsers[@((int32_t)0xcac7fdd2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * fromId = nil;
if ((fromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * message = nil;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * ptsCount = nil;
if ((ptsCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_Peer * fwdFromId = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
int32_t fwdFromId_signature = 0; [data getBytes:(void *)&fwdFromId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((fwdFromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:fwdFromId_signature metaInfo:nil]) == nil)
return nil;
}
NSNumber * fwdDate = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((fwdDate = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * replyToMsgId = nil;
if (flags != nil && ([flags intValue] & (1 << 3))) {
if ((replyToMsgId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSArray * entities = nil;
if (flags != nil && ([flags intValue] & (1 << 7))) {
int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((entities = [Api38__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
}
return [Api38_Updates updateShortChatMessageWithFlags:flags pid:pid fromId:fromId chatId:chatId message:message pts:pts ptsCount:ptsCount date:date fwdFromId:fwdFromId fwdDate:fwdDate replyToMsgId:replyToMsgId entities:entities];
} copy];
parsers[@((int32_t)0x69796de9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * apiId = nil;
if ((apiId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * deviceModel = nil;
if ((deviceModel = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * systemVersion = nil;
if ((systemVersion = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * appVersion = nil;
if ((appVersion = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * langCode = nil;
if ((langCode = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSObject * query = nil;
int32_t query_signature = 0; [data getBytes:(void *)&query_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((query = [Api38__Environment parseObject:data offset:_offset implicitSignature:query_signature metaInfo:nil]) == nil)
return nil;
return [Api38_InitConnection pinitConnectionWithApiId:apiId deviceModel:deviceModel systemVersion:systemVersion appVersion:appVersion langCode:langCode query:query];
} copy];
parsers[@((int32_t)0x3ded6320)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessageMedia messageMediaEmpty];
} copy];
parsers[@((int32_t)0x56e0d474)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_GeoPoint * geo = nil;
int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((geo = [Api38__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaGeoWithGeo:geo];
} copy];
parsers[@((int32_t)0x5e7d2f39)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phoneNumber = nil;
if ((phoneNumber = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * firstName = nil;
if ((firstName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * lastName = nil;
if ((lastName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaContactWithPhoneNumber:phoneNumber firstName:firstName lastName:lastName userId:userId];
} copy];
parsers[@((int32_t)0x2fda2204)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Document * document = nil;
int32_t document_signature = 0; [data getBytes:(void *)&document_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((document = [Api38__Environment parseObject:data offset:_offset implicitSignature:document_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaDocumentWithDocument:document];
} copy];
parsers[@((int32_t)0xc6b68300)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Audio * audio = nil;
int32_t audio_signature = 0; [data getBytes:(void *)&audio_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((audio = [Api38__Environment parseObject:data offset:_offset implicitSignature:audio_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaAudioWithAudio:audio];
} copy];
parsers[@((int32_t)0x9f84f49e)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessageMedia messageMediaUnsupported];
} copy];
parsers[@((int32_t)0xa32dd600)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_WebPage * webpage = nil;
int32_t webpage_signature = 0; [data getBytes:(void *)&webpage_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((webpage = [Api38__Environment parseObject:data offset:_offset implicitSignature:webpage_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaWebPageWithWebpage:webpage];
} copy];
parsers[@((int32_t)0x3d8ce53d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Photo * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaPhotoWithPhoto:photo caption:caption];
} copy];
parsers[@((int32_t)0x5bcf1675)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Video * video = nil;
int32_t video_signature = 0; [data getBytes:(void *)&video_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((video = [Api38__Environment parseObject:data offset:_offset implicitSignature:video_signature metaInfo:nil]) == nil)
return nil;
NSString * caption = nil;
if ((caption = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaVideoWithVideo:video caption:caption];
} copy];
parsers[@((int32_t)0x7912b71f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_GeoPoint * geo = nil;
int32_t geo_signature = 0; [data getBytes:(void *)&geo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((geo = [Api38__Environment parseObject:data offset:_offset implicitSignature:geo_signature metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * address = nil;
if ((address = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * provider = nil;
if ((provider = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * venueId = nil;
if ((venueId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageMedia messageMediaVenueWithGeo:geo title:title address:address provider:provider venueId:venueId];
} copy];
parsers[@((int32_t)0x56730bcc)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_Null null];
} copy];
parsers[@((int32_t)0x6c37c15c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_DocumentAttribute documentAttributeImageSizeWithW:w h:h];
} copy];
parsers[@((int32_t)0x11b58939)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_DocumentAttribute documentAttributeAnimated];
} copy];
parsers[@((int32_t)0x5910cccb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_DocumentAttribute documentAttributeVideoWithDuration:duration w:w h:h];
} copy];
parsers[@((int32_t)0x15590068)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * fileName = nil;
if ((fileName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_DocumentAttribute documentAttributeFilenameWithFileName:fileName];
} copy];
parsers[@((int32_t)0x3a556302)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * alt = nil;
if ((alt = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_InputStickerSet * stickerset = nil;
int32_t stickerset_signature = 0; [data getBytes:(void *)&stickerset_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((stickerset = [Api38__Environment parseObject:data offset:_offset implicitSignature:stickerset_signature metaInfo:nil]) == nil)
return nil;
return [Api38_DocumentAttribute documentAttributeStickerWithAlt:alt stickerset:stickerset];
} copy];
parsers[@((int32_t)0xded218e0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * performer = nil;
if ((performer = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_DocumentAttribute documentAttributeAudioWithDuration:duration title:title performer:performer];
} copy];
parsers[@((int32_t)0x1250abde)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * authorizations = nil;
int32_t authorizations_signature = 0; [data getBytes:(void *)&authorizations_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((authorizations = [Api38__Environment parseObject:data offset:_offset implicitSignature:authorizations_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_account_Authorizations account_authorizationsWithAuthorizations:authorizations];
} copy];
parsers[@((int32_t)0x37c1011c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ChatPhoto chatPhotoEmpty];
} copy];
parsers[@((int32_t)0x6153276a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_FileLocation * photoSmall = nil;
int32_t photoSmall_signature = 0; [data getBytes:(void *)&photoSmall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photoSmall = [Api38__Environment parseObject:data offset:_offset implicitSignature:photoSmall_signature metaInfo:nil]) == nil)
return nil;
Api38_FileLocation * photoBig = nil;
int32_t photoBig_signature = 0; [data getBytes:(void *)&photoBig_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photoBig = [Api38__Environment parseObject:data offset:_offset implicitSignature:photoBig_signature metaInfo:nil]) == nil)
return nil;
return [Api38_ChatPhoto chatPhotoWithPhotoSmall:photoSmall photoBig:photoBig];
} copy];
parsers[@((int32_t)0xffb62b95)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputStickerSet inputStickerSetEmpty];
} copy];
parsers[@((int32_t)0x9de7a269)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputStickerSet inputStickerSetIDWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x861cc8a0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * shortName = nil;
if ((shortName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_InputStickerSet inputStickerSetShortNameWithShortName:shortName];
} copy];
parsers[@((int32_t)0xbb2e37ce)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_BotInfo botInfoEmpty];
} copy];
parsers[@((int32_t)0x9cf585d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * shareText = nil;
if ((shareText = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * pdescription = nil;
if ((pdescription = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * commands = nil;
int32_t commands_signature = 0; [data getBytes:(void *)&commands_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((commands = [Api38__Environment parseObject:data offset:_offset implicitSignature:commands_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_BotInfo botInfoWithUserId:userId version:version shareText:shareText pdescription:pdescription commands:commands];
} copy];
parsers[@((int32_t)0x5649dcc5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * results = nil;
int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((results = [Api38__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Suggested contacts_suggestedWithResults:results users:users];
} copy];
parsers[@((int32_t)0xa56c2a3e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * qts = nil;
if ((qts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * seq = nil;
if ((seq = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadCount = nil;
if ((unreadCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_updates_State updates_stateWithPts:pts qts:qts date:date seq:seq unreadCount:unreadCount];
} copy];
parsers[@((int32_t)0x200250ba)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_User userEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0x22e49072)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if (flags != nil && ([flags intValue] & (1 << 0))) {
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
}
NSString * firstName = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((firstName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * lastName = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((lastName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * username = nil;
if (flags != nil && ([flags intValue] & (1 << 3))) {
if ((username = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
NSString * phone = nil;
if (flags != nil && ([flags intValue] & (1 << 4))) {
if ((phone = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
}
Api38_UserProfilePhoto * photo = nil;
if (flags != nil && ([flags intValue] & (1 << 5))) {
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
}
Api38_UserStatus * status = nil;
if (flags != nil && ([flags intValue] & (1 << 6))) {
int32_t status_signature = 0; [data getBytes:(void *)&status_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((status = [Api38__Environment parseObject:data offset:_offset implicitSignature:status_signature metaInfo:nil]) == nil)
return nil;
}
NSNumber * botInfoVersion = nil;
if (flags != nil && ([flags intValue] & (1 << 14))) {
if ((botInfoVersion = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
return [Api38_User userWithFlags:flags pid:pid accessHash:accessHash firstName:firstName lastName:lastName username:username phone:phone photo:photo status:status botInfoVersion:botInfoVersion];
} copy];
parsers[@((int32_t)0x83e5de54)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Message messageEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0x5ba66c13)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * fromId = nil;
if (flags != nil && ([flags intValue] & (1 << 8))) {
if ((fromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
Api38_Peer * toId = nil;
int32_t toId_signature = 0; [data getBytes:(void *)&toId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((toId = [Api38__Environment parseObject:data offset:_offset implicitSignature:toId_signature metaInfo:nil]) == nil)
return nil;
Api38_Peer * fwdFromId = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
int32_t fwdFromId_signature = 0; [data getBytes:(void *)&fwdFromId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((fwdFromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:fwdFromId_signature metaInfo:nil]) == nil)
return nil;
}
NSNumber * fwdDate = nil;
if (flags != nil && ([flags intValue] & (1 << 2))) {
if ((fwdDate = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * replyToMsgId = nil;
if (flags != nil && ([flags intValue] & (1 << 3))) {
if ((replyToMsgId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * message = nil;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_MessageMedia * media = nil;
if (flags != nil && ([flags intValue] & (1 << 9))) {
int32_t media_signature = 0; [data getBytes:(void *)&media_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((media = [Api38__Environment parseObject:data offset:_offset implicitSignature:media_signature metaInfo:nil]) == nil)
return nil;
}
Api38_ReplyMarkup * replyMarkup = nil;
if (flags != nil && ([flags intValue] & (1 << 6))) {
int32_t replyMarkup_signature = 0; [data getBytes:(void *)&replyMarkup_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((replyMarkup = [Api38__Environment parseObject:data offset:_offset implicitSignature:replyMarkup_signature metaInfo:nil]) == nil)
return nil;
}
NSArray * entities = nil;
if (flags != nil && ([flags intValue] & (1 << 7))) {
int32_t entities_signature = 0; [data getBytes:(void *)&entities_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((entities = [Api38__Environment parseObject:data offset:_offset implicitSignature:entities_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
}
NSNumber * views = nil;
if (flags != nil && ([flags intValue] & (1 << 10))) {
if ((views = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
return [Api38_Message messageWithFlags:flags pid:pid fromId:fromId toId:toId fwdFromId:fwdFromId fwdDate:fwdDate replyToMsgId:replyToMsgId date:date message:message media:media replyMarkup:replyMarkup entities:entities views:views];
} copy];
parsers[@((int32_t)0xc06b9607)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * fromId = nil;
if (flags != nil && ([flags intValue] & (1 << 8))) {
if ((fromId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
Api38_Peer * toId = nil;
int32_t toId_signature = 0; [data getBytes:(void *)&toId_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((toId = [Api38__Environment parseObject:data offset:_offset implicitSignature:toId_signature metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_MessageAction * action = nil;
int32_t action_signature = 0; [data getBytes:(void *)&action_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((action = [Api38__Environment parseObject:data offset:_offset implicitSignature:action_signature metaInfo:nil]) == nil)
return nil;
return [Api38_Message messageServiceWithFlags:flags pid:pid fromId:fromId toId:toId date:date action:action];
} copy];
parsers[@((int32_t)0x14637196)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * volumeId = nil;
if ((volumeId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * localId = nil;
if ((localId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * secret = nil;
if ((secret = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputFileLocation inputFileLocationWithVolumeId:volumeId localId:localId secret:secret];
} copy];
parsers[@((int32_t)0x3d0364ec)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputFileLocation inputVideoFileLocationWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0xf5235d55)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputFileLocation inputEncryptedFileLocationWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x74dc404d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputFileLocation inputAudioFileLocationWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x4e45abe9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputFileLocation inputDocumentFileLocationWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0x1117dd5f)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_GeoPoint geoPointEmpty];
} copy];
parsers[@((int32_t)0x2049d70c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * plong = nil;
if ((plong = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
NSNumber * lat = nil;
if ((lat = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
return [Api38_GeoPoint geoPointWithPlong:plong lat:lat];
} copy];
parsers[@((int32_t)0x6e9e21ca)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * plong = nil;
if ((plong = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
NSNumber * lat = nil;
if ((lat = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x2210c154 metaInfo:nil]) == nil)
return nil;
Api38_GeoPlaceName * name = nil;
int32_t name_signature = 0; [data getBytes:(void *)&name_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((name = [Api38__Environment parseObject:data offset:_offset implicitSignature:name_signature metaInfo:nil]) == nil)
return nil;
return [Api38_GeoPoint geoPlaceWithPlong:plong lat:lat name:name];
} copy];
parsers[@((int32_t)0x1e36fded)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputPhoneCall inputPhoneCallWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0xa384b779)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ReceivedNotifyMessage receivedNotifyMessageWithPid:pid flags:flags];
} copy];
parsers[@((int32_t)0x7841b415)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * adminId = nil;
if ((adminId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * participants = nil;
int32_t participants_signature = 0; [data getBytes:(void *)&participants_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((participants = [Api38__Environment parseObject:data offset:_offset implicitSignature:participants_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChatParticipants chatParticipantsWithChatId:chatId adminId:adminId participants:participants version:version];
} copy];
parsers[@((int32_t)0xfc900c2b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_ChatParticipant * selfParticipant = nil;
if (flags != nil && ([flags intValue] & (1 << 0))) {
int32_t selfParticipant_signature = 0; [data getBytes:(void *)&selfParticipant_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((selfParticipant = [Api38__Environment parseObject:data offset:_offset implicitSignature:selfParticipant_signature metaInfo:nil]) == nil)
return nil;
}
return [Api38_ChatParticipants chatParticipantsForbiddenWithFlags:flags chatId:chatId selfParticipant:selfParticipant];
} copy];
parsers[@((int32_t)0x8e1a1775)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * country = nil;
if ((country = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * thisDc = nil;
if ((thisDc = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * nearestDc = nil;
if ((nearestDc = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_NearestDc nearestDcWithCountry:country thisDc:thisDc nearestDc:nearestDc];
} copy];
parsers[@((int32_t)0x8dca6aa5)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * photos = nil;
int32_t photos_signature = 0; [data getBytes:(void *)&photos_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photos = [Api38__Environment parseObject:data offset:_offset implicitSignature:photos_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_photos_Photos photos_photosWithPhotos:photos users:users];
} copy];
parsers[@((int32_t)0x15051f54)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * photos = nil;
int32_t photos_signature = 0; [data getBytes:(void *)&photos_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photos = [Api38__Environment parseObject:data offset:_offset implicitSignature:photos_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_photos_Photos photos_photosSliceWithCount:count photos:photos users:users];
} copy];
parsers[@((int32_t)0xad524315)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * imported = nil;
int32_t imported_signature = 0; [data getBytes:(void *)&imported_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((imported = [Api38__Environment parseObject:data offset:_offset implicitSignature:imported_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * retryContacts = nil;
int32_t retryContacts_signature = 0; [data getBytes:(void *)&retryContacts_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((retryContacts = [Api38__Environment parseObject:data offset:_offset implicitSignature:retryContacts_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_ImportedContacts contacts_importedContactsWithImported:imported retryContacts:retryContacts users:users];
} copy];
parsers[@((int32_t)0xbc799737)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_Bool boolFalse];
} copy];
parsers[@((int32_t)0x997275b5)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_Bool boolTrue];
} copy];
parsers[@((int32_t)0x17c6b5f6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phoneNumber = nil;
if ((phoneNumber = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_User * user = nil;
int32_t user_signature = 0; [data getBytes:(void *)&user_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((user = [Api38__Environment parseObject:data offset:_offset implicitSignature:user_signature metaInfo:nil]) == nil)
return nil;
return [Api38_help_Support help_supportWithPhoneNumber:phoneNumber user:user];
} copy];
parsers[@((int32_t)0x3631cf4c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * chatId = nil;
if ((chatId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * distance = nil;
if ((distance = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ChatLocated chatLocatedWithChatId:chatId distance:distance];
} copy];
parsers[@((int32_t)0x57e2f66c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterEmpty];
} copy];
parsers[@((int32_t)0x9609a51c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterPhotos];
} copy];
parsers[@((int32_t)0x9fc00e65)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterVideo];
} copy];
parsers[@((int32_t)0x56e9f0e4)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterPhotoVideo];
} copy];
parsers[@((int32_t)0x9eddf188)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterDocument];
} copy];
parsers[@((int32_t)0xcfc87522)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterAudio];
} copy];
parsers[@((int32_t)0xd95e73bb)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessagesFilter inputMessagesFilterPhotoVideoDocuments];
} copy];
parsers[@((int32_t)0x15ba6c40)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * dialogs = nil;
int32_t dialogs_signature = 0; [data getBytes:(void *)&dialogs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((dialogs = [Api38__Environment parseObject:data offset:_offset implicitSignature:dialogs_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Dialogs messages_dialogsWithDialogs:dialogs messages:messages chats:chats users:users];
} copy];
parsers[@((int32_t)0x71e094f3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * count = nil;
if ((count = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * dialogs = nil;
int32_t dialogs_signature = 0; [data getBytes:(void *)&dialogs_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((dialogs = [Api38__Environment parseObject:data offset:_offset implicitSignature:dialogs_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Dialogs messages_dialogsSliceWithCount:count dialogs:dialogs messages:messages chats:chats users:users];
} copy];
parsers[@((int32_t)0x18cb9f78)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * message = nil;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_help_InviteText help_inviteTextWithMessage:message];
} copy];
parsers[@((int32_t)0x3de191a1)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * mutualContacts = nil;
if ((mutualContacts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_ContactSuggested contactSuggestedWithUserId:userId mutualContacts:mutualContacts];
} copy];
parsers[@((int32_t)0x46a2ce98)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * muteUntil = nil;
if ((muteUntil = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * sound = nil;
if ((sound = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_Bool * showPreviews = nil;
int32_t showPreviews_signature = 0; [data getBytes:(void *)&showPreviews_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((showPreviews = [Api38__Environment parseObject:data offset:_offset implicitSignature:showPreviews_signature metaInfo:nil]) == nil)
return nil;
NSNumber * eventsMask = nil;
if ((eventsMask = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_InputPeerNotifySettings inputPeerNotifySettingsWithMuteUntil:muteUntil sound:sound showPreviews:showPreviews eventsMask:eventsMask];
} copy];
parsers[@((int32_t)0x69df3769)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ExportedChatInvite chatInviteEmpty];
} copy];
parsers[@((int32_t)0xfc2e05bc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * link = nil;
if ((link = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_ExportedChatInvite chatInviteExportedWithLink:link];
} copy];
parsers[@((int32_t)0x3203df8c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * ipAddress = nil;
if ((ipAddress = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * pings = nil;
int32_t pings_signature = 0; [data getBytes:(void *)&pings_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pings = [Api38__Environment parseObject:data offset:_offset implicitSignature:pings_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return [Api38_DcNetworkStats dcPingStatsWithDcId:dcId ipAddress:ipAddress pings:pings];
} copy];
parsers[@((int32_t)0x7bf2e6f6)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * phash = nil;
if ((phash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * deviceModel = nil;
if ((deviceModel = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * platform = nil;
if ((platform = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * systemVersion = nil;
if ((systemVersion = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * apiId = nil;
if ((apiId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * appName = nil;
if ((appName = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * appVersion = nil;
if ((appVersion = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * dateCreated = nil;
if ((dateCreated = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * dateActive = nil;
if ((dateActive = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * ip = nil;
if ((ip = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * country = nil;
if ((country = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * region = nil;
if ((region = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_Authorization authorizationWithPhash:phash flags:flags deviceModel:deviceModel platform:platform systemVersion:systemVersion apiId:apiId appName:appName appVersion:appVersion dateCreated:dateCreated dateActive:dateActive ip:ip country:country region:region];
} copy];
parsers[@((int32_t)0xe86602c3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_messages_AllStickers messages_allStickersNotModified];
} copy];
parsers[@((int32_t)0xd51dafdb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phash = nil;
if ((phash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * sets = nil;
int32_t sets_signature = 0; [data getBytes:(void *)&sets_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((sets = [Api38__Environment parseObject:data offset:_offset implicitSignature:sets_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_AllStickers messages_allStickersWithPhash:phash sets:sets];
} copy];
parsers[@((int32_t)0x26bc3c3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PhoneConnection phoneConnectionNotReady];
} copy];
parsers[@((int32_t)0x3a84026a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * server = nil;
if ((server = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * port = nil;
if ((port = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * streamId = nil;
if ((streamId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_PhoneConnection phoneConnectionWithServer:server port:port streamId:streamId];
} copy];
parsers[@((int32_t)0xb8d0afdf)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * days = nil;
if ((days = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_AccountDaysTTL accountDaysTTLWithDays:days];
} copy];
parsers[@((int32_t)0x4e6ef65e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * schemeRaw = nil;
if ((schemeRaw = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * types = nil;
int32_t types_signature = 0; [data getBytes:(void *)&types_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((types = [Api38__Environment parseObject:data offset:_offset implicitSignature:types_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * methods = nil;
int32_t methods_signature = 0; [data getBytes:(void *)&methods_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((methods = [Api38__Environment parseObject:data offset:_offset implicitSignature:methods_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSNumber * version = nil;
if ((version = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Scheme schemeWithSchemeRaw:schemeRaw types:types methods:methods version:version];
} copy];
parsers[@((int32_t)0x263c9c58)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_Scheme schemeNotModified];
} copy];
parsers[@((int32_t)0x96dabc18)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSData * pnewSalt = nil;
if ((pnewSalt = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
NSString * emailUnconfirmedPattern = nil;
if ((emailUnconfirmedPattern = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_account_Password account_noPasswordWithPnewSalt:pnewSalt emailUnconfirmedPattern:emailUnconfirmedPattern];
} copy];
parsers[@((int32_t)0x7c18141c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSData * currentSalt = nil;
if ((currentSalt = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
NSData * pnewSalt = nil;
if ((pnewSalt = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
NSString * hint = nil;
if ((hint = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_Bool * hasRecovery = nil;
int32_t hasRecovery_signature = 0; [data getBytes:(void *)&hasRecovery_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hasRecovery = [Api38__Environment parseObject:data offset:_offset implicitSignature:hasRecovery_signature metaInfo:nil]) == nil)
return nil;
NSString * emailUnconfirmedPattern = nil;
if ((emailUnconfirmedPattern = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_account_Password account_passwordWithCurrentSalt:currentSalt pnewSalt:pnewSalt hint:hint hasRecovery:hasRecovery emailUnconfirmedPattern:emailUnconfirmedPattern];
} copy];
parsers[@((int32_t)0x554abb6f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * rules = nil;
int32_t rules_signature = 0; [data getBytes:(void *)&rules_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((rules = [Api38__Environment parseObject:data offset:_offset implicitSignature:rules_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_account_PrivacyRules account_privacyRulesWithRules:rules users:users];
} copy];
parsers[@((int32_t)0x3f4e0648)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_messages_Message messages_messageEmpty];
} copy];
parsers[@((int32_t)0xff90c417)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Message * message = nil;
int32_t message_signature = 0; [data getBytes:(void *)&message_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((message = [Api38__Environment parseObject:data offset:_offset implicitSignature:message_signature metaInfo:nil]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_messages_Message messages_messageWithMessage:message chats:chats users:users];
} copy];
parsers[@((int32_t)0xfffe1bac)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PrivacyRule privacyValueAllowContacts];
} copy];
parsers[@((int32_t)0x65427b82)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PrivacyRule privacyValueAllowAll];
} copy];
parsers[@((int32_t)0x4d5bbe0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return [Api38_PrivacyRule privacyValueAllowUsersWithUsers:users];
} copy];
parsers[@((int32_t)0xf888fa1a)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PrivacyRule privacyValueDisallowContacts];
} copy];
parsers[@((int32_t)0x8b73e763)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PrivacyRule privacyValueDisallowAll];
} copy];
parsers[@((int32_t)0xc7f49b7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return [Api38_PrivacyRule privacyValueDisallowUsersWithUsers:users];
} copy];
parsers[@((int32_t)0xa4f58c4c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * phoneCodeHash = nil;
if ((phoneCodeHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * sendCallTimeout = nil;
if ((sendCallTimeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_account_SentChangePhoneCode account_sentChangePhoneCodeWithPhoneCodeHash:phoneCodeHash sendCallTimeout:sendCallTimeout];
} copy];
parsers[@((int32_t)0xb6aef7b0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessageAction messageActionEmpty];
} copy];
parsers[@((int32_t)0xa6638b9a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return [Api38_MessageAction messageActionChatCreateWithTitle:title users:users];
} copy];
parsers[@((int32_t)0xb5a1ce5a)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChatEditTitleWithTitle:title];
} copy];
parsers[@((int32_t)0x7fcb13a8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Photo * photo = nil;
int32_t photo_signature = 0; [data getBytes:(void *)&photo_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photo = [Api38__Environment parseObject:data offset:_offset implicitSignature:photo_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChatEditPhotoWithPhoto:photo];
} copy];
parsers[@((int32_t)0x95e3fbef)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessageAction messageActionChatDeletePhoto];
} copy];
parsers[@((int32_t)0x5e3cfc4b)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChatAddUserWithUserId:userId];
} copy];
parsers[@((int32_t)0xb2ae9b0c)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChatDeleteUserWithUserId:userId];
} copy];
parsers[@((int32_t)0xfc479b0f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
Api38_Bool * hasPhone = nil;
int32_t hasPhone_signature = 0; [data getBytes:(void *)&hasPhone_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((hasPhone = [Api38__Environment parseObject:data offset:_offset implicitSignature:hasPhone_signature metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionSentRequestWithHasPhone:hasPhone];
} copy];
parsers[@((int32_t)0x7f07d76c)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_MessageAction messageActionAcceptRequest];
} copy];
parsers[@((int32_t)0xf89cf5e8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * inviterId = nil;
if ((inviterId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChatJoinedByLinkWithInviterId:inviterId];
} copy];
parsers[@((int32_t)0x95d2ac92)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * title = nil;
if ((title = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageAction messageActionChannelCreateWithTitle:title];
} copy];
parsers[@((int32_t)0x5366c915)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_PhoneCall phoneCallEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0xec7bbe3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * calleeId = nil;
if ((calleeId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_PhoneCall phoneCallWithPid:pid accessHash:accessHash date:date userId:userId calleeId:calleeId];
} copy];
parsers[@((int32_t)0xadd53cb3)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PeerNotifyEvents peerNotifyEventsEmpty];
} copy];
parsers[@((int32_t)0x6d1ded88)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PeerNotifyEvents peerNotifyEventsAll];
} copy];
parsers[@((int32_t)0x5f4f9247)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ContactLink contactLinkUnknown];
} copy];
parsers[@((int32_t)0xfeedd3ad)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ContactLink contactLinkNone];
} copy];
parsers[@((int32_t)0x268f3f59)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ContactLink contactLinkHasPhone];
} copy];
parsers[@((int32_t)0xd502c2d0)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_ContactLink contactLinkContact];
} copy];
parsers[@((int32_t)0x424f8614)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSData * bytes = nil;
if ((bytes = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_help_AppPrefs help_appPrefsWithBytes:bytes];
} copy];
parsers[@((int32_t)0x1aa1f784)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSArray * results = nil;
int32_t results_signature = 0; [data getBytes:(void *)&results_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((results = [Api38__Environment parseObject:data offset:_offset implicitSignature:results_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_contacts_Found contacts_foundWithResults:results chats:chats users:users];
} copy];
parsers[@((int32_t)0x70a68512)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_PeerNotifySettings peerNotifySettingsEmpty];
} copy];
parsers[@((int32_t)0x8d5e11ee)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * muteUntil = nil;
if ((muteUntil = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * sound = nil;
if ((sound = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
Api38_Bool * showPreviews = nil;
int32_t showPreviews_signature = 0; [data getBytes:(void *)&showPreviews_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((showPreviews = [Api38__Environment parseObject:data offset:_offset implicitSignature:showPreviews_signature metaInfo:nil]) == nil)
return nil;
NSNumber * eventsMask = nil;
if ((eventsMask = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_PeerNotifySettings peerNotifySettingsWithMuteUntil:muteUntil sound:sound showPreviews:showPreviews eventsMask:eventsMask];
} copy];
parsers[@((int32_t)0x21b59bef)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * name = nil;
if ((name = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSString * type = nil;
if ((type = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_SchemeParam schemeParamWithName:name type:type];
} copy];
parsers[@((int32_t)0x12b299d4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSString * emoticon = nil;
if ((emoticon = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSArray * documents = nil;
int32_t documents_signature = 0; [data getBytes:(void *)&documents_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((documents = [Api38__Environment parseObject:data offset:_offset implicitSignature:documents_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil)
return nil;
return [Api38_StickerPack stickerPackWithEmoticon:emoticon documents:documents];
} copy];
parsers[@((int32_t)0x4f11bae1)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_UserProfilePhoto userProfilePhotoEmpty];
} copy];
parsers[@((int32_t)0xd559d8c8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * photoId = nil;
if ((photoId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
Api38_FileLocation * photoSmall = nil;
int32_t photoSmall_signature = 0; [data getBytes:(void *)&photoSmall_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photoSmall = [Api38__Environment parseObject:data offset:_offset implicitSignature:photoSmall_signature metaInfo:nil]) == nil)
return nil;
Api38_FileLocation * photoBig = nil;
int32_t photoBig_signature = 0; [data getBytes:(void *)&photoBig_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((photoBig = [Api38__Environment parseObject:data offset:_offset implicitSignature:photoBig_signature metaInfo:nil]) == nil)
return nil;
return [Api38_UserProfilePhoto userProfilePhotoWithPhotoId:photoId photoSmall:photoSmall photoBig:photoBig];
} copy];
parsers[@((int32_t)0x3e11affb)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * timeout = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((timeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
return [Api38_updates_ChannelDifference updates_channelDifferenceEmptyWithFlags:flags pts:pts timeout:timeout];
} copy];
parsers[@((int32_t)0x5e167646)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * timeout = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((timeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSNumber * topMessage = nil;
if ((topMessage = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * topImportantMessage = nil;
if ((topImportantMessage = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * readInboxMaxId = nil;
if ((readInboxMaxId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadCount = nil;
if ((unreadCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * unreadImportantCount = nil;
if ((unreadImportantCount = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * messages = nil;
int32_t messages_signature = 0; [data getBytes:(void *)&messages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((messages = [Api38__Environment parseObject:data offset:_offset implicitSignature:messages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_updates_ChannelDifference updates_channelDifferenceTooLongWithFlags:flags pts:pts timeout:timeout topMessage:topMessage topImportantMessage:topImportantMessage readInboxMaxId:readInboxMaxId unreadCount:unreadCount unreadImportantCount:unreadImportantCount messages:messages chats:chats users:users];
} copy];
parsers[@((int32_t)0x2064674e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * flags = nil;
if ((flags = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * pts = nil;
if ((pts = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * timeout = nil;
if (flags != nil && ([flags intValue] & (1 << 1))) {
if ((timeout = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
}
NSArray * pnewMessages = nil;
int32_t pnewMessages_signature = 0; [data getBytes:(void *)&pnewMessages_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((pnewMessages = [Api38__Environment parseObject:data offset:_offset implicitSignature:pnewMessages_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * otherUpdates = nil;
int32_t otherUpdates_signature = 0; [data getBytes:(void *)&otherUpdates_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((otherUpdates = [Api38__Environment parseObject:data offset:_offset implicitSignature:otherUpdates_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * chats = nil;
int32_t chats_signature = 0; [data getBytes:(void *)&chats_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((chats = [Api38__Environment parseObject:data offset:_offset implicitSignature:chats_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
NSArray * users = nil;
int32_t users_signature = 0; [data getBytes:(void *)&users_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((users = [Api38__Environment parseObject:data offset:_offset implicitSignature:users_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_updates_ChannelDifference updates_channelDifferenceWithFlags:flags pts:pts timeout:timeout pnewMessages:pnewMessages otherUpdates:otherUpdates chats:chats users:users];
} copy];
parsers[@((int32_t)0xbb92ba95)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityUnknownWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0xfa04579d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityMentionWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x6f635b0d)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityHashtagWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x6cef8ac7)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityBotCommandWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x6ed02538)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityUrlWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x64e475c2)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityEmailWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0xbd610bc9)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityBoldWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x826f8b60)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityItalicWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x28a20571)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityCodeWithOffset:offset length:length];
} copy];
parsers[@((int32_t)0x73924be0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * language = nil;
if ((language = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityPreWithOffset:offset length:length language:language];
} copy];
parsers[@((int32_t)0x76a6d327)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * offset = nil;
if ((offset = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * length = nil;
if ((length = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * url = nil;
if ((url = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
return [Api38_MessageEntity messageEntityTextUrlWithOffset:offset length:length url:url];
} copy];
parsers[@((int32_t)0x1cd7bf0d)] = [^id (__unused NSData *data, __unused NSUInteger* _offset, __unused id metaInfo)
{
return [Api38_InputPhoto inputPhotoEmpty];
} copy];
parsers[@((int32_t)0xfb95c6c4)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_InputPhoto inputPhotoWithPid:pid accessHash:accessHash];
} copy];
parsers[@((int32_t)0xc10658a8)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Video videoEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0xf72887d3)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * duration = nil;
if ((duration = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * size = nil;
if ((size = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_PhotoSize * thumb = nil;
int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((thumb = [Api38__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil)
return nil;
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * w = nil;
if ((w = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * h = nil;
if ((h = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_Video videoWithPid:pid accessHash:accessHash date:date duration:duration mimeType:mimeType size:size thumb:thumb dcId:dcId w:w h:h];
} copy];
parsers[@((int32_t)0xab7ec0a0)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedChat encryptedChatEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0x3bf703dc)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * adminId = nil;
if ((adminId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * participantId = nil;
if ((participantId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedChat encryptedChatWaitingWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId];
} copy];
parsers[@((int32_t)0x13d6dd27)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedChat encryptedChatDiscardedWithPid:pid];
} copy];
parsers[@((int32_t)0xc878527e)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * adminId = nil;
if ((adminId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * participantId = nil;
if ((participantId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * gA = nil;
if ((gA = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
return [Api38_EncryptedChat encryptedChatRequestedWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId gA:gA];
} copy];
parsers[@((int32_t)0xfa56ce36)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * adminId = nil;
if ((adminId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * participantId = nil;
if ((participantId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSData * gAOrB = nil;
if ((gAOrB = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:[Api38__PreferNSDataTypeMetaInfo preferNSDataTypeMetaInfo]]) == nil)
return nil;
NSNumber * keyFingerprint = nil;
if ((keyFingerprint = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_EncryptedChat encryptedChatWithPid:pid accessHash:accessHash date:date adminId:adminId participantId:participantId gAOrB:gAOrB keyFingerprint:keyFingerprint];
} copy];
parsers[@((int32_t)0x36f8c871)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_Document documentEmptyWithPid:pid];
} copy];
parsers[@((int32_t)0xf9a39f4f)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * pid = nil;
if ((pid = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * accessHash = nil;
if ((accessHash = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
NSNumber * date = nil;
if ((date = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSString * mimeType = nil;
if ((mimeType = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xb5286e24 metaInfo:nil]) == nil)
return nil;
NSNumber * size = nil;
if ((size = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
Api38_PhotoSize * thumb = nil;
int32_t thumb_signature = 0; [data getBytes:(void *)&thumb_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((thumb = [Api38__Environment parseObject:data offset:_offset implicitSignature:thumb_signature metaInfo:nil]) == nil)
return nil;
NSNumber * dcId = nil;
if ((dcId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSArray * attributes = nil;
int32_t attributes_signature = 0; [data getBytes:(void *)&attributes_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((attributes = [Api38__Environment parseObject:data offset:_offset implicitSignature:attributes_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return [Api38_Document documentWithPid:pid accessHash:accessHash date:date mimeType:mimeType size:size thumb:thumb dcId:dcId attributes:attributes];
} copy];
parsers[@((int32_t)0xd0028438)] = [^id (NSData *data, NSUInteger* _offset, __unused id metaInfo)
{
NSNumber * userId = nil;
if ((userId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0xa8509bda metaInfo:nil]) == nil)
return nil;
NSNumber * clientId = nil;
if ((clientId = [Api38__Environment parseObject:data offset:_offset implicitSignature:(int32_t)0x22076cba metaInfo:nil]) == nil)
return nil;
return [Api38_ImportedContact importedContactWithUserId:userId clientId:clientId];
} copy];
});
return parsers[@(constructorSignature)];
}
+ (NSData *)serializeObject:(id)object
{
NSMutableData *data = [[NSMutableData alloc] init];
if ([self serializeObject:object data:data addSignature:true])
return data;
return nil;
}
+ (bool)serializeObject:(id)object data:(NSMutableData *)data addSignature:(bool)addSignature
{
Api38__Serializer *serializer = objc_getAssociatedObject(object, Api38__Serializer_Key);
if (serializer == nil)
return false;
if (addSignature)
{
int32_t value = serializer.constructorSignature;
[data appendBytes:(void *)&value length:4];
}
return serializer.serializeBlock(object, data);
}
+ (id)parseObject:(NSData *)data
{
if (data.length < 4)
return nil;
int32_t constructorSignature = 0;
[data getBytes:(void *)&constructorSignature length:4];
NSUInteger offset = 4;
return [self parseObject:data offset:&offset implicitSignature:constructorSignature metaInfo:nil];
}
+ (id)parseObject:(NSData *)data offset:(NSUInteger *)offset implicitSignature:(int32_t)implicitSignature metaInfo:(id)metaInfo
{
id (^parser)(NSData *data, NSUInteger *offset, id metaInfo) = [self parserByConstructorSignature:implicitSignature];
if (parser)
return parser(data, offset, metaInfo);
return nil;
}
@end
@interface Api38_BuiltinSerializer_Int : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Int
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0xA8509BDA serializeBlock:^bool (NSNumber *object, NSMutableData *data)
{
int32_t value = (int32_t)[object intValue];
[data appendBytes:(void *)&value length:4];
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_Long : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Long
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0x22076CBA serializeBlock:^bool (NSNumber *object, NSMutableData *data)
{
int64_t value = (int64_t)[object longLongValue];
[data appendBytes:(void *)&value length:8];
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_Double : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Double
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0x2210C154 serializeBlock:^bool (NSNumber *object, NSMutableData *data)
{
double value = (double)[object doubleValue];
[data appendBytes:(void *)&value length:8];
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_String : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_String
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0xB5286E24 serializeBlock:^bool (NSString *object, NSMutableData *data)
{
NSData *value = [object dataUsingEncoding:NSUTF8StringEncoding];
int32_t length = value.length;
int32_t padding = 0;
if (length >= 254)
{
uint8_t tmp = 254;
[data appendBytes:&tmp length:1];
[data appendBytes:(void *)&length length:3];
padding = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length;
}
else
{
[data appendBytes:(void *)&length length:1];
padding = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1);
}
[data appendData:value];
for (int i = 0; i < padding; i++)
{
uint8_t tmp = 0;
[data appendBytes:(void *)&tmp length:1];
}
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_Bytes : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Bytes
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0xB5286E24 serializeBlock:^bool (NSData *object, NSMutableData *data)
{
NSData *value = object;
int32_t length = value.length;
int32_t padding = 0;
if (length >= 254)
{
uint8_t tmp = 254;
[data appendBytes:&tmp length:1];
[data appendBytes:(void *)&length length:3];
padding = (((length % 4) == 0 ? length : (length + 4 - (length % 4)))) - length;
}
else
{
[data appendBytes:(void *)&length length:1];
padding = ((((length + 1) % 4) == 0 ? (length + 1) : ((length + 1) + 4 - ((length + 1) % 4)))) - (length + 1);
}
[data appendData:value];
for (int i = 0; i < padding; i++)
{
uint8_t tmp = 0;
[data appendBytes:(void *)&tmp length:1];
}
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_Int128 : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Int128
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0x4BB5362B serializeBlock:^bool (NSData *object, NSMutableData *data)
{
if (object.length != 16)
return false;
[data appendData:object];
return true;
}];
}
@end
@interface Api38_BuiltinSerializer_Int256 : Api38__Serializer
@end
@implementation Api38_BuiltinSerializer_Int256
- (instancetype)init
{
return [super initWithConstructorSignature:(int32_t)0x0929C32F serializeBlock:^bool (NSData *object, NSMutableData *data)
{
if (object.length != 32)
return false;
[data appendData:object];
return true;
}];
}
@end
@implementation Api38_FunctionContext
- (instancetype)initWithPayload:(NSData *)payload responseParser:(id (^)(NSData *))responseParser metadata:(id)metadata
{
self = [super init];
if (self != nil)
{
_payload = payload;
_responseParser = [responseParser copy];
_metadata = metadata;
}
return self;
}
@end
@interface Api38_messages_StickerSet ()
@property (nonatomic, strong) Api38_StickerSet * set;
@property (nonatomic, strong) NSArray * packs;
@property (nonatomic, strong) NSArray * documents;
@end
@interface Api38_messages_StickerSet_messages_stickerSet ()
@end
@implementation Api38_messages_StickerSet
+ (Api38_messages_StickerSet_messages_stickerSet *)messages_stickerSetWithSet:(Api38_StickerSet *)set packs:(NSArray *)packs documents:(NSArray *)documents
{
Api38_messages_StickerSet_messages_stickerSet *_object = [[Api38_messages_StickerSet_messages_stickerSet alloc] init];
_object.set = set;
_object.packs =
({
NSMutableArray *packs_copy = [[NSMutableArray alloc] initWithCapacity:packs.count];
for (id packs_item in packs)
{
[packs_copy addObject:packs_item];
}
id packs_result = [Api38__Serializer addSerializerToObject:packs_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; packs_result;});
_object.documents =
({
NSMutableArray *documents_copy = [[NSMutableArray alloc] initWithCapacity:documents.count];
for (id documents_item in documents)
{
[documents_copy addObject:documents_item];
}
id documents_result = [Api38__Serializer addSerializerToObject:documents_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; documents_result;});
return _object;
}
@end
@implementation Api38_messages_StickerSet_messages_stickerSet
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb60a24a6 serializeBlock:^bool (Api38_messages_StickerSet_messages_stickerSet *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.set data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.packs data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.documents data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.stickerSet set:%@ packs:%@ documents:%@)", self.set, self.packs, self.documents];
}
@end
@interface Api38_InputGeoPlaceName ()
@property (nonatomic, strong) NSString * country;
@property (nonatomic, strong) NSString * state;
@property (nonatomic, strong) NSString * city;
@property (nonatomic, strong) NSString * district;
@property (nonatomic, strong) NSString * street;
@end
@interface Api38_InputGeoPlaceName_inputGeoPlaceName ()
@end
@implementation Api38_InputGeoPlaceName
+ (Api38_InputGeoPlaceName_inputGeoPlaceName *)inputGeoPlaceNameWithCountry:(NSString *)country state:(NSString *)state city:(NSString *)city district:(NSString *)district street:(NSString *)street
{
Api38_InputGeoPlaceName_inputGeoPlaceName *_object = [[Api38_InputGeoPlaceName_inputGeoPlaceName alloc] init];
_object.country = [Api38__Serializer addSerializerToObject:[country copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.state = [Api38__Serializer addSerializerToObject:[state copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.city = [Api38__Serializer addSerializerToObject:[city copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.district = [Api38__Serializer addSerializerToObject:[district copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.street = [Api38__Serializer addSerializerToObject:[street copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_InputGeoPlaceName_inputGeoPlaceName
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x68afa7d4 serializeBlock:^bool (Api38_InputGeoPlaceName_inputGeoPlaceName *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.country data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.state data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.city data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.district data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.street data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputGeoPlaceName country:%d state:%d city:%d district:%d street:%d)", (int)[self.country length], (int)[self.state length], (int)[self.city length], (int)[self.district length], (int)[self.street length]];
}
@end
@interface Api38_InputGeoPoint ()
@end
@interface Api38_InputGeoPoint_inputGeoPointEmpty ()
@end
@interface Api38_InputGeoPoint_inputGeoPoint ()
@property (nonatomic, strong) NSNumber * lat;
@property (nonatomic, strong) NSNumber * plong;
@end
@implementation Api38_InputGeoPoint
+ (Api38_InputGeoPoint_inputGeoPointEmpty *)inputGeoPointEmpty
{
Api38_InputGeoPoint_inputGeoPointEmpty *_object = [[Api38_InputGeoPoint_inputGeoPointEmpty alloc] init];
return _object;
}
+ (Api38_InputGeoPoint_inputGeoPoint *)inputGeoPointWithLat:(NSNumber *)lat plong:(NSNumber *)plong
{
Api38_InputGeoPoint_inputGeoPoint *_object = [[Api38_InputGeoPoint_inputGeoPoint alloc] init];
_object.lat = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:lat] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.plong = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:plong] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
return _object;
}
@end
@implementation Api38_InputGeoPoint_inputGeoPointEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe4c123d6 serializeBlock:^bool (__unused Api38_InputGeoPoint_inputGeoPointEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputGeoPointEmpty)"];
}
@end
@implementation Api38_InputGeoPoint_inputGeoPoint
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf3b7acc9 serializeBlock:^bool (Api38_InputGeoPoint_inputGeoPoint *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.lat data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.plong data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputGeoPoint lat:%@ long:%@)", self.lat, self.plong];
}
@end
@interface Api38_messages_Chat ()
@property (nonatomic, strong) Api38_Chat * chat;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_messages_Chat_messages_chat ()
@end
@implementation Api38_messages_Chat
+ (Api38_messages_Chat_messages_chat *)messages_chatWithChat:(Api38_Chat *)chat users:(NSArray *)users
{
Api38_messages_Chat_messages_chat *_object = [[Api38_messages_Chat_messages_chat alloc] init];
_object.chat = chat;
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_messages_Chat_messages_chat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x40e9002a serializeBlock:^bool (Api38_messages_Chat_messages_chat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chat data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.chat chat:%@ users:%@)", self.chat, self.users];
}
@end
@interface Api38_ChatFull ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) Api38_Photo * chatPhoto;
@property (nonatomic, strong) Api38_PeerNotifySettings * notifySettings;
@property (nonatomic, strong) Api38_ExportedChatInvite * exportedInvite;
@end
@interface Api38_ChatFull_chatFull ()
@property (nonatomic, strong) Api38_ChatParticipants * participants;
@property (nonatomic, strong) NSArray * botInfo;
@end
@interface Api38_ChatFull_channelFull ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSString * about;
@property (nonatomic, strong) NSNumber * participantsCount;
@property (nonatomic, strong) NSNumber * adminsCount;
@property (nonatomic, strong) NSNumber * kickedCount;
@property (nonatomic, strong) NSNumber * readInboxMaxId;
@property (nonatomic, strong) NSNumber * unreadCount;
@property (nonatomic, strong) NSNumber * unreadImportantCount;
@end
@implementation Api38_ChatFull
+ (Api38_ChatFull_chatFull *)chatFullWithPid:(NSNumber *)pid participants:(Api38_ChatParticipants *)participants chatPhoto:(Api38_Photo *)chatPhoto notifySettings:(Api38_PeerNotifySettings *)notifySettings exportedInvite:(Api38_ExportedChatInvite *)exportedInvite botInfo:(NSArray *)botInfo
{
Api38_ChatFull_chatFull *_object = [[Api38_ChatFull_chatFull alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participants = participants;
_object.chatPhoto = chatPhoto;
_object.notifySettings = notifySettings;
_object.exportedInvite = exportedInvite;
_object.botInfo =
({
NSMutableArray *botInfo_copy = [[NSMutableArray alloc] initWithCapacity:botInfo.count];
for (id botInfo_item in botInfo)
{
[botInfo_copy addObject:botInfo_item];
}
id botInfo_result = [Api38__Serializer addSerializerToObject:botInfo_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; botInfo_result;});
return _object;
}
+ (Api38_ChatFull_channelFull *)channelFullWithFlags:(NSNumber *)flags pid:(NSNumber *)pid about:(NSString *)about participantsCount:(NSNumber *)participantsCount adminsCount:(NSNumber *)adminsCount kickedCount:(NSNumber *)kickedCount readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount chatPhoto:(Api38_Photo *)chatPhoto notifySettings:(Api38_PeerNotifySettings *)notifySettings exportedInvite:(Api38_ExportedChatInvite *)exportedInvite
{
Api38_ChatFull_channelFull *_object = [[Api38_ChatFull_channelFull alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.about = [Api38__Serializer addSerializerToObject:[about copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.participantsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:participantsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.adminsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:adminsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.kickedCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:kickedCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.readInboxMaxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadImportantCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.chatPhoto = chatPhoto;
_object.notifySettings = notifySettings;
_object.exportedInvite = exportedInvite;
return _object;
}
@end
@implementation Api38_ChatFull_chatFull
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2e02a614 serializeBlock:^bool (Api38_ChatFull_chatFull *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participants data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chatPhoto data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.exportedInvite data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.botInfo data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatFull id:%@ participants:%@ chat_photo:%@ notify_settings:%@ exported_invite:%@ bot_info:%@)", self.pid, self.participants, self.chatPhoto, self.notifySettings, self.exportedInvite, self.botInfo];
}
@end
@implementation Api38_ChatFull_channelFull
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfab31aa3 serializeBlock:^bool (Api38_ChatFull_channelFull *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.about data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:object.participantsCount data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.adminsCount data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.kickedCount data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.readInboxMaxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadImportantCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatPhoto data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.exportedInvite data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelFull flags:%@ id:%@ about:%d participants_count:%@ admins_count:%@ kicked_count:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ chat_photo:%@ notify_settings:%@ exported_invite:%@)", self.flags, self.pid, (int)[self.about length], self.participantsCount, self.adminsCount, self.kickedCount, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.chatPhoto, self.notifySettings, self.exportedInvite];
}
@end
@interface Api38_ChatParticipant ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * inviterId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChatParticipant_chatParticipant ()
@end
@implementation Api38_ChatParticipant
+ (Api38_ChatParticipant_chatParticipant *)chatParticipantWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date
{
Api38_ChatParticipant_chatParticipant *_object = [[Api38_ChatParticipant_chatParticipant alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ChatParticipant_chatParticipant
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc8d7493e serializeBlock:^bool (Api38_ChatParticipant_chatParticipant *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatParticipant user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date];
}
@end
@interface Api38_updates_Difference ()
@end
@interface Api38_updates_Difference_updates_differenceEmpty ()
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * seq;
@end
@interface Api38_updates_Difference_updates_difference ()
@property (nonatomic, strong) NSArray * pnewMessages;
@property (nonatomic, strong) NSArray * pnewEncryptedMessages;
@property (nonatomic, strong) NSArray * otherUpdates;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@property (nonatomic, strong) Api38_updates_State * state;
@end
@interface Api38_updates_Difference_updates_differenceSlice ()
@property (nonatomic, strong) NSArray * pnewMessages;
@property (nonatomic, strong) NSArray * pnewEncryptedMessages;
@property (nonatomic, strong) NSArray * otherUpdates;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@property (nonatomic, strong) Api38_updates_State * intermediateState;
@end
@implementation Api38_updates_Difference
+ (Api38_updates_Difference_updates_differenceEmpty *)updates_differenceEmptyWithDate:(NSNumber *)date seq:(NSNumber *)seq
{
Api38_updates_Difference_updates_differenceEmpty *_object = [[Api38_updates_Difference_updates_differenceEmpty alloc] init];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.seq = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:seq] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_updates_Difference_updates_difference *)updates_differenceWithPnewMessages:(NSArray *)pnewMessages pnewEncryptedMessages:(NSArray *)pnewEncryptedMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users state:(Api38_updates_State *)state
{
Api38_updates_Difference_updates_difference *_object = [[Api38_updates_Difference_updates_difference alloc] init];
_object.pnewMessages =
({
NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count];
for (id pnewMessages_item in pnewMessages)
{
[pnewMessages_copy addObject:pnewMessages_item];
}
id pnewMessages_result = [Api38__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pnewMessages_result;});
_object.pnewEncryptedMessages =
({
NSMutableArray *pnewEncryptedMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewEncryptedMessages.count];
for (id pnewEncryptedMessages_item in pnewEncryptedMessages)
{
[pnewEncryptedMessages_copy addObject:pnewEncryptedMessages_item];
}
id pnewEncryptedMessages_result = [Api38__Serializer addSerializerToObject:pnewEncryptedMessages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pnewEncryptedMessages_result;});
_object.otherUpdates =
({
NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count];
for (id otherUpdates_item in otherUpdates)
{
[otherUpdates_copy addObject:otherUpdates_item];
}
id otherUpdates_result = [Api38__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; otherUpdates_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
_object.state = state;
return _object;
}
+ (Api38_updates_Difference_updates_differenceSlice *)updates_differenceSliceWithPnewMessages:(NSArray *)pnewMessages pnewEncryptedMessages:(NSArray *)pnewEncryptedMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users intermediateState:(Api38_updates_State *)intermediateState
{
Api38_updates_Difference_updates_differenceSlice *_object = [[Api38_updates_Difference_updates_differenceSlice alloc] init];
_object.pnewMessages =
({
NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count];
for (id pnewMessages_item in pnewMessages)
{
[pnewMessages_copy addObject:pnewMessages_item];
}
id pnewMessages_result = [Api38__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pnewMessages_result;});
_object.pnewEncryptedMessages =
({
NSMutableArray *pnewEncryptedMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewEncryptedMessages.count];
for (id pnewEncryptedMessages_item in pnewEncryptedMessages)
{
[pnewEncryptedMessages_copy addObject:pnewEncryptedMessages_item];
}
id pnewEncryptedMessages_result = [Api38__Serializer addSerializerToObject:pnewEncryptedMessages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pnewEncryptedMessages_result;});
_object.otherUpdates =
({
NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count];
for (id otherUpdates_item in otherUpdates)
{
[otherUpdates_copy addObject:otherUpdates_item];
}
id otherUpdates_result = [Api38__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; otherUpdates_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
_object.intermediateState = intermediateState;
return _object;
}
@end
@implementation Api38_updates_Difference_updates_differenceEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5d75a138 serializeBlock:^bool (Api38_updates_Difference_updates_differenceEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.seq data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.differenceEmpty date:%@ seq:%@)", self.date, self.seq];
}
@end
@implementation Api38_updates_Difference_updates_difference
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf49ca0 serializeBlock:^bool (Api38_updates_Difference_updates_difference *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pnewMessages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pnewEncryptedMessages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.otherUpdates data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.state data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.difference new_messages:%@ new_encrypted_messages:%@ other_updates:%@ chats:%@ users:%@ state:%@)", self.pnewMessages, self.pnewEncryptedMessages, self.otherUpdates, self.chats, self.users, self.state];
}
@end
@implementation Api38_updates_Difference_updates_differenceSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa8fb1981 serializeBlock:^bool (Api38_updates_Difference_updates_differenceSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pnewMessages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pnewEncryptedMessages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.otherUpdates data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.intermediateState data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.differenceSlice new_messages:%@ new_encrypted_messages:%@ other_updates:%@ chats:%@ users:%@ intermediate_state:%@)", self.pnewMessages, self.pnewEncryptedMessages, self.otherUpdates, self.chats, self.users, self.intermediateState];
}
@end
@interface Api38_SchemeMethod ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSString * method;
@property (nonatomic, strong) NSArray * params;
@property (nonatomic, strong) NSString * type;
@end
@interface Api38_SchemeMethod_schemeMethod ()
@end
@implementation Api38_SchemeMethod
+ (Api38_SchemeMethod_schemeMethod *)schemeMethodWithPid:(NSNumber *)pid method:(NSString *)method params:(NSArray *)params type:(NSString *)type
{
Api38_SchemeMethod_schemeMethod *_object = [[Api38_SchemeMethod_schemeMethod alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.method = [Api38__Serializer addSerializerToObject:[method copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.params =
({
NSMutableArray *params_copy = [[NSMutableArray alloc] initWithCapacity:params.count];
for (id params_item in params)
{
[params_copy addObject:params_item];
}
id params_result = [Api38__Serializer addSerializerToObject:params_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; params_result;});
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_SchemeMethod_schemeMethod
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x479357c0 serializeBlock:^bool (Api38_SchemeMethod_schemeMethod *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.method data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.params data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(schemeMethod id:%@ method:%d params:%@ type:%d)", self.pid, (int)[self.method length], self.params, (int)[self.type length]];
}
@end
@interface Api38_InputPhotoCrop ()
@end
@interface Api38_InputPhotoCrop_inputPhotoCropAuto ()
@end
@interface Api38_InputPhotoCrop_inputPhotoCrop ()
@property (nonatomic, strong) NSNumber * cropLeft;
@property (nonatomic, strong) NSNumber * cropTop;
@property (nonatomic, strong) NSNumber * cropWidth;
@end
@implementation Api38_InputPhotoCrop
+ (Api38_InputPhotoCrop_inputPhotoCropAuto *)inputPhotoCropAuto
{
Api38_InputPhotoCrop_inputPhotoCropAuto *_object = [[Api38_InputPhotoCrop_inputPhotoCropAuto alloc] init];
return _object;
}
+ (Api38_InputPhotoCrop_inputPhotoCrop *)inputPhotoCropWithCropLeft:(NSNumber *)cropLeft cropTop:(NSNumber *)cropTop cropWidth:(NSNumber *)cropWidth
{
Api38_InputPhotoCrop_inputPhotoCrop *_object = [[Api38_InputPhotoCrop_inputPhotoCrop alloc] init];
_object.cropLeft = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:cropLeft] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.cropTop = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:cropTop] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.cropWidth = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:cropWidth] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
return _object;
}
@end
@implementation Api38_InputPhotoCrop_inputPhotoCropAuto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xade6b004 serializeBlock:^bool (__unused Api38_InputPhotoCrop_inputPhotoCropAuto *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhotoCropAuto)"];
}
@end
@implementation Api38_InputPhotoCrop_inputPhotoCrop
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd9915325 serializeBlock:^bool (Api38_InputPhotoCrop_inputPhotoCrop *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.cropLeft data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.cropTop data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.cropWidth data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhotoCrop crop_left:%@ crop_top:%@ crop_width:%@)", self.cropLeft, self.cropTop, self.cropWidth];
}
@end
@interface Api38_Photo ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Photo_photoEmpty ()
@end
@interface Api38_Photo_wallPhoto ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSString * caption;
@property (nonatomic, strong) Api38_GeoPoint * geo;
@property (nonatomic, strong) Api38_Bool * unread;
@property (nonatomic, strong) NSArray * sizes;
@end
@interface Api38_Photo_photo ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSArray * sizes;
@end
@implementation Api38_Photo
+ (Api38_Photo_photoEmpty *)photoEmptyWithPid:(NSNumber *)pid
{
Api38_Photo_photoEmpty *_object = [[Api38_Photo_photoEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Photo_wallPhoto *)wallPhotoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash userId:(NSNumber *)userId date:(NSNumber *)date caption:(NSString *)caption geo:(Api38_GeoPoint *)geo unread:(Api38_Bool *)unread sizes:(NSArray *)sizes
{
Api38_Photo_wallPhoto *_object = [[Api38_Photo_wallPhoto alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.geo = geo;
_object.unread = unread;
_object.sizes =
({
NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count];
for (id sizes_item in sizes)
{
[sizes_copy addObject:sizes_item];
}
id sizes_result = [Api38__Serializer addSerializerToObject:sizes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; sizes_result;});
return _object;
}
+ (Api38_Photo_photo *)photoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date sizes:(NSArray *)sizes
{
Api38_Photo_photo *_object = [[Api38_Photo_photo alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.sizes =
({
NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count];
for (id sizes_item in sizes)
{
[sizes_copy addObject:sizes_item];
}
id sizes_result = [Api38__Serializer addSerializerToObject:sizes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; sizes_result;});
return _object;
}
@end
@implementation Api38_Photo_photoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2331b22d serializeBlock:^bool (Api38_Photo_photoEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photoEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Photo_wallPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x559dc1e2 serializeBlock:^bool (Api38_Photo_wallPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.geo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.unread data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.sizes data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(wallPhoto id:%@ access_hash:%@ user_id:%@ date:%@ caption:%d geo:%@ unread:%@ sizes:%@)", self.pid, self.accessHash, self.userId, self.date, (int)[self.caption length], self.geo, self.unread, self.sizes];
}
@end
@implementation Api38_Photo_photo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcded42fe serializeBlock:^bool (Api38_Photo_photo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sizes data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photo id:%@ access_hash:%@ date:%@ sizes:%@)", self.pid, self.accessHash, self.date, self.sizes];
}
@end
@interface Api38_Chat ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Chat_chatEmpty ()
@end
@interface Api38_Chat_channel ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * username;
@property (nonatomic, strong) Api38_ChatPhoto * photo;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_Chat_channelForbidden ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSString * title;
@end
@interface Api38_Chat_chat ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) Api38_ChatPhoto * photo;
@property (nonatomic, strong) NSNumber * participantsCount;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_Chat_chatForbidden ()
@property (nonatomic, strong) NSString * title;
@end
@implementation Api38_Chat
+ (Api38_Chat_chatEmpty *)chatEmptyWithPid:(NSNumber *)pid
{
Api38_Chat_chatEmpty *_object = [[Api38_Chat_chatEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Chat_channel *)channelWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title username:(NSString *)username photo:(Api38_ChatPhoto *)photo date:(NSNumber *)date version:(NSNumber *)version
{
Api38_Chat_channel *_object = [[Api38_Chat_channel alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.username = [Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.photo = photo;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Chat_channelForbidden *)channelForbiddenWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title
{
Api38_Chat_channelForbidden *_object = [[Api38_Chat_channelForbidden alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_Chat_chat *)chatWithFlags:(NSNumber *)flags pid:(NSNumber *)pid title:(NSString *)title photo:(Api38_ChatPhoto *)photo participantsCount:(NSNumber *)participantsCount date:(NSNumber *)date version:(NSNumber *)version
{
Api38_Chat_chat *_object = [[Api38_Chat_chat alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.photo = photo;
_object.participantsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:participantsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Chat_chatForbidden *)chatForbiddenWithPid:(NSNumber *)pid title:(NSString *)title
{
Api38_Chat_chatForbidden *_object = [[Api38_Chat_chatForbidden alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_Chat_chatEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9ba2d800 serializeBlock:^bool (Api38_Chat_chatEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Chat_channel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x678e9587 serializeBlock:^bool (Api38_Chat_channel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 6)) {
if (![Api38__Environment serializeObject:object.username data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channel flags:%@ id:%@ access_hash:%@ title:%d username:%d photo:%@ date:%@ version:%@)", self.flags, self.pid, self.accessHash, (int)[self.title length], (int)[self.username length], self.photo, self.date, self.version];
}
@end
@implementation Api38_Chat_channelForbidden
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2d85832c serializeBlock:^bool (Api38_Chat_channelForbidden *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelForbidden id:%@ access_hash:%@ title:%d)", self.pid, self.accessHash, (int)[self.title length]];
}
@end
@implementation Api38_Chat_chat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7312bc48 serializeBlock:^bool (Api38_Chat_chat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.participantsCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chat flags:%@ id:%@ title:%d photo:%@ participants_count:%@ date:%@ version:%@)", self.flags, self.pid, (int)[self.title length], self.photo, self.participantsCount, self.date, self.version];
}
@end
@implementation Api38_Chat_chatForbidden
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7328bdb serializeBlock:^bool (Api38_Chat_chatForbidden *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatForbidden id:%@ title:%d)", self.pid, (int)[self.title length]];
}
@end
@interface Api38_ChatInvite ()
@end
@interface Api38_ChatInvite_chatInviteAlready ()
@property (nonatomic, strong) Api38_Chat * chat;
@end
@interface Api38_ChatInvite_chatInvite ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSString * title;
@end
@implementation Api38_ChatInvite
+ (Api38_ChatInvite_chatInviteAlready *)chatInviteAlreadyWithChat:(Api38_Chat *)chat
{
Api38_ChatInvite_chatInviteAlready *_object = [[Api38_ChatInvite_chatInviteAlready alloc] init];
_object.chat = chat;
return _object;
}
+ (Api38_ChatInvite_chatInvite *)chatInviteWithFlags:(NSNumber *)flags title:(NSString *)title
{
Api38_ChatInvite_chatInvite *_object = [[Api38_ChatInvite_chatInvite alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_ChatInvite_chatInviteAlready
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5a686d7c serializeBlock:^bool (Api38_ChatInvite_chatInviteAlready *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chat data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatInviteAlready chat:%@)", self.chat];
}
@end
@implementation Api38_ChatInvite_chatInvite
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x93e99b60 serializeBlock:^bool (Api38_ChatInvite_chatInvite *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatInvite flags:%@ title:%d)", self.flags, (int)[self.title length]];
}
@end
@interface Api38_contacts_Requests ()
@property (nonatomic, strong) NSArray * requests;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Requests_contacts_requests ()
@end
@interface Api38_contacts_Requests_contacts_requestsSlice ()
@property (nonatomic, strong) NSNumber * count;
@end
@implementation Api38_contacts_Requests
+ (Api38_contacts_Requests_contacts_requests *)contacts_requestsWithRequests:(NSArray *)requests users:(NSArray *)users
{
Api38_contacts_Requests_contacts_requests *_object = [[Api38_contacts_Requests_contacts_requests alloc] init];
_object.requests =
({
NSMutableArray *requests_copy = [[NSMutableArray alloc] initWithCapacity:requests.count];
for (id requests_item in requests)
{
[requests_copy addObject:requests_item];
}
id requests_result = [Api38__Serializer addSerializerToObject:requests_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; requests_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_contacts_Requests_contacts_requestsSlice *)contacts_requestsSliceWithCount:(NSNumber *)count requests:(NSArray *)requests users:(NSArray *)users
{
Api38_contacts_Requests_contacts_requestsSlice *_object = [[Api38_contacts_Requests_contacts_requestsSlice alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.requests =
({
NSMutableArray *requests_copy = [[NSMutableArray alloc] initWithCapacity:requests.count];
for (id requests_item in requests)
{
[requests_copy addObject:requests_item];
}
id requests_result = [Api38__Serializer addSerializerToObject:requests_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; requests_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_Requests_contacts_requests
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6262c36c serializeBlock:^bool (Api38_contacts_Requests_contacts_requests *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.requests data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.requests requests:%@ users:%@)", self.requests, self.users];
}
@end
@implementation Api38_contacts_Requests_contacts_requestsSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6f585b8c serializeBlock:^bool (Api38_contacts_Requests_contacts_requestsSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.requests data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.requestsSlice count:%@ requests:%@ users:%@)", self.count, self.requests, self.users];
}
@end
@interface Api38_channels_ChannelParticipants ()
@property (nonatomic, strong) NSNumber * count;
@property (nonatomic, strong) NSArray * participants;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_channels_ChannelParticipants_channels_channelParticipants ()
@end
@implementation Api38_channels_ChannelParticipants
+ (Api38_channels_ChannelParticipants_channels_channelParticipants *)channels_channelParticipantsWithCount:(NSNumber *)count participants:(NSArray *)participants users:(NSArray *)users
{
Api38_channels_ChannelParticipants_channels_channelParticipants *_object = [[Api38_channels_ChannelParticipants_channels_channelParticipants alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participants =
({
NSMutableArray *participants_copy = [[NSMutableArray alloc] initWithCapacity:participants.count];
for (id participants_item in participants)
{
[participants_copy addObject:participants_item];
}
id participants_result = [Api38__Serializer addSerializerToObject:participants_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; participants_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_channels_ChannelParticipants_channels_channelParticipants
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf56ee2a8 serializeBlock:^bool (Api38_channels_ChannelParticipants_channels_channelParticipants *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participants data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channels.channelParticipants count:%@ participants:%@ users:%@)", self.count, self.participants, self.users];
}
@end
@interface Api38_GeoPlaceName ()
@property (nonatomic, strong) NSString * country;
@property (nonatomic, strong) NSString * state;
@property (nonatomic, strong) NSString * city;
@property (nonatomic, strong) NSString * district;
@property (nonatomic, strong) NSString * street;
@end
@interface Api38_GeoPlaceName_geoPlaceName ()
@end
@implementation Api38_GeoPlaceName
+ (Api38_GeoPlaceName_geoPlaceName *)geoPlaceNameWithCountry:(NSString *)country state:(NSString *)state city:(NSString *)city district:(NSString *)district street:(NSString *)street
{
Api38_GeoPlaceName_geoPlaceName *_object = [[Api38_GeoPlaceName_geoPlaceName alloc] init];
_object.country = [Api38__Serializer addSerializerToObject:[country copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.state = [Api38__Serializer addSerializerToObject:[state copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.city = [Api38__Serializer addSerializerToObject:[city copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.district = [Api38__Serializer addSerializerToObject:[district copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.street = [Api38__Serializer addSerializerToObject:[street copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_GeoPlaceName_geoPlaceName
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3819538f serializeBlock:^bool (Api38_GeoPlaceName_geoPlaceName *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.country data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.state data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.city data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.district data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.street data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(geoPlaceName country:%d state:%d city:%d district:%d street:%d)", (int)[self.country length], (int)[self.state length], (int)[self.city length], (int)[self.district length], (int)[self.street length]];
}
@end
@interface Api38_UserFull ()
@property (nonatomic, strong) Api38_User * user;
@property (nonatomic, strong) Api38_contacts_Link * link;
@property (nonatomic, strong) Api38_Photo * profilePhoto;
@property (nonatomic, strong) Api38_PeerNotifySettings * notifySettings;
@property (nonatomic, strong) Api38_Bool * blocked;
@property (nonatomic, strong) Api38_BotInfo * botInfo;
@end
@interface Api38_UserFull_userFull ()
@end
@implementation Api38_UserFull
+ (Api38_UserFull_userFull *)userFullWithUser:(Api38_User *)user link:(Api38_contacts_Link *)link profilePhoto:(Api38_Photo *)profilePhoto notifySettings:(Api38_PeerNotifySettings *)notifySettings blocked:(Api38_Bool *)blocked botInfo:(Api38_BotInfo *)botInfo
{
Api38_UserFull_userFull *_object = [[Api38_UserFull_userFull alloc] init];
_object.user = user;
_object.link = link;
_object.profilePhoto = profilePhoto;
_object.notifySettings = notifySettings;
_object.blocked = blocked;
_object.botInfo = botInfo;
return _object;
}
@end
@implementation Api38_UserFull_userFull
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5a89ac5b serializeBlock:^bool (Api38_UserFull_userFull *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.user data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.link data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.profilePhoto data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.blocked data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.botInfo data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userFull user:%@ link:%@ profile_photo:%@ notify_settings:%@ blocked:%@ bot_info:%@)", self.user, self.link, self.profilePhoto, self.notifySettings, self.blocked, self.botInfo];
}
@end
@interface Api38_InputPeerNotifyEvents ()
@end
@interface Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty ()
@end
@interface Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll ()
@end
@implementation Api38_InputPeerNotifyEvents
+ (Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *)inputPeerNotifyEventsEmpty
{
Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *_object = [[Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty alloc] init];
return _object;
}
+ (Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll *)inputPeerNotifyEventsAll
{
Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll *_object = [[Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll alloc] init];
return _object;
}
@end
@implementation Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf03064d8 serializeBlock:^bool (__unused Api38_InputPeerNotifyEvents_inputPeerNotifyEventsEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerNotifyEventsEmpty)"];
}
@end
@implementation Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe86a2c74 serializeBlock:^bool (__unused Api38_InputPeerNotifyEvents_inputPeerNotifyEventsAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerNotifyEventsAll)"];
}
@end
@interface Api38_InputChannel ()
@end
@interface Api38_InputChannel_inputChannelEmpty ()
@end
@interface Api38_InputChannel_inputChannel ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputChannel
+ (Api38_InputChannel_inputChannelEmpty *)inputChannelEmpty
{
Api38_InputChannel_inputChannelEmpty *_object = [[Api38_InputChannel_inputChannelEmpty alloc] init];
return _object;
}
+ (Api38_InputChannel_inputChannel *)inputChannelWithChannelId:(NSNumber *)channelId accessHash:(NSNumber *)accessHash
{
Api38_InputChannel_inputChannel *_object = [[Api38_InputChannel_inputChannel alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputChannel_inputChannelEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xee8c1e86 serializeBlock:^bool (__unused Api38_InputChannel_inputChannelEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputChannelEmpty)"];
}
@end
@implementation Api38_InputChannel_inputChannel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xafeb712e serializeBlock:^bool (Api38_InputChannel_inputChannel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputChannel channel_id:%@ access_hash:%@)", self.channelId, self.accessHash];
}
@end
@interface Api38_DcOption ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSString * ipAddress;
@property (nonatomic, strong) NSNumber * port;
@end
@interface Api38_DcOption_dcOption ()
@end
@implementation Api38_DcOption
+ (Api38_DcOption_dcOption *)dcOptionWithFlags:(NSNumber *)flags pid:(NSNumber *)pid ipAddress:(NSString *)ipAddress port:(NSNumber *)port
{
Api38_DcOption_dcOption *_object = [[Api38_DcOption_dcOption alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ipAddress = [Api38__Serializer addSerializerToObject:[ipAddress copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.port = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:port] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_DcOption_dcOption
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5d8c6cc serializeBlock:^bool (Api38_DcOption_dcOption *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ipAddress data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.port data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(dcOption flags:%@ id:%@ ip_address:%d port:%@)", self.flags, self.pid, (int)[self.ipAddress length], self.port];
}
@end
@interface Api38_MessageGroup ()
@property (nonatomic, strong) NSNumber * minId;
@property (nonatomic, strong) NSNumber * maxId;
@property (nonatomic, strong) NSNumber * count;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_MessageGroup_messageGroup ()
@end
@implementation Api38_MessageGroup
+ (Api38_MessageGroup_messageGroup *)messageGroupWithMinId:(NSNumber *)minId maxId:(NSNumber *)maxId count:(NSNumber *)count date:(NSNumber *)date
{
Api38_MessageGroup_messageGroup *_object = [[Api38_MessageGroup_messageGroup alloc] init];
_object.minId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:minId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.maxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_MessageGroup_messageGroup
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe8346f53 serializeBlock:^bool (Api38_MessageGroup_messageGroup *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.minId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.maxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageGroup min_id:%@ max_id:%@ count:%@ date:%@)", self.minId, self.maxId, self.count, self.date];
}
@end
@interface Api38_account_PasswordSettings ()
@property (nonatomic, strong) NSString * email;
@end
@interface Api38_account_PasswordSettings_account_passwordSettings ()
@end
@implementation Api38_account_PasswordSettings
+ (Api38_account_PasswordSettings_account_passwordSettings *)account_passwordSettingsWithEmail:(NSString *)email
{
Api38_account_PasswordSettings_account_passwordSettings *_object = [[Api38_account_PasswordSettings_account_passwordSettings alloc] init];
_object.email = [Api38__Serializer addSerializerToObject:[email copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_account_PasswordSettings_account_passwordSettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb7b72ab3 serializeBlock:^bool (Api38_account_PasswordSettings_account_passwordSettings *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.email data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.passwordSettings email:%d)", (int)[self.email length]];
}
@end
@interface Api38_help_AppUpdate ()
@end
@interface Api38_help_AppUpdate_help_appUpdate ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) Api38_Bool * critical;
@property (nonatomic, strong) NSString * url;
@property (nonatomic, strong) NSString * text;
@end
@interface Api38_help_AppUpdate_help_noAppUpdate ()
@end
@implementation Api38_help_AppUpdate
+ (Api38_help_AppUpdate_help_appUpdate *)help_appUpdateWithPid:(NSNumber *)pid critical:(Api38_Bool *)critical url:(NSString *)url text:(NSString *)text
{
Api38_help_AppUpdate_help_appUpdate *_object = [[Api38_help_AppUpdate_help_appUpdate alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.critical = critical;
_object.url = [Api38__Serializer addSerializerToObject:[url copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.text = [Api38__Serializer addSerializerToObject:[text copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_help_AppUpdate_help_noAppUpdate *)help_noAppUpdate
{
Api38_help_AppUpdate_help_noAppUpdate *_object = [[Api38_help_AppUpdate_help_noAppUpdate alloc] init];
return _object;
}
@end
@implementation Api38_help_AppUpdate_help_appUpdate
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8987f311 serializeBlock:^bool (Api38_help_AppUpdate_help_appUpdate *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.critical data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.url data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.text data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.appUpdate id:%@ critical:%@ url:%d text:%d)", self.pid, self.critical, (int)[self.url length], (int)[self.text length]];
}
@end
@implementation Api38_help_AppUpdate_help_noAppUpdate
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc45a6536 serializeBlock:^bool (__unused Api38_help_AppUpdate_help_noAppUpdate *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.noAppUpdate)"];
}
@end
@interface Api38_channels_ChannelParticipant ()
@property (nonatomic, strong) Api38_ChannelParticipant * participant;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_channels_ChannelParticipant_channels_channelParticipant ()
@end
@implementation Api38_channels_ChannelParticipant
+ (Api38_channels_ChannelParticipant_channels_channelParticipant *)channels_channelParticipantWithParticipant:(Api38_ChannelParticipant *)participant users:(NSArray *)users
{
Api38_channels_ChannelParticipant_channels_channelParticipant *_object = [[Api38_channels_ChannelParticipant_channels_channelParticipant alloc] init];
_object.participant = participant;
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_channels_ChannelParticipant_channels_channelParticipant
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd0d9b163 serializeBlock:^bool (Api38_channels_ChannelParticipant_channels_channelParticipant *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.participant data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channels.channelParticipant participant:%@ users:%@)", self.participant, self.users];
}
@end
@interface Api38_contacts_SentLink ()
@property (nonatomic, strong) Api38_messages_Message * message;
@property (nonatomic, strong) Api38_contacts_Link * link;
@end
@interface Api38_contacts_SentLink_contacts_sentLink ()
@end
@implementation Api38_contacts_SentLink
+ (Api38_contacts_SentLink_contacts_sentLink *)contacts_sentLinkWithMessage:(Api38_messages_Message *)message link:(Api38_contacts_Link *)link
{
Api38_contacts_SentLink_contacts_sentLink *_object = [[Api38_contacts_SentLink_contacts_sentLink alloc] init];
_object.message = message;
_object.link = link;
return _object;
}
@end
@implementation Api38_contacts_SentLink_contacts_sentLink
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x96a0c63e serializeBlock:^bool (Api38_contacts_SentLink_contacts_sentLink *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.link data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.sentLink message:%@ link:%@)", self.message, self.link];
}
@end
@interface Api38_ChannelParticipantRole ()
@end
@interface Api38_ChannelParticipantRole_channelRoleEmpty ()
@end
@interface Api38_ChannelParticipantRole_channelRoleModerator ()
@end
@interface Api38_ChannelParticipantRole_channelRoleEditor ()
@end
@implementation Api38_ChannelParticipantRole
+ (Api38_ChannelParticipantRole_channelRoleEmpty *)channelRoleEmpty
{
Api38_ChannelParticipantRole_channelRoleEmpty *_object = [[Api38_ChannelParticipantRole_channelRoleEmpty alloc] init];
return _object;
}
+ (Api38_ChannelParticipantRole_channelRoleModerator *)channelRoleModerator
{
Api38_ChannelParticipantRole_channelRoleModerator *_object = [[Api38_ChannelParticipantRole_channelRoleModerator alloc] init];
return _object;
}
+ (Api38_ChannelParticipantRole_channelRoleEditor *)channelRoleEditor
{
Api38_ChannelParticipantRole_channelRoleEditor *_object = [[Api38_ChannelParticipantRole_channelRoleEditor alloc] init];
return _object;
}
@end
@implementation Api38_ChannelParticipantRole_channelRoleEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb285a0c6 serializeBlock:^bool (__unused Api38_ChannelParticipantRole_channelRoleEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelRoleEmpty)"];
}
@end
@implementation Api38_ChannelParticipantRole_channelRoleModerator
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9618d975 serializeBlock:^bool (__unused Api38_ChannelParticipantRole_channelRoleModerator *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelRoleModerator)"];
}
@end
@implementation Api38_ChannelParticipantRole_channelRoleEditor
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x820bfe8c serializeBlock:^bool (__unused Api38_ChannelParticipantRole_channelRoleEditor *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelRoleEditor)"];
}
@end
@interface Api38_storage_FileType ()
@end
@interface Api38_storage_FileType_storage_fileUnknown ()
@end
@interface Api38_storage_FileType_storage_fileJpeg ()
@end
@interface Api38_storage_FileType_storage_fileGif ()
@end
@interface Api38_storage_FileType_storage_filePng ()
@end
@interface Api38_storage_FileType_storage_filePdf ()
@end
@interface Api38_storage_FileType_storage_fileMp3 ()
@end
@interface Api38_storage_FileType_storage_fileMov ()
@end
@interface Api38_storage_FileType_storage_filePartial ()
@end
@interface Api38_storage_FileType_storage_fileMp4 ()
@end
@interface Api38_storage_FileType_storage_fileWebp ()
@end
@implementation Api38_storage_FileType
+ (Api38_storage_FileType_storage_fileUnknown *)storage_fileUnknown
{
Api38_storage_FileType_storage_fileUnknown *_object = [[Api38_storage_FileType_storage_fileUnknown alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileJpeg *)storage_fileJpeg
{
Api38_storage_FileType_storage_fileJpeg *_object = [[Api38_storage_FileType_storage_fileJpeg alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileGif *)storage_fileGif
{
Api38_storage_FileType_storage_fileGif *_object = [[Api38_storage_FileType_storage_fileGif alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_filePng *)storage_filePng
{
Api38_storage_FileType_storage_filePng *_object = [[Api38_storage_FileType_storage_filePng alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_filePdf *)storage_filePdf
{
Api38_storage_FileType_storage_filePdf *_object = [[Api38_storage_FileType_storage_filePdf alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileMp3 *)storage_fileMp3
{
Api38_storage_FileType_storage_fileMp3 *_object = [[Api38_storage_FileType_storage_fileMp3 alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileMov *)storage_fileMov
{
Api38_storage_FileType_storage_fileMov *_object = [[Api38_storage_FileType_storage_fileMov alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_filePartial *)storage_filePartial
{
Api38_storage_FileType_storage_filePartial *_object = [[Api38_storage_FileType_storage_filePartial alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileMp4 *)storage_fileMp4
{
Api38_storage_FileType_storage_fileMp4 *_object = [[Api38_storage_FileType_storage_fileMp4 alloc] init];
return _object;
}
+ (Api38_storage_FileType_storage_fileWebp *)storage_fileWebp
{
Api38_storage_FileType_storage_fileWebp *_object = [[Api38_storage_FileType_storage_fileWebp alloc] init];
return _object;
}
@end
@implementation Api38_storage_FileType_storage_fileUnknown
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xaa963b05 serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileUnknown *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileUnknown)"];
}
@end
@implementation Api38_storage_FileType_storage_fileJpeg
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7efe0e serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileJpeg *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileJpeg)"];
}
@end
@implementation Api38_storage_FileType_storage_fileGif
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcae1aadf serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileGif *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileGif)"];
}
@end
@implementation Api38_storage_FileType_storage_filePng
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa4f63c0 serializeBlock:^bool (__unused Api38_storage_FileType_storage_filePng *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.filePng)"];
}
@end
@implementation Api38_storage_FileType_storage_filePdf
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xae1e508d serializeBlock:^bool (__unused Api38_storage_FileType_storage_filePdf *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.filePdf)"];
}
@end
@implementation Api38_storage_FileType_storage_fileMp3
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x528a0677 serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileMp3 *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileMp3)"];
}
@end
@implementation Api38_storage_FileType_storage_fileMov
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4b09ebbc serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileMov *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileMov)"];
}
@end
@implementation Api38_storage_FileType_storage_filePartial
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x40bc6f52 serializeBlock:^bool (__unused Api38_storage_FileType_storage_filePartial *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.filePartial)"];
}
@end
@implementation Api38_storage_FileType_storage_fileMp4
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb3cea0e4 serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileMp4 *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileMp4)"];
}
@end
@implementation Api38_storage_FileType_storage_fileWebp
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1081464c serializeBlock:^bool (__unused Api38_storage_FileType_storage_fileWebp *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(storage.fileWebp)"];
}
@end
@interface Api38_InputEncryptedFile ()
@end
@interface Api38_InputEncryptedFile_inputEncryptedFileEmpty ()
@end
@interface Api38_InputEncryptedFile_inputEncryptedFileUploaded ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * parts;
@property (nonatomic, strong) NSString * md5Checksum;
@property (nonatomic, strong) NSNumber * keyFingerprint;
@end
@interface Api38_InputEncryptedFile_inputEncryptedFile ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputEncryptedFile_inputEncryptedFileBigUploaded ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * parts;
@property (nonatomic, strong) NSNumber * keyFingerprint;
@end
@implementation Api38_InputEncryptedFile
+ (Api38_InputEncryptedFile_inputEncryptedFileEmpty *)inputEncryptedFileEmpty
{
Api38_InputEncryptedFile_inputEncryptedFileEmpty *_object = [[Api38_InputEncryptedFile_inputEncryptedFileEmpty alloc] init];
return _object;
}
+ (Api38_InputEncryptedFile_inputEncryptedFileUploaded *)inputEncryptedFileUploadedWithPid:(NSNumber *)pid parts:(NSNumber *)parts md5Checksum:(NSString *)md5Checksum keyFingerprint:(NSNumber *)keyFingerprint
{
Api38_InputEncryptedFile_inputEncryptedFileUploaded *_object = [[Api38_InputEncryptedFile_inputEncryptedFileUploaded alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.parts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:parts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.md5Checksum = [Api38__Serializer addSerializerToObject:[md5Checksum copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.keyFingerprint = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_InputEncryptedFile_inputEncryptedFile *)inputEncryptedFileWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputEncryptedFile_inputEncryptedFile *_object = [[Api38_InputEncryptedFile_inputEncryptedFile alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputEncryptedFile_inputEncryptedFileBigUploaded *)inputEncryptedFileBigUploadedWithPid:(NSNumber *)pid parts:(NSNumber *)parts keyFingerprint:(NSNumber *)keyFingerprint
{
Api38_InputEncryptedFile_inputEncryptedFileBigUploaded *_object = [[Api38_InputEncryptedFile_inputEncryptedFileBigUploaded alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.parts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:parts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.keyFingerprint = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_InputEncryptedFile_inputEncryptedFileEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1837c364 serializeBlock:^bool (__unused Api38_InputEncryptedFile_inputEncryptedFileEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedFileEmpty)"];
}
@end
@implementation Api38_InputEncryptedFile_inputEncryptedFileUploaded
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x64bd0306 serializeBlock:^bool (Api38_InputEncryptedFile_inputEncryptedFileUploaded *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.parts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.md5Checksum data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.keyFingerprint data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedFileUploaded id:%@ parts:%@ md5_checksum:%d key_fingerprint:%@)", self.pid, self.parts, (int)[self.md5Checksum length], self.keyFingerprint];
}
@end
@implementation Api38_InputEncryptedFile_inputEncryptedFile
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5a17b5e5 serializeBlock:^bool (Api38_InputEncryptedFile_inputEncryptedFile *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedFile id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@implementation Api38_InputEncryptedFile_inputEncryptedFileBigUploaded
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2dc173c8 serializeBlock:^bool (Api38_InputEncryptedFile_inputEncryptedFileBigUploaded *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.parts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.keyFingerprint data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedFileBigUploaded id:%@ parts:%@ key_fingerprint:%@)", self.pid, self.parts, self.keyFingerprint];
}
@end
@interface Api38_messages_SentEncryptedMessage ()
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage ()
@end
@interface Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile ()
@property (nonatomic, strong) Api38_EncryptedFile * file;
@end
@implementation Api38_messages_SentEncryptedMessage
+ (Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage *)messages_sentEncryptedMessageWithDate:(NSNumber *)date
{
Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage *_object = [[Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage alloc] init];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile *)messages_sentEncryptedFileWithDate:(NSNumber *)date file:(Api38_EncryptedFile *)file
{
Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile *_object = [[Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile alloc] init];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.file = file;
return _object;
}
@end
@implementation Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x560f8935 serializeBlock:^bool (Api38_messages_SentEncryptedMessage_messages_sentEncryptedMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.sentEncryptedMessage date:%@)", self.date];
}
@end
@implementation Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9493ff32 serializeBlock:^bool (Api38_messages_SentEncryptedMessage_messages_sentEncryptedFile *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.sentEncryptedFile date:%@ file:%@)", self.date, self.file];
}
@end
@interface Api38_auth_Authorization ()
@property (nonatomic, strong) Api38_User * user;
@end
@interface Api38_auth_Authorization_auth_authorization ()
@end
@implementation Api38_auth_Authorization
+ (Api38_auth_Authorization_auth_authorization *)auth_authorizationWithUser:(Api38_User *)user
{
Api38_auth_Authorization_auth_authorization *_object = [[Api38_auth_Authorization_auth_authorization alloc] init];
_object.user = user;
return _object;
}
@end
@implementation Api38_auth_Authorization_auth_authorization
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xff036af1 serializeBlock:^bool (Api38_auth_Authorization_auth_authorization *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.user data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.authorization user:%@)", self.user];
}
@end
@interface Api38_InputFile ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * parts;
@property (nonatomic, strong) NSString * name;
@end
@interface Api38_InputFile_inputFile ()
@property (nonatomic, strong) NSString * md5Checksum;
@end
@interface Api38_InputFile_inputFileBig ()
@end
@implementation Api38_InputFile
+ (Api38_InputFile_inputFile *)inputFileWithPid:(NSNumber *)pid parts:(NSNumber *)parts name:(NSString *)name md5Checksum:(NSString *)md5Checksum
{
Api38_InputFile_inputFile *_object = [[Api38_InputFile_inputFile alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.parts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:parts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.name = [Api38__Serializer addSerializerToObject:[name copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.md5Checksum = [Api38__Serializer addSerializerToObject:[md5Checksum copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputFile_inputFileBig *)inputFileBigWithPid:(NSNumber *)pid parts:(NSNumber *)parts name:(NSString *)name
{
Api38_InputFile_inputFileBig *_object = [[Api38_InputFile_inputFileBig alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.parts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:parts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.name = [Api38__Serializer addSerializerToObject:[name copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_InputFile_inputFile
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf52ff27f serializeBlock:^bool (Api38_InputFile_inputFile *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.parts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.name data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.md5Checksum data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputFile id:%@ parts:%@ name:%d md5_checksum:%d)", self.pid, self.parts, (int)[self.name length], (int)[self.md5Checksum length]];
}
@end
@implementation Api38_InputFile_inputFileBig
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfa4f0bb5 serializeBlock:^bool (Api38_InputFile_inputFileBig *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.parts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.name data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputFileBig id:%@ parts:%@ name:%d)", self.pid, self.parts, (int)[self.name length]];
}
@end
@interface Api38_Peer ()
@end
@interface Api38_Peer_peerUser ()
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_Peer_peerChat ()
@property (nonatomic, strong) NSNumber * chatId;
@end
@interface Api38_Peer_peerChannel ()
@property (nonatomic, strong) NSNumber * channelId;
@end
@implementation Api38_Peer
+ (Api38_Peer_peerUser *)peerUserWithUserId:(NSNumber *)userId
{
Api38_Peer_peerUser *_object = [[Api38_Peer_peerUser alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Peer_peerChat *)peerChatWithChatId:(NSNumber *)chatId
{
Api38_Peer_peerChat *_object = [[Api38_Peer_peerChat alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Peer_peerChannel *)peerChannelWithChannelId:(NSNumber *)channelId
{
Api38_Peer_peerChannel *_object = [[Api38_Peer_peerChannel alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_Peer_peerUser
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9db1bc6d serializeBlock:^bool (Api38_Peer_peerUser *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerUser user_id:%@)", self.userId];
}
@end
@implementation Api38_Peer_peerChat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbad0e5bb serializeBlock:^bool (Api38_Peer_peerChat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerChat chat_id:%@)", self.chatId];
}
@end
@implementation Api38_Peer_peerChannel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbddde532 serializeBlock:^bool (Api38_Peer_peerChannel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerChannel channel_id:%@)", self.channelId];
}
@end
@interface Api38_UserStatus ()
@end
@interface Api38_UserStatus_userStatusEmpty ()
@end
@interface Api38_UserStatus_userStatusOnline ()
@property (nonatomic, strong) NSNumber * expires;
@end
@interface Api38_UserStatus_userStatusOffline ()
@property (nonatomic, strong) NSNumber * wasOnline;
@end
@interface Api38_UserStatus_userStatusRecently ()
@end
@interface Api38_UserStatus_userStatusLastWeek ()
@end
@interface Api38_UserStatus_userStatusLastMonth ()
@end
@implementation Api38_UserStatus
+ (Api38_UserStatus_userStatusEmpty *)userStatusEmpty
{
Api38_UserStatus_userStatusEmpty *_object = [[Api38_UserStatus_userStatusEmpty alloc] init];
return _object;
}
+ (Api38_UserStatus_userStatusOnline *)userStatusOnlineWithExpires:(NSNumber *)expires
{
Api38_UserStatus_userStatusOnline *_object = [[Api38_UserStatus_userStatusOnline alloc] init];
_object.expires = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:expires] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_UserStatus_userStatusOffline *)userStatusOfflineWithWasOnline:(NSNumber *)wasOnline
{
Api38_UserStatus_userStatusOffline *_object = [[Api38_UserStatus_userStatusOffline alloc] init];
_object.wasOnline = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:wasOnline] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_UserStatus_userStatusRecently *)userStatusRecently
{
Api38_UserStatus_userStatusRecently *_object = [[Api38_UserStatus_userStatusRecently alloc] init];
return _object;
}
+ (Api38_UserStatus_userStatusLastWeek *)userStatusLastWeek
{
Api38_UserStatus_userStatusLastWeek *_object = [[Api38_UserStatus_userStatusLastWeek alloc] init];
return _object;
}
+ (Api38_UserStatus_userStatusLastMonth *)userStatusLastMonth
{
Api38_UserStatus_userStatusLastMonth *_object = [[Api38_UserStatus_userStatusLastMonth alloc] init];
return _object;
}
@end
@implementation Api38_UserStatus_userStatusEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9d05049 serializeBlock:^bool (__unused Api38_UserStatus_userStatusEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusEmpty)"];
}
@end
@implementation Api38_UserStatus_userStatusOnline
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xedb93949 serializeBlock:^bool (Api38_UserStatus_userStatusOnline *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.expires data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusOnline expires:%@)", self.expires];
}
@end
@implementation Api38_UserStatus_userStatusOffline
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8c703f serializeBlock:^bool (Api38_UserStatus_userStatusOffline *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.wasOnline data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusOffline was_online:%@)", self.wasOnline];
}
@end
@implementation Api38_UserStatus_userStatusRecently
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe26f42f1 serializeBlock:^bool (__unused Api38_UserStatus_userStatusRecently *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusRecently)"];
}
@end
@implementation Api38_UserStatus_userStatusLastWeek
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7bf09fc serializeBlock:^bool (__unused Api38_UserStatus_userStatusLastWeek *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusLastWeek)"];
}
@end
@implementation Api38_UserStatus_userStatusLastMonth
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x77ebc742 serializeBlock:^bool (__unused Api38_UserStatus_userStatusLastMonth *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userStatusLastMonth)"];
}
@end
@interface Api38_Dialog ()
@property (nonatomic, strong) Api38_Peer * peer;
@property (nonatomic, strong) NSNumber * topMessage;
@property (nonatomic, strong) NSNumber * readInboxMaxId;
@property (nonatomic, strong) NSNumber * unreadCount;
@property (nonatomic, strong) Api38_PeerNotifySettings * notifySettings;
@end
@interface Api38_Dialog_dialog ()
@end
@interface Api38_Dialog_dialogChannel ()
@property (nonatomic, strong) NSNumber * topImportantMessage;
@property (nonatomic, strong) NSNumber * unreadImportantCount;
@property (nonatomic, strong) NSNumber * pts;
@end
@implementation Api38_Dialog
+ (Api38_Dialog_dialog *)dialogWithPeer:(Api38_Peer *)peer topMessage:(NSNumber *)topMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount notifySettings:(Api38_PeerNotifySettings *)notifySettings
{
Api38_Dialog_dialog *_object = [[Api38_Dialog_dialog alloc] init];
_object.peer = peer;
_object.topMessage = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:topMessage] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.readInboxMaxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.notifySettings = notifySettings;
return _object;
}
+ (Api38_Dialog_dialogChannel *)dialogChannelWithPeer:(Api38_Peer *)peer topMessage:(NSNumber *)topMessage topImportantMessage:(NSNumber *)topImportantMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount notifySettings:(Api38_PeerNotifySettings *)notifySettings pts:(NSNumber *)pts
{
Api38_Dialog_dialogChannel *_object = [[Api38_Dialog_dialogChannel alloc] init];
_object.peer = peer;
_object.topMessage = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:topMessage] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.topImportantMessage = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:topImportantMessage] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.readInboxMaxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadImportantCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.notifySettings = notifySettings;
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_Dialog_dialog
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc1dd804a serializeBlock:^bool (Api38_Dialog_dialog *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.topMessage data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.readInboxMaxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(dialog peer:%@ top_message:%@ read_inbox_max_id:%@ unread_count:%@ notify_settings:%@)", self.peer, self.topMessage, self.readInboxMaxId, self.unreadCount, self.notifySettings];
}
@end
@implementation Api38_Dialog_dialogChannel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5b8496b2 serializeBlock:^bool (Api38_Dialog_dialogChannel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.topMessage data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.topImportantMessage data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.readInboxMaxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadImportantCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(dialogChannel peer:%@ top_message:%@ top_important_message:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ notify_settings:%@ pts:%@)", self.peer, self.topMessage, self.topImportantMessage, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.notifySettings, self.pts];
}
@end
@interface Api38_help_AppChangelog ()
@end
@interface Api38_help_AppChangelog_help_appChangelogEmpty ()
@end
@interface Api38_help_AppChangelog_help_appChangelog ()
@property (nonatomic, strong) NSString * text;
@end
@implementation Api38_help_AppChangelog
+ (Api38_help_AppChangelog_help_appChangelogEmpty *)help_appChangelogEmpty
{
Api38_help_AppChangelog_help_appChangelogEmpty *_object = [[Api38_help_AppChangelog_help_appChangelogEmpty alloc] init];
return _object;
}
+ (Api38_help_AppChangelog_help_appChangelog *)help_appChangelogWithText:(NSString *)text
{
Api38_help_AppChangelog_help_appChangelog *_object = [[Api38_help_AppChangelog_help_appChangelog alloc] init];
_object.text = [Api38__Serializer addSerializerToObject:[text copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_help_AppChangelog_help_appChangelogEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xaf7e0394 serializeBlock:^bool (__unused Api38_help_AppChangelog_help_appChangelogEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.appChangelogEmpty)"];
}
@end
@implementation Api38_help_AppChangelog_help_appChangelog
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4668e6bd serializeBlock:^bool (Api38_help_AppChangelog_help_appChangelog *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.text data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.appChangelog text:%d)", (int)[self.text length]];
}
@end
@interface Api38_SendMessageAction ()
@end
@interface Api38_SendMessageAction_sendMessageTypingAction ()
@end
@interface Api38_SendMessageAction_sendMessageCancelAction ()
@end
@interface Api38_SendMessageAction_sendMessageRecordVideoAction ()
@end
@interface Api38_SendMessageAction_sendMessageRecordAudioAction ()
@end
@interface Api38_SendMessageAction_sendMessageGeoLocationAction ()
@end
@interface Api38_SendMessageAction_sendMessageChooseContactAction ()
@end
@interface Api38_SendMessageAction_sendMessageUploadVideoAction ()
@property (nonatomic, strong) NSNumber * progress;
@end
@interface Api38_SendMessageAction_sendMessageUploadAudioAction ()
@property (nonatomic, strong) NSNumber * progress;
@end
@interface Api38_SendMessageAction_sendMessageUploadDocumentAction ()
@property (nonatomic, strong) NSNumber * progress;
@end
@interface Api38_SendMessageAction_sendMessageUploadPhotoAction ()
@property (nonatomic, strong) NSNumber * progress;
@end
@implementation Api38_SendMessageAction
+ (Api38_SendMessageAction_sendMessageTypingAction *)sendMessageTypingAction
{
Api38_SendMessageAction_sendMessageTypingAction *_object = [[Api38_SendMessageAction_sendMessageTypingAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageCancelAction *)sendMessageCancelAction
{
Api38_SendMessageAction_sendMessageCancelAction *_object = [[Api38_SendMessageAction_sendMessageCancelAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageRecordVideoAction *)sendMessageRecordVideoAction
{
Api38_SendMessageAction_sendMessageRecordVideoAction *_object = [[Api38_SendMessageAction_sendMessageRecordVideoAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageRecordAudioAction *)sendMessageRecordAudioAction
{
Api38_SendMessageAction_sendMessageRecordAudioAction *_object = [[Api38_SendMessageAction_sendMessageRecordAudioAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageGeoLocationAction *)sendMessageGeoLocationAction
{
Api38_SendMessageAction_sendMessageGeoLocationAction *_object = [[Api38_SendMessageAction_sendMessageGeoLocationAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageChooseContactAction *)sendMessageChooseContactAction
{
Api38_SendMessageAction_sendMessageChooseContactAction *_object = [[Api38_SendMessageAction_sendMessageChooseContactAction alloc] init];
return _object;
}
+ (Api38_SendMessageAction_sendMessageUploadVideoAction *)sendMessageUploadVideoActionWithProgress:(NSNumber *)progress
{
Api38_SendMessageAction_sendMessageUploadVideoAction *_object = [[Api38_SendMessageAction_sendMessageUploadVideoAction alloc] init];
_object.progress = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:progress] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_SendMessageAction_sendMessageUploadAudioAction *)sendMessageUploadAudioActionWithProgress:(NSNumber *)progress
{
Api38_SendMessageAction_sendMessageUploadAudioAction *_object = [[Api38_SendMessageAction_sendMessageUploadAudioAction alloc] init];
_object.progress = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:progress] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_SendMessageAction_sendMessageUploadDocumentAction *)sendMessageUploadDocumentActionWithProgress:(NSNumber *)progress
{
Api38_SendMessageAction_sendMessageUploadDocumentAction *_object = [[Api38_SendMessageAction_sendMessageUploadDocumentAction alloc] init];
_object.progress = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:progress] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_SendMessageAction_sendMessageUploadPhotoAction *)sendMessageUploadPhotoActionWithProgress:(NSNumber *)progress
{
Api38_SendMessageAction_sendMessageUploadPhotoAction *_object = [[Api38_SendMessageAction_sendMessageUploadPhotoAction alloc] init];
_object.progress = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:progress] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_SendMessageAction_sendMessageTypingAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x16bf744e serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageTypingAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageTypingAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageCancelAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfd5ec8f5 serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageCancelAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageCancelAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageRecordVideoAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa187d66f serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageRecordVideoAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageRecordVideoAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageRecordAudioAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd52f73f7 serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageRecordAudioAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageRecordAudioAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageGeoLocationAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x176f8ba1 serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageGeoLocationAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageGeoLocationAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageChooseContactAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x628cbc6f serializeBlock:^bool (__unused Api38_SendMessageAction_sendMessageChooseContactAction *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageChooseContactAction)"];
}
@end
@implementation Api38_SendMessageAction_sendMessageUploadVideoAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe9763aec serializeBlock:^bool (Api38_SendMessageAction_sendMessageUploadVideoAction *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.progress data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageUploadVideoAction progress:%@)", self.progress];
}
@end
@implementation Api38_SendMessageAction_sendMessageUploadAudioAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf351d7ab serializeBlock:^bool (Api38_SendMessageAction_sendMessageUploadAudioAction *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.progress data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageUploadAudioAction progress:%@)", self.progress];
}
@end
@implementation Api38_SendMessageAction_sendMessageUploadDocumentAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xaa0cd9e4 serializeBlock:^bool (Api38_SendMessageAction_sendMessageUploadDocumentAction *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.progress data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageUploadDocumentAction progress:%@)", self.progress];
}
@end
@implementation Api38_SendMessageAction_sendMessageUploadPhotoAction
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd1d34a26 serializeBlock:^bool (Api38_SendMessageAction_sendMessageUploadPhotoAction *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.progress data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(sendMessageUploadPhotoAction progress:%@)", self.progress];
}
@end
@interface Api38_PrivacyKey ()
@end
@interface Api38_PrivacyKey_privacyKeyStatusTimestamp ()
@end
@implementation Api38_PrivacyKey
+ (Api38_PrivacyKey_privacyKeyStatusTimestamp *)privacyKeyStatusTimestamp
{
Api38_PrivacyKey_privacyKeyStatusTimestamp *_object = [[Api38_PrivacyKey_privacyKeyStatusTimestamp alloc] init];
return _object;
}
@end
@implementation Api38_PrivacyKey_privacyKeyStatusTimestamp
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbc2eab30 serializeBlock:^bool (__unused Api38_PrivacyKey_privacyKeyStatusTimestamp *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyKeyStatusTimestamp)"];
}
@end
@interface Api38_Update ()
@end
@interface Api38_Update_updateMessageID ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * randomId;
@end
@interface Api38_Update_updateRestoreMessages ()
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSNumber * pts;
@end
@interface Api38_Update_updateChatParticipants ()
@property (nonatomic, strong) Api38_ChatParticipants * participants;
@end
@interface Api38_Update_updateUserStatus ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_UserStatus * status;
@end
@interface Api38_Update_updateContactRegistered ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_Update_updateContactLocated ()
@property (nonatomic, strong) NSArray * contacts;
@end
@interface Api38_Update_updateActivation ()
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_Update_updateNewAuthorization ()
@property (nonatomic, strong) NSNumber * authKeyId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSString * device;
@property (nonatomic, strong) NSString * location;
@end
@interface Api38_Update_updatePhoneCallRequested ()
@property (nonatomic, strong) Api38_PhoneCall * phoneCall;
@end
@interface Api38_Update_updatePhoneCallConfirmed ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSData * aOrB;
@property (nonatomic, strong) Api38_PhoneConnection * connection;
@end
@interface Api38_Update_updatePhoneCallDeclined ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Update_updateUserPhoto ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) Api38_UserProfilePhoto * photo;
@property (nonatomic, strong) Api38_Bool * previous;
@end
@interface Api38_Update_updateNewEncryptedMessage ()
@property (nonatomic, strong) Api38_EncryptedMessage * message;
@property (nonatomic, strong) NSNumber * qts;
@end
@interface Api38_Update_updateEncryptedChatTyping ()
@property (nonatomic, strong) NSNumber * chatId;
@end
@interface Api38_Update_updateEncryption ()
@property (nonatomic, strong) Api38_EncryptedChat * chat;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_Update_updateEncryptedMessagesRead ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * maxDate;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_Update_updateChatParticipantDelete ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_Update_updateDcOptions ()
@property (nonatomic, strong) NSArray * dcOptions;
@end
@interface Api38_Update_updateUserBlocked ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_Bool * blocked;
@end
@interface Api38_Update_updateNotifySettings ()
@property (nonatomic, strong) Api38_NotifyPeer * peer;
@property (nonatomic, strong) Api38_PeerNotifySettings * notifySettings;
@end
@interface Api38_Update_updateUserTyping ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_SendMessageAction * action;
@end
@interface Api38_Update_updateChatUserTyping ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_SendMessageAction * action;
@end
@interface Api38_Update_updateUserName ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSString * firstName;
@property (nonatomic, strong) NSString * lastName;
@property (nonatomic, strong) NSString * username;
@end
@interface Api38_Update_updateServiceNotification ()
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * message;
@property (nonatomic, strong) Api38_MessageMedia * media;
@property (nonatomic, strong) Api38_Bool * popup;
@end
@interface Api38_Update_updatePrivacy ()
@property (nonatomic, strong) Api38_PrivacyKey * key;
@property (nonatomic, strong) NSArray * rules;
@end
@interface Api38_Update_updateUserPhone ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSString * phone;
@end
@interface Api38_Update_updateNewMessage ()
@property (nonatomic, strong) Api38_Message * message;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateReadMessages ()
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateDeleteMessages ()
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateReadHistoryInbox ()
@property (nonatomic, strong) Api38_Peer * peer;
@property (nonatomic, strong) NSNumber * maxId;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateReadHistoryOutbox ()
@property (nonatomic, strong) Api38_Peer * peer;
@property (nonatomic, strong) NSNumber * maxId;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateContactLink ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_ContactLink * myLink;
@property (nonatomic, strong) Api38_ContactLink * foreignLink;
@end
@interface Api38_Update_updateReadMessagesContents ()
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateChatParticipantAdd ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * inviterId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_Update_updateWebPage ()
@property (nonatomic, strong) Api38_WebPage * webpage;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateChannelTooLong ()
@property (nonatomic, strong) NSNumber * channelId;
@end
@interface Api38_Update_updateChannel ()
@property (nonatomic, strong) NSNumber * channelId;
@end
@interface Api38_Update_updateChannelGroup ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) Api38_MessageGroup * group;
@end
@interface Api38_Update_updateNewChannelMessage ()
@property (nonatomic, strong) Api38_Message * message;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateReadChannelInbox ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) NSNumber * maxId;
@end
@interface Api38_Update_updateDeleteChannelMessages ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_Update_updateChannelMessageViews ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * views;
@end
@implementation Api38_Update
+ (Api38_Update_updateMessageID *)updateMessageIDWithPid:(NSNumber *)pid randomId:(NSNumber *)randomId
{
Api38_Update_updateMessageID *_object = [[Api38_Update_updateMessageID alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.randomId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Update_updateRestoreMessages *)updateRestoreMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts
{
Api38_Update_updateRestoreMessages *_object = [[Api38_Update_updateRestoreMessages alloc] init];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:messages_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; messages_result;});
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChatParticipants *)updateChatParticipantsWithParticipants:(Api38_ChatParticipants *)participants
{
Api38_Update_updateChatParticipants *_object = [[Api38_Update_updateChatParticipants alloc] init];
_object.participants = participants;
return _object;
}
+ (Api38_Update_updateUserStatus *)updateUserStatusWithUserId:(NSNumber *)userId status:(Api38_UserStatus *)status
{
Api38_Update_updateUserStatus *_object = [[Api38_Update_updateUserStatus alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.status = status;
return _object;
}
+ (Api38_Update_updateContactRegistered *)updateContactRegisteredWithUserId:(NSNumber *)userId date:(NSNumber *)date
{
Api38_Update_updateContactRegistered *_object = [[Api38_Update_updateContactRegistered alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateContactLocated *)updateContactLocatedWithContacts:(NSArray *)contacts
{
Api38_Update_updateContactLocated *_object = [[Api38_Update_updateContactLocated alloc] init];
_object.contacts =
({
NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count];
for (id contacts_item in contacts)
{
[contacts_copy addObject:contacts_item];
}
id contacts_result = [Api38__Serializer addSerializerToObject:contacts_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; contacts_result;});
return _object;
}
+ (Api38_Update_updateActivation *)updateActivationWithUserId:(NSNumber *)userId
{
Api38_Update_updateActivation *_object = [[Api38_Update_updateActivation alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateNewAuthorization *)updateNewAuthorizationWithAuthKeyId:(NSNumber *)authKeyId date:(NSNumber *)date device:(NSString *)device location:(NSString *)location
{
Api38_Update_updateNewAuthorization *_object = [[Api38_Update_updateNewAuthorization alloc] init];
_object.authKeyId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:authKeyId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.device = [Api38__Serializer addSerializerToObject:[device copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.location = [Api38__Serializer addSerializerToObject:[location copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_Update_updatePhoneCallRequested *)updatePhoneCallRequestedWithPhoneCall:(Api38_PhoneCall *)phoneCall
{
Api38_Update_updatePhoneCallRequested *_object = [[Api38_Update_updatePhoneCallRequested alloc] init];
_object.phoneCall = phoneCall;
return _object;
}
+ (Api38_Update_updatePhoneCallConfirmed *)updatePhoneCallConfirmedWithPid:(NSNumber *)pid aOrB:(NSData *)aOrB connection:(Api38_PhoneConnection *)connection
{
Api38_Update_updatePhoneCallConfirmed *_object = [[Api38_Update_updatePhoneCallConfirmed alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.aOrB = [Api38__Serializer addSerializerToObject:[aOrB copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.connection = connection;
return _object;
}
+ (Api38_Update_updatePhoneCallDeclined *)updatePhoneCallDeclinedWithPid:(NSNumber *)pid
{
Api38_Update_updatePhoneCallDeclined *_object = [[Api38_Update_updatePhoneCallDeclined alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Update_updateUserPhoto *)updateUserPhotoWithUserId:(NSNumber *)userId date:(NSNumber *)date photo:(Api38_UserProfilePhoto *)photo previous:(Api38_Bool *)previous
{
Api38_Update_updateUserPhoto *_object = [[Api38_Update_updateUserPhoto alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.photo = photo;
_object.previous = previous;
return _object;
}
+ (Api38_Update_updateNewEncryptedMessage *)updateNewEncryptedMessageWithMessage:(Api38_EncryptedMessage *)message qts:(NSNumber *)qts
{
Api38_Update_updateNewEncryptedMessage *_object = [[Api38_Update_updateNewEncryptedMessage alloc] init];
_object.message = message;
_object.qts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:qts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateEncryptedChatTyping *)updateEncryptedChatTypingWithChatId:(NSNumber *)chatId
{
Api38_Update_updateEncryptedChatTyping *_object = [[Api38_Update_updateEncryptedChatTyping alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateEncryption *)updateEncryptionWithChat:(Api38_EncryptedChat *)chat date:(NSNumber *)date
{
Api38_Update_updateEncryption *_object = [[Api38_Update_updateEncryption alloc] init];
_object.chat = chat;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateEncryptedMessagesRead *)updateEncryptedMessagesReadWithChatId:(NSNumber *)chatId maxDate:(NSNumber *)maxDate date:(NSNumber *)date
{
Api38_Update_updateEncryptedMessagesRead *_object = [[Api38_Update_updateEncryptedMessagesRead alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.maxDate = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChatParticipantDelete *)updateChatParticipantDeleteWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId version:(NSNumber *)version
{
Api38_Update_updateChatParticipantDelete *_object = [[Api38_Update_updateChatParticipantDelete alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateDcOptions *)updateDcOptionsWithDcOptions:(NSArray *)dcOptions
{
Api38_Update_updateDcOptions *_object = [[Api38_Update_updateDcOptions alloc] init];
_object.dcOptions =
({
NSMutableArray *dcOptions_copy = [[NSMutableArray alloc] initWithCapacity:dcOptions.count];
for (id dcOptions_item in dcOptions)
{
[dcOptions_copy addObject:dcOptions_item];
}
id dcOptions_result = [Api38__Serializer addSerializerToObject:dcOptions_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; dcOptions_result;});
return _object;
}
+ (Api38_Update_updateUserBlocked *)updateUserBlockedWithUserId:(NSNumber *)userId blocked:(Api38_Bool *)blocked
{
Api38_Update_updateUserBlocked *_object = [[Api38_Update_updateUserBlocked alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.blocked = blocked;
return _object;
}
+ (Api38_Update_updateNotifySettings *)updateNotifySettingsWithPeer:(Api38_NotifyPeer *)peer notifySettings:(Api38_PeerNotifySettings *)notifySettings
{
Api38_Update_updateNotifySettings *_object = [[Api38_Update_updateNotifySettings alloc] init];
_object.peer = peer;
_object.notifySettings = notifySettings;
return _object;
}
+ (Api38_Update_updateUserTyping *)updateUserTypingWithUserId:(NSNumber *)userId action:(Api38_SendMessageAction *)action
{
Api38_Update_updateUserTyping *_object = [[Api38_Update_updateUserTyping alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.action = action;
return _object;
}
+ (Api38_Update_updateChatUserTyping *)updateChatUserTypingWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId action:(Api38_SendMessageAction *)action
{
Api38_Update_updateChatUserTyping *_object = [[Api38_Update_updateChatUserTyping alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.action = action;
return _object;
}
+ (Api38_Update_updateUserName *)updateUserNameWithUserId:(NSNumber *)userId firstName:(NSString *)firstName lastName:(NSString *)lastName username:(NSString *)username
{
Api38_Update_updateUserName *_object = [[Api38_Update_updateUserName alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.firstName = [Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.lastName = [Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.username = [Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_Update_updateServiceNotification *)updateServiceNotificationWithType:(NSString *)type message:(NSString *)message media:(Api38_MessageMedia *)media popup:(Api38_Bool *)popup
{
Api38_Update_updateServiceNotification *_object = [[Api38_Update_updateServiceNotification alloc] init];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.message = [Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.media = media;
_object.popup = popup;
return _object;
}
+ (Api38_Update_updatePrivacy *)updatePrivacyWithKey:(Api38_PrivacyKey *)key rules:(NSArray *)rules
{
Api38_Update_updatePrivacy *_object = [[Api38_Update_updatePrivacy alloc] init];
_object.key = key;
_object.rules =
({
NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count];
for (id rules_item in rules)
{
[rules_copy addObject:rules_item];
}
id rules_result = [Api38__Serializer addSerializerToObject:rules_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; rules_result;});
return _object;
}
+ (Api38_Update_updateUserPhone *)updateUserPhoneWithUserId:(NSNumber *)userId phone:(NSString *)phone
{
Api38_Update_updateUserPhone *_object = [[Api38_Update_updateUserPhone alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.phone = [Api38__Serializer addSerializerToObject:[phone copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_Update_updateNewMessage *)updateNewMessageWithMessage:(Api38_Message *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateNewMessage *_object = [[Api38_Update_updateNewMessage alloc] init];
_object.message = message;
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateReadMessages *)updateReadMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateReadMessages *_object = [[Api38_Update_updateReadMessages alloc] init];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:messages_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; messages_result;});
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateDeleteMessages *)updateDeleteMessagesWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateDeleteMessages *_object = [[Api38_Update_updateDeleteMessages alloc] init];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:messages_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; messages_result;});
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateReadHistoryInbox *)updateReadHistoryInboxWithPeer:(Api38_Peer *)peer maxId:(NSNumber *)maxId pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateReadHistoryInbox *_object = [[Api38_Update_updateReadHistoryInbox alloc] init];
_object.peer = peer;
_object.maxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateReadHistoryOutbox *)updateReadHistoryOutboxWithPeer:(Api38_Peer *)peer maxId:(NSNumber *)maxId pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateReadHistoryOutbox *_object = [[Api38_Update_updateReadHistoryOutbox alloc] init];
_object.peer = peer;
_object.maxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateContactLink *)updateContactLinkWithUserId:(NSNumber *)userId myLink:(Api38_ContactLink *)myLink foreignLink:(Api38_ContactLink *)foreignLink
{
Api38_Update_updateContactLink *_object = [[Api38_Update_updateContactLink alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.myLink = myLink;
_object.foreignLink = foreignLink;
return _object;
}
+ (Api38_Update_updateReadMessagesContents *)updateReadMessagesContentsWithMessages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateReadMessagesContents *_object = [[Api38_Update_updateReadMessagesContents alloc] init];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:messages_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; messages_result;});
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChatParticipantAdd *)updateChatParticipantAddWithChatId:(NSNumber *)chatId userId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date version:(NSNumber *)version
{
Api38_Update_updateChatParticipantAdd *_object = [[Api38_Update_updateChatParticipantAdd alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateWebPage *)updateWebPageWithWebpage:(Api38_WebPage *)webpage pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateWebPage *_object = [[Api38_Update_updateWebPage alloc] init];
_object.webpage = webpage;
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChannelTooLong *)updateChannelTooLongWithChannelId:(NSNumber *)channelId
{
Api38_Update_updateChannelTooLong *_object = [[Api38_Update_updateChannelTooLong alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChannel *)updateChannelWithChannelId:(NSNumber *)channelId
{
Api38_Update_updateChannel *_object = [[Api38_Update_updateChannel alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChannelGroup *)updateChannelGroupWithChannelId:(NSNumber *)channelId group:(Api38_MessageGroup *)group
{
Api38_Update_updateChannelGroup *_object = [[Api38_Update_updateChannelGroup alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.group = group;
return _object;
}
+ (Api38_Update_updateNewChannelMessage *)updateNewChannelMessageWithMessage:(Api38_Message *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateNewChannelMessage *_object = [[Api38_Update_updateNewChannelMessage alloc] init];
_object.message = message;
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateReadChannelInbox *)updateReadChannelInboxWithChannelId:(NSNumber *)channelId maxId:(NSNumber *)maxId
{
Api38_Update_updateReadChannelInbox *_object = [[Api38_Update_updateReadChannelInbox alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.maxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateDeleteChannelMessages *)updateDeleteChannelMessagesWithChannelId:(NSNumber *)channelId messages:(NSArray *)messages pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_Update_updateDeleteChannelMessages *_object = [[Api38_Update_updateDeleteChannelMessages alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:messages_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; messages_result;});
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Update_updateChannelMessageViews *)updateChannelMessageViewsWithChannelId:(NSNumber *)channelId pid:(NSNumber *)pid views:(NSNumber *)views
{
Api38_Update_updateChannelMessageViews *_object = [[Api38_Update_updateChannelMessageViews alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.views = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:views] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_Update_updateMessageID
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4e90bfd6 serializeBlock:^bool (Api38_Update_updateMessageID *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.randomId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateMessageID id:%@ random_id:%@)", self.pid, self.randomId];
}
@end
@implementation Api38_Update_updateRestoreMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd15de04d serializeBlock:^bool (Api38_Update_updateRestoreMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateRestoreMessages messages:%@ pts:%@)", self.messages, self.pts];
}
@end
@implementation Api38_Update_updateChatParticipants
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7761198 serializeBlock:^bool (Api38_Update_updateChatParticipants *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.participants data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChatParticipants participants:%@)", self.participants];
}
@end
@implementation Api38_Update_updateUserStatus
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1bfbd823 serializeBlock:^bool (Api38_Update_updateUserStatus *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.status data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserStatus user_id:%@ status:%@)", self.userId, self.status];
}
@end
@implementation Api38_Update_updateContactRegistered
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2575bbb9 serializeBlock:^bool (Api38_Update_updateContactRegistered *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateContactRegistered user_id:%@ date:%@)", self.userId, self.date];
}
@end
@implementation Api38_Update_updateContactLocated
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5f83b963 serializeBlock:^bool (Api38_Update_updateContactLocated *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.contacts data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateContactLocated contacts:%@)", self.contacts];
}
@end
@implementation Api38_Update_updateActivation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6f690963 serializeBlock:^bool (Api38_Update_updateActivation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateActivation user_id:%@)", self.userId];
}
@end
@implementation Api38_Update_updateNewAuthorization
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8f06529a serializeBlock:^bool (Api38_Update_updateNewAuthorization *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.authKeyId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.device data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.location data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateNewAuthorization auth_key_id:%@ date:%@ device:%d location:%d)", self.authKeyId, self.date, (int)[self.device length], (int)[self.location length]];
}
@end
@implementation Api38_Update_updatePhoneCallRequested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xdad7490e serializeBlock:^bool (Api38_Update_updatePhoneCallRequested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneCall data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatePhoneCallRequested phone_call:%@)", self.phoneCall];
}
@end
@implementation Api38_Update_updatePhoneCallConfirmed
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5609ff88 serializeBlock:^bool (Api38_Update_updatePhoneCallConfirmed *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.aOrB data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.connection data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatePhoneCallConfirmed id:%@ a_or_b:%d connection:%@)", self.pid, (int)[self.aOrB length], self.connection];
}
@end
@implementation Api38_Update_updatePhoneCallDeclined
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x31ae2cc2 serializeBlock:^bool (Api38_Update_updatePhoneCallDeclined *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatePhoneCallDeclined id:%@)", self.pid];
}
@end
@implementation Api38_Update_updateUserPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x95313b0c serializeBlock:^bool (Api38_Update_updateUserPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.previous data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserPhoto user_id:%@ date:%@ photo:%@ previous:%@)", self.userId, self.date, self.photo, self.previous];
}
@end
@implementation Api38_Update_updateNewEncryptedMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x12bcbd9a serializeBlock:^bool (Api38_Update_updateNewEncryptedMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.qts data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateNewEncryptedMessage message:%@ qts:%@)", self.message, self.qts];
}
@end
@implementation Api38_Update_updateEncryptedChatTyping
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1710f156 serializeBlock:^bool (Api38_Update_updateEncryptedChatTyping *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateEncryptedChatTyping chat_id:%@)", self.chatId];
}
@end
@implementation Api38_Update_updateEncryption
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb4a2e88d serializeBlock:^bool (Api38_Update_updateEncryption *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chat data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateEncryption chat:%@ date:%@)", self.chat, self.date];
}
@end
@implementation Api38_Update_updateEncryptedMessagesRead
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x38fe25b7 serializeBlock:^bool (Api38_Update_updateEncryptedMessagesRead *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.maxDate data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateEncryptedMessagesRead chat_id:%@ max_date:%@ date:%@)", self.chatId, self.maxDate, self.date];
}
@end
@implementation Api38_Update_updateChatParticipantDelete
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6e5f8c22 serializeBlock:^bool (Api38_Update_updateChatParticipantDelete *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChatParticipantDelete chat_id:%@ user_id:%@ version:%@)", self.chatId, self.userId, self.version];
}
@end
@implementation Api38_Update_updateDcOptions
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8e5e9873 serializeBlock:^bool (Api38_Update_updateDcOptions *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.dcOptions data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateDcOptions dc_options:%@)", self.dcOptions];
}
@end
@implementation Api38_Update_updateUserBlocked
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x80ece81a serializeBlock:^bool (Api38_Update_updateUserBlocked *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.blocked data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserBlocked user_id:%@ blocked:%@)", self.userId, self.blocked];
}
@end
@implementation Api38_Update_updateNotifySettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbec268ef serializeBlock:^bool (Api38_Update_updateNotifySettings *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.notifySettings data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateNotifySettings peer:%@ notify_settings:%@)", self.peer, self.notifySettings];
}
@end
@implementation Api38_Update_updateUserTyping
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5c486927 serializeBlock:^bool (Api38_Update_updateUserTyping *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.action data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserTyping user_id:%@ action:%@)", self.userId, self.action];
}
@end
@implementation Api38_Update_updateChatUserTyping
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9a65ea1f serializeBlock:^bool (Api38_Update_updateChatUserTyping *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.action data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChatUserTyping chat_id:%@ user_id:%@ action:%@)", self.chatId, self.userId, self.action];
}
@end
@implementation Api38_Update_updateUserName
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa7332b73 serializeBlock:^bool (Api38_Update_updateUserName *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.firstName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lastName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.username data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserName user_id:%@ first_name:%d last_name:%d username:%d)", self.userId, (int)[self.firstName length], (int)[self.lastName length], (int)[self.username length]];
}
@end
@implementation Api38_Update_updateServiceNotification
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x382dd3e4 serializeBlock:^bool (Api38_Update_updateServiceNotification *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.message data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.media data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.popup data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateServiceNotification type:%d message:%d media:%@ popup:%@)", (int)[self.type length], (int)[self.message length], self.media, self.popup];
}
@end
@implementation Api38_Update_updatePrivacy
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xee3b272a serializeBlock:^bool (Api38_Update_updatePrivacy *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.key data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.rules data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatePrivacy key:%@ rules:%@)", self.key, self.rules];
}
@end
@implementation Api38_Update_updateUserPhone
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x12b9417b serializeBlock:^bool (Api38_Update_updateUserPhone *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.phone data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateUserPhone user_id:%@ phone:%d)", self.userId, (int)[self.phone length]];
}
@end
@implementation Api38_Update_updateNewMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1f2b0afd serializeBlock:^bool (Api38_Update_updateNewMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateNewMessage message:%@ pts:%@ pts_count:%@)", self.message, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateReadMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2e5ab668 serializeBlock:^bool (Api38_Update_updateReadMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateReadMessages messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateDeleteMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa20db0e5 serializeBlock:^bool (Api38_Update_updateDeleteMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateDeleteMessages messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateReadHistoryInbox
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9961fd5c serializeBlock:^bool (Api38_Update_updateReadHistoryInbox *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.maxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateReadHistoryInbox peer:%@ max_id:%@ pts:%@ pts_count:%@)", self.peer, self.maxId, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateReadHistoryOutbox
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2f2f21bf serializeBlock:^bool (Api38_Update_updateReadHistoryOutbox *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.maxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateReadHistoryOutbox peer:%@ max_id:%@ pts:%@ pts_count:%@)", self.peer, self.maxId, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateContactLink
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9d2e67c5 serializeBlock:^bool (Api38_Update_updateContactLink *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.myLink data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.foreignLink data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateContactLink user_id:%@ my_link:%@ foreign_link:%@)", self.userId, self.myLink, self.foreignLink];
}
@end
@implementation Api38_Update_updateReadMessagesContents
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x68c13933 serializeBlock:^bool (Api38_Update_updateReadMessagesContents *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateReadMessagesContents messages:%@ pts:%@ pts_count:%@)", self.messages, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateChatParticipantAdd
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xea4b0e5c serializeBlock:^bool (Api38_Update_updateChatParticipantAdd *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChatParticipantAdd chat_id:%@ user_id:%@ inviter_id:%@ date:%@ version:%@)", self.chatId, self.userId, self.inviterId, self.date, self.version];
}
@end
@implementation Api38_Update_updateWebPage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7f891213 serializeBlock:^bool (Api38_Update_updateWebPage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.webpage data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateWebPage webpage:%@ pts:%@ pts_count:%@)", self.webpage, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateChannelTooLong
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x60946422 serializeBlock:^bool (Api38_Update_updateChannelTooLong *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChannelTooLong channel_id:%@)", self.channelId];
}
@end
@implementation Api38_Update_updateChannel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb6d45656 serializeBlock:^bool (Api38_Update_updateChannel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChannel channel_id:%@)", self.channelId];
}
@end
@implementation Api38_Update_updateChannelGroup
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc36c1e3c serializeBlock:^bool (Api38_Update_updateChannelGroup *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.group data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChannelGroup channel_id:%@ group:%@)", self.channelId, self.group];
}
@end
@implementation Api38_Update_updateNewChannelMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x62ba04d9 serializeBlock:^bool (Api38_Update_updateNewChannelMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateNewChannelMessage message:%@ pts:%@ pts_count:%@)", self.message, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateReadChannelInbox
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4214f37f serializeBlock:^bool (Api38_Update_updateReadChannelInbox *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.maxId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateReadChannelInbox channel_id:%@ max_id:%@)", self.channelId, self.maxId];
}
@end
@implementation Api38_Update_updateDeleteChannelMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc37521c9 serializeBlock:^bool (Api38_Update_updateDeleteChannelMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateDeleteChannelMessages channel_id:%@ messages:%@ pts:%@ pts_count:%@)", self.channelId, self.messages, self.pts, self.ptsCount];
}
@end
@implementation Api38_Update_updateChannelMessageViews
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x98a12b4b serializeBlock:^bool (Api38_Update_updateChannelMessageViews *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.views data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateChannelMessageViews channel_id:%@ id:%@ views:%@)", self.channelId, self.pid, self.views];
}
@end
@interface Api38_ChannelParticipant ()
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_ChannelParticipant_channelParticipant ()
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChannelParticipant_channelParticipantSelf ()
@property (nonatomic, strong) NSNumber * inviterId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChannelParticipant_channelParticipantModerator ()
@property (nonatomic, strong) NSNumber * inviterId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChannelParticipant_channelParticipantEditor ()
@property (nonatomic, strong) NSNumber * inviterId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChannelParticipant_channelParticipantKicked ()
@property (nonatomic, strong) NSNumber * kickedBy;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ChannelParticipant_channelParticipantCreator ()
@end
@implementation Api38_ChannelParticipant
+ (Api38_ChannelParticipant_channelParticipant *)channelParticipantWithUserId:(NSNumber *)userId date:(NSNumber *)date
{
Api38_ChannelParticipant_channelParticipant *_object = [[Api38_ChannelParticipant_channelParticipant alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChannelParticipant_channelParticipantSelf *)channelParticipantSelfWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date
{
Api38_ChannelParticipant_channelParticipantSelf *_object = [[Api38_ChannelParticipant_channelParticipantSelf alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChannelParticipant_channelParticipantModerator *)channelParticipantModeratorWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date
{
Api38_ChannelParticipant_channelParticipantModerator *_object = [[Api38_ChannelParticipant_channelParticipantModerator alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChannelParticipant_channelParticipantEditor *)channelParticipantEditorWithUserId:(NSNumber *)userId inviterId:(NSNumber *)inviterId date:(NSNumber *)date
{
Api38_ChannelParticipant_channelParticipantEditor *_object = [[Api38_ChannelParticipant_channelParticipantEditor alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChannelParticipant_channelParticipantKicked *)channelParticipantKickedWithUserId:(NSNumber *)userId kickedBy:(NSNumber *)kickedBy date:(NSNumber *)date
{
Api38_ChannelParticipant_channelParticipantKicked *_object = [[Api38_ChannelParticipant_channelParticipantKicked alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.kickedBy = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:kickedBy] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChannelParticipant_channelParticipantCreator *)channelParticipantCreatorWithUserId:(NSNumber *)userId
{
Api38_ChannelParticipant_channelParticipantCreator *_object = [[Api38_ChannelParticipant_channelParticipantCreator alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ChannelParticipant_channelParticipant
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x15ebac1d serializeBlock:^bool (Api38_ChannelParticipant_channelParticipant *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipant user_id:%@ date:%@)", self.userId, self.date];
}
@end
@implementation Api38_ChannelParticipant_channelParticipantSelf
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa3289a6d serializeBlock:^bool (Api38_ChannelParticipant_channelParticipantSelf *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantSelf user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date];
}
@end
@implementation Api38_ChannelParticipant_channelParticipantModerator
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x91057fef serializeBlock:^bool (Api38_ChannelParticipant_channelParticipantModerator *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantModerator user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date];
}
@end
@implementation Api38_ChannelParticipant_channelParticipantEditor
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x98192d61 serializeBlock:^bool (Api38_ChannelParticipant_channelParticipantEditor *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantEditor user_id:%@ inviter_id:%@ date:%@)", self.userId, self.inviterId, self.date];
}
@end
@implementation Api38_ChannelParticipant_channelParticipantKicked
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8cc5e69a serializeBlock:^bool (Api38_ChannelParticipant_channelParticipantKicked *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.kickedBy data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantKicked user_id:%@ kicked_by:%@ date:%@)", self.userId, self.kickedBy, self.date];
}
@end
@implementation Api38_ChannelParticipant_channelParticipantCreator
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe3e2e1f9 serializeBlock:^bool (Api38_ChannelParticipant_channelParticipantCreator *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantCreator user_id:%@)", self.userId];
}
@end
@interface Api38_contacts_Blocked ()
@property (nonatomic, strong) NSArray * blocked;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Blocked_contacts_blocked ()
@end
@interface Api38_contacts_Blocked_contacts_blockedSlice ()
@property (nonatomic, strong) NSNumber * count;
@end
@implementation Api38_contacts_Blocked
+ (Api38_contacts_Blocked_contacts_blocked *)contacts_blockedWithBlocked:(NSArray *)blocked users:(NSArray *)users
{
Api38_contacts_Blocked_contacts_blocked *_object = [[Api38_contacts_Blocked_contacts_blocked alloc] init];
_object.blocked =
({
NSMutableArray *blocked_copy = [[NSMutableArray alloc] initWithCapacity:blocked.count];
for (id blocked_item in blocked)
{
[blocked_copy addObject:blocked_item];
}
id blocked_result = [Api38__Serializer addSerializerToObject:blocked_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; blocked_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_contacts_Blocked_contacts_blockedSlice *)contacts_blockedSliceWithCount:(NSNumber *)count blocked:(NSArray *)blocked users:(NSArray *)users
{
Api38_contacts_Blocked_contacts_blockedSlice *_object = [[Api38_contacts_Blocked_contacts_blockedSlice alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.blocked =
({
NSMutableArray *blocked_copy = [[NSMutableArray alloc] initWithCapacity:blocked.count];
for (id blocked_item in blocked)
{
[blocked_copy addObject:blocked_item];
}
id blocked_result = [Api38__Serializer addSerializerToObject:blocked_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; blocked_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_Blocked_contacts_blocked
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1c138d15 serializeBlock:^bool (Api38_contacts_Blocked_contacts_blocked *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.blocked data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.blocked blocked:%@ users:%@)", self.blocked, self.users];
}
@end
@implementation Api38_contacts_Blocked_contacts_blockedSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x900802a1 serializeBlock:^bool (Api38_contacts_Blocked_contacts_blockedSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.blocked data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.blockedSlice count:%@ blocked:%@ users:%@)", self.count, self.blocked, self.users];
}
@end
@interface Api38_Error ()
@property (nonatomic, strong) NSNumber * code;
@end
@interface Api38_Error_error ()
@property (nonatomic, strong) NSString * text;
@end
@interface Api38_Error_richError ()
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * nDescription;
@property (nonatomic, strong) NSString * debug;
@property (nonatomic, strong) NSString * requestParams;
@end
@implementation Api38_Error
+ (Api38_Error_error *)errorWithCode:(NSNumber *)code text:(NSString *)text
{
Api38_Error_error *_object = [[Api38_Error_error alloc] init];
_object.code = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:code] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.text = [Api38__Serializer addSerializerToObject:[text copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_Error_richError *)richErrorWithCode:(NSNumber *)code type:(NSString *)type nDescription:(NSString *)nDescription debug:(NSString *)debug requestParams:(NSString *)requestParams
{
Api38_Error_richError *_object = [[Api38_Error_richError alloc] init];
_object.code = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:code] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.nDescription = [Api38__Serializer addSerializerToObject:[nDescription copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.debug = [Api38__Serializer addSerializerToObject:[debug copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.requestParams = [Api38__Serializer addSerializerToObject:[requestParams copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_Error_error
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc4b9f9bb serializeBlock:^bool (Api38_Error_error *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.code data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.text data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(error code:%@ text:%d)", self.code, (int)[self.text length]];
}
@end
@implementation Api38_Error_richError
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x59aefc57 serializeBlock:^bool (Api38_Error_richError *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.code data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.nDescription data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.debug data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.requestParams data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(richError code:%@ type:%d n_description:%d debug:%d request_params:%d)", self.code, (int)[self.type length], (int)[self.nDescription length], (int)[self.debug length], (int)[self.requestParams length]];
}
@end
@interface Api38_ContactLocated ()
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * distance;
@end
@interface Api38_ContactLocated_contactLocated ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_GeoPoint * location;
@end
@interface Api38_ContactLocated_contactLocatedPreview ()
@property (nonatomic, strong) NSString * phash;
@property (nonatomic, strong) Api38_Bool * hidden;
@end
@implementation Api38_ContactLocated
+ (Api38_ContactLocated_contactLocated *)contactLocatedWithUserId:(NSNumber *)userId location:(Api38_GeoPoint *)location date:(NSNumber *)date distance:(NSNumber *)distance
{
Api38_ContactLocated_contactLocated *_object = [[Api38_ContactLocated_contactLocated alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.location = location;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.distance = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:distance] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ContactLocated_contactLocatedPreview *)contactLocatedPreviewWithPhash:(NSString *)phash hidden:(Api38_Bool *)hidden date:(NSNumber *)date distance:(NSNumber *)distance
{
Api38_ContactLocated_contactLocatedPreview *_object = [[Api38_ContactLocated_contactLocatedPreview alloc] init];
_object.phash = [Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.hidden = hidden;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.distance = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:distance] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ContactLocated_contactLocated
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe144acaf serializeBlock:^bool (Api38_ContactLocated_contactLocated *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.location data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.distance data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLocated user_id:%@ location:%@ date:%@ distance:%@)", self.userId, self.location, self.date, self.distance];
}
@end
@implementation Api38_ContactLocated_contactLocatedPreview
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc1257157 serializeBlock:^bool (Api38_ContactLocated_contactLocatedPreview *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.hidden data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.distance data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLocatedPreview hash:%d hidden:%@ date:%@ distance:%@)", (int)[self.phash length], self.hidden, self.date, self.distance];
}
@end
@interface Api38_KeyboardButton ()
@property (nonatomic, strong) NSString * text;
@end
@interface Api38_KeyboardButton_keyboardButton ()
@end
@implementation Api38_KeyboardButton
+ (Api38_KeyboardButton_keyboardButton *)keyboardButtonWithText:(NSString *)text
{
Api38_KeyboardButton_keyboardButton *_object = [[Api38_KeyboardButton_keyboardButton alloc] init];
_object.text = [Api38__Serializer addSerializerToObject:[text copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_KeyboardButton_keyboardButton
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa2fa4880 serializeBlock:^bool (Api38_KeyboardButton_keyboardButton *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.text data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(keyboardButton text:%d)", (int)[self.text length]];
}
@end
@interface Api38_ContactStatus ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_UserStatus * status;
@end
@interface Api38_ContactStatus_contactStatus ()
@end
@implementation Api38_ContactStatus
+ (Api38_ContactStatus_contactStatus *)contactStatusWithUserId:(NSNumber *)userId status:(Api38_UserStatus *)status
{
Api38_ContactStatus_contactStatus *_object = [[Api38_ContactStatus_contactStatus alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.status = status;
return _object;
}
@end
@implementation Api38_ContactStatus_contactStatus
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd3680c61 serializeBlock:^bool (Api38_ContactStatus_contactStatus *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.status data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactStatus user_id:%@ status:%@)", self.userId, self.status];
}
@end
@interface Api38_PhotoSize ()
@property (nonatomic, strong) NSString * type;
@end
@interface Api38_PhotoSize_photoSizeEmpty ()
@end
@interface Api38_PhotoSize_photoSize ()
@property (nonatomic, strong) Api38_FileLocation * location;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@property (nonatomic, strong) NSNumber * size;
@end
@interface Api38_PhotoSize_photoCachedSize ()
@property (nonatomic, strong) Api38_FileLocation * location;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@property (nonatomic, strong) NSData * bytes;
@end
@implementation Api38_PhotoSize
+ (Api38_PhotoSize_photoSizeEmpty *)photoSizeEmptyWithType:(NSString *)type
{
Api38_PhotoSize_photoSizeEmpty *_object = [[Api38_PhotoSize_photoSizeEmpty alloc] init];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_PhotoSize_photoSize *)photoSizeWithType:(NSString *)type location:(Api38_FileLocation *)location w:(NSNumber *)w h:(NSNumber *)h size:(NSNumber *)size
{
Api38_PhotoSize_photoSize *_object = [[Api38_PhotoSize_photoSize alloc] init];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.location = location;
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.size = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:size] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_PhotoSize_photoCachedSize *)photoCachedSizeWithType:(NSString *)type location:(Api38_FileLocation *)location w:(NSNumber *)w h:(NSNumber *)h bytes:(NSData *)bytes
{
Api38_PhotoSize_photoCachedSize *_object = [[Api38_PhotoSize_photoCachedSize alloc] init];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.location = location;
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_PhotoSize_photoSizeEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe17e23c serializeBlock:^bool (Api38_PhotoSize_photoSizeEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photoSizeEmpty type:%d)", (int)[self.type length]];
}
@end
@implementation Api38_PhotoSize_photoSize
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x77bfb61b serializeBlock:^bool (Api38_PhotoSize_photoSize *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.location data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.size data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photoSize type:%d location:%@ w:%@ h:%@ size:%@)", (int)[self.type length], self.location, self.w, self.h, self.size];
}
@end
@implementation Api38_PhotoSize_photoCachedSize
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe9a734fa serializeBlock:^bool (Api38_PhotoSize_photoCachedSize *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.location data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photoCachedSize type:%d location:%@ w:%@ h:%@ bytes:%d)", (int)[self.type length], self.location, self.w, self.h, (int)[self.bytes length]];
}
@end
@interface Api38_messages_Stickers ()
@end
@interface Api38_messages_Stickers_messages_stickersNotModified ()
@end
@interface Api38_messages_Stickers_messages_stickers ()
@property (nonatomic, strong) NSString * phash;
@property (nonatomic, strong) NSArray * stickers;
@end
@implementation Api38_messages_Stickers
+ (Api38_messages_Stickers_messages_stickersNotModified *)messages_stickersNotModified
{
Api38_messages_Stickers_messages_stickersNotModified *_object = [[Api38_messages_Stickers_messages_stickersNotModified alloc] init];
return _object;
}
+ (Api38_messages_Stickers_messages_stickers *)messages_stickersWithPhash:(NSString *)phash stickers:(NSArray *)stickers
{
Api38_messages_Stickers_messages_stickers *_object = [[Api38_messages_Stickers_messages_stickers alloc] init];
_object.phash = [Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.stickers =
({
NSMutableArray *stickers_copy = [[NSMutableArray alloc] initWithCapacity:stickers.count];
for (id stickers_item in stickers)
{
[stickers_copy addObject:stickers_item];
}
id stickers_result = [Api38__Serializer addSerializerToObject:stickers_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; stickers_result;});
return _object;
}
@end
@implementation Api38_messages_Stickers_messages_stickersNotModified
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf1749a22 serializeBlock:^bool (__unused Api38_messages_Stickers_messages_stickersNotModified *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.stickersNotModified)"];
}
@end
@implementation Api38_messages_Stickers_messages_stickers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8a8ecd32 serializeBlock:^bool (Api38_messages_Stickers_messages_stickers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.stickers data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.stickers hash:%d stickers:%@)", (int)[self.phash length], self.stickers];
}
@end
@interface Api38_GlobalPrivacySettings ()
@property (nonatomic, strong) Api38_Bool * noSuggestions;
@property (nonatomic, strong) Api38_Bool * hideContacts;
@property (nonatomic, strong) Api38_Bool * hideLocated;
@property (nonatomic, strong) Api38_Bool * hideLastVisit;
@end
@interface Api38_GlobalPrivacySettings_globalPrivacySettings ()
@end
@implementation Api38_GlobalPrivacySettings
+ (Api38_GlobalPrivacySettings_globalPrivacySettings *)globalPrivacySettingsWithNoSuggestions:(Api38_Bool *)noSuggestions hideContacts:(Api38_Bool *)hideContacts hideLocated:(Api38_Bool *)hideLocated hideLastVisit:(Api38_Bool *)hideLastVisit
{
Api38_GlobalPrivacySettings_globalPrivacySettings *_object = [[Api38_GlobalPrivacySettings_globalPrivacySettings alloc] init];
_object.noSuggestions = noSuggestions;
_object.hideContacts = hideContacts;
_object.hideLocated = hideLocated;
_object.hideLastVisit = hideLastVisit;
return _object;
}
@end
@implementation Api38_GlobalPrivacySettings_globalPrivacySettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x40f5c53a serializeBlock:^bool (Api38_GlobalPrivacySettings_globalPrivacySettings *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.noSuggestions data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.hideContacts data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.hideLocated data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.hideLastVisit data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(globalPrivacySettings no_suggestions:%@ hide_contacts:%@ hide_located:%@ hide_last_visit:%@)", self.noSuggestions, self.hideContacts, self.hideLocated, self.hideLastVisit];
}
@end
@interface Api38_FileLocation ()
@property (nonatomic, strong) NSNumber * volumeId;
@property (nonatomic, strong) NSNumber * localId;
@property (nonatomic, strong) NSNumber * secret;
@end
@interface Api38_FileLocation_fileLocationUnavailable ()
@end
@interface Api38_FileLocation_fileLocation ()
@property (nonatomic, strong) NSNumber * dcId;
@end
@implementation Api38_FileLocation
+ (Api38_FileLocation_fileLocationUnavailable *)fileLocationUnavailableWithVolumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret
{
Api38_FileLocation_fileLocationUnavailable *_object = [[Api38_FileLocation_fileLocationUnavailable alloc] init];
_object.volumeId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:volumeId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.localId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:localId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.secret = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:secret] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_FileLocation_fileLocation *)fileLocationWithDcId:(NSNumber *)dcId volumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret
{
Api38_FileLocation_fileLocation *_object = [[Api38_FileLocation_fileLocation alloc] init];
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.volumeId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:volumeId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.localId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:localId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.secret = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:secret] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_FileLocation_fileLocationUnavailable
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7c596b46 serializeBlock:^bool (Api38_FileLocation_fileLocationUnavailable *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.volumeId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.localId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.secret data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(fileLocationUnavailable volume_id:%@ local_id:%@ secret:%@)", self.volumeId, self.localId, self.secret];
}
@end
@implementation Api38_FileLocation_fileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x53d69076 serializeBlock:^bool (Api38_FileLocation_fileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.volumeId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.localId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.secret data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(fileLocation dc_id:%@ volume_id:%@ local_id:%@ secret:%@)", self.dcId, self.volumeId, self.localId, self.secret];
}
@end
@interface Api38_InputNotifyPeer ()
@end
@interface Api38_InputNotifyPeer_inputNotifyPeer ()
@property (nonatomic, strong) Api38_InputPeer * peer;
@end
@interface Api38_InputNotifyPeer_inputNotifyUsers ()
@end
@interface Api38_InputNotifyPeer_inputNotifyChats ()
@end
@interface Api38_InputNotifyPeer_inputNotifyAll ()
@end
@implementation Api38_InputNotifyPeer
+ (Api38_InputNotifyPeer_inputNotifyPeer *)inputNotifyPeerWithPeer:(Api38_InputPeer *)peer
{
Api38_InputNotifyPeer_inputNotifyPeer *_object = [[Api38_InputNotifyPeer_inputNotifyPeer alloc] init];
_object.peer = peer;
return _object;
}
+ (Api38_InputNotifyPeer_inputNotifyUsers *)inputNotifyUsers
{
Api38_InputNotifyPeer_inputNotifyUsers *_object = [[Api38_InputNotifyPeer_inputNotifyUsers alloc] init];
return _object;
}
+ (Api38_InputNotifyPeer_inputNotifyChats *)inputNotifyChats
{
Api38_InputNotifyPeer_inputNotifyChats *_object = [[Api38_InputNotifyPeer_inputNotifyChats alloc] init];
return _object;
}
+ (Api38_InputNotifyPeer_inputNotifyAll *)inputNotifyAll
{
Api38_InputNotifyPeer_inputNotifyAll *_object = [[Api38_InputNotifyPeer_inputNotifyAll alloc] init];
return _object;
}
@end
@implementation Api38_InputNotifyPeer_inputNotifyPeer
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb8bc5b0c serializeBlock:^bool (Api38_InputNotifyPeer_inputNotifyPeer *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputNotifyPeer peer:%@)", self.peer];
}
@end
@implementation Api38_InputNotifyPeer_inputNotifyUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x193b4417 serializeBlock:^bool (__unused Api38_InputNotifyPeer_inputNotifyUsers *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputNotifyUsers)"];
}
@end
@implementation Api38_InputNotifyPeer_inputNotifyChats
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4a95e84e serializeBlock:^bool (__unused Api38_InputNotifyPeer_inputNotifyChats *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputNotifyChats)"];
}
@end
@implementation Api38_InputNotifyPeer_inputNotifyAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa429b886 serializeBlock:^bool (__unused Api38_InputNotifyPeer_inputNotifyAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputNotifyAll)"];
}
@end
@interface Api38_EncryptedMessage ()
@property (nonatomic, strong) NSNumber * randomId;
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSData * bytes;
@end
@interface Api38_EncryptedMessage_encryptedMessage ()
@property (nonatomic, strong) Api38_EncryptedFile * file;
@end
@interface Api38_EncryptedMessage_encryptedMessageService ()
@end
@implementation Api38_EncryptedMessage
+ (Api38_EncryptedMessage_encryptedMessage *)encryptedMessageWithRandomId:(NSNumber *)randomId chatId:(NSNumber *)chatId date:(NSNumber *)date bytes:(NSData *)bytes file:(Api38_EncryptedFile *)file
{
Api38_EncryptedMessage_encryptedMessage *_object = [[Api38_EncryptedMessage_encryptedMessage alloc] init];
_object.randomId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.file = file;
return _object;
}
+ (Api38_EncryptedMessage_encryptedMessageService *)encryptedMessageServiceWithRandomId:(NSNumber *)randomId chatId:(NSNumber *)chatId date:(NSNumber *)date bytes:(NSData *)bytes
{
Api38_EncryptedMessage_encryptedMessageService *_object = [[Api38_EncryptedMessage_encryptedMessageService alloc] init];
_object.randomId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_EncryptedMessage_encryptedMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xed18c118 serializeBlock:^bool (Api38_EncryptedMessage_encryptedMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.randomId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedMessage random_id:%@ chat_id:%@ date:%@ bytes:%d file:%@)", self.randomId, self.chatId, self.date, (int)[self.bytes length], self.file];
}
@end
@implementation Api38_EncryptedMessage_encryptedMessageService
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x23734b06 serializeBlock:^bool (Api38_EncryptedMessage_encryptedMessageService *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.randomId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedMessageService random_id:%@ chat_id:%@ date:%@ bytes:%d)", self.randomId, self.chatId, self.date, (int)[self.bytes length]];
}
@end
@interface Api38_ChannelParticipantsFilter ()
@end
@interface Api38_ChannelParticipantsFilter_channelParticipantsRecent ()
@end
@interface Api38_ChannelParticipantsFilter_channelParticipantsAdmins ()
@end
@interface Api38_ChannelParticipantsFilter_channelParticipantsKicked ()
@end
@implementation Api38_ChannelParticipantsFilter
+ (Api38_ChannelParticipantsFilter_channelParticipantsRecent *)channelParticipantsRecent
{
Api38_ChannelParticipantsFilter_channelParticipantsRecent *_object = [[Api38_ChannelParticipantsFilter_channelParticipantsRecent alloc] init];
return _object;
}
+ (Api38_ChannelParticipantsFilter_channelParticipantsAdmins *)channelParticipantsAdmins
{
Api38_ChannelParticipantsFilter_channelParticipantsAdmins *_object = [[Api38_ChannelParticipantsFilter_channelParticipantsAdmins alloc] init];
return _object;
}
+ (Api38_ChannelParticipantsFilter_channelParticipantsKicked *)channelParticipantsKicked
{
Api38_ChannelParticipantsFilter_channelParticipantsKicked *_object = [[Api38_ChannelParticipantsFilter_channelParticipantsKicked alloc] init];
return _object;
}
@end
@implementation Api38_ChannelParticipantsFilter_channelParticipantsRecent
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xde3f3c79 serializeBlock:^bool (__unused Api38_ChannelParticipantsFilter_channelParticipantsRecent *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantsRecent)"];
}
@end
@implementation Api38_ChannelParticipantsFilter_channelParticipantsAdmins
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb4608969 serializeBlock:^bool (__unused Api38_ChannelParticipantsFilter_channelParticipantsAdmins *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantsAdmins)"];
}
@end
@implementation Api38_ChannelParticipantsFilter_channelParticipantsKicked
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3c37bb7a serializeBlock:^bool (__unused Api38_ChannelParticipantsFilter_channelParticipantsKicked *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelParticipantsKicked)"];
}
@end
@interface Api38_WebPage ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_WebPage_webPageEmpty ()
@end
@interface Api38_WebPage_webPagePending ()
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_WebPage_webPage ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSString * url;
@property (nonatomic, strong) NSString * displayUrl;
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * siteName;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * pdescription;
@property (nonatomic, strong) Api38_Photo * photo;
@property (nonatomic, strong) NSString * embedUrl;
@property (nonatomic, strong) NSString * embedType;
@property (nonatomic, strong) NSNumber * embedWidth;
@property (nonatomic, strong) NSNumber * embedHeight;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSString * author;
@property (nonatomic, strong) Api38_Document * document;
@end
@implementation Api38_WebPage
+ (Api38_WebPage_webPageEmpty *)webPageEmptyWithPid:(NSNumber *)pid
{
Api38_WebPage_webPageEmpty *_object = [[Api38_WebPage_webPageEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_WebPage_webPagePending *)webPagePendingWithPid:(NSNumber *)pid date:(NSNumber *)date
{
Api38_WebPage_webPagePending *_object = [[Api38_WebPage_webPagePending alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_WebPage_webPage *)webPageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid url:(NSString *)url displayUrl:(NSString *)displayUrl type:(NSString *)type siteName:(NSString *)siteName title:(NSString *)title pdescription:(NSString *)pdescription photo:(Api38_Photo *)photo embedUrl:(NSString *)embedUrl embedType:(NSString *)embedType embedWidth:(NSNumber *)embedWidth embedHeight:(NSNumber *)embedHeight duration:(NSNumber *)duration author:(NSString *)author document:(Api38_Document *)document
{
Api38_WebPage_webPage *_object = [[Api38_WebPage_webPage alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.url = [Api38__Serializer addSerializerToObject:[url copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.displayUrl = [Api38__Serializer addSerializerToObject:[displayUrl copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.siteName = [Api38__Serializer addSerializerToObject:[siteName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pdescription = [Api38__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.photo = photo;
_object.embedUrl = [Api38__Serializer addSerializerToObject:[embedUrl copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.embedType = [Api38__Serializer addSerializerToObject:[embedType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.embedWidth = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:embedWidth] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.embedHeight = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:embedHeight] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.author = [Api38__Serializer addSerializerToObject:[author copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.document = document;
return _object;
}
@end
@implementation Api38_WebPage_webPageEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xeb1477e8 serializeBlock:^bool (Api38_WebPage_webPageEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(webPageEmpty id:%@)", self.pid];
}
@end
@implementation Api38_WebPage_webPagePending
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc586da1c serializeBlock:^bool (Api38_WebPage_webPagePending *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(webPagePending id:%@ date:%@)", self.pid, self.date];
}
@end
@implementation Api38_WebPage_webPage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xca820ed7 serializeBlock:^bool (Api38_WebPage_webPage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.url data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.displayUrl data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.siteName data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:object.pdescription data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 4)) {
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 5)) {
if (![Api38__Environment serializeObject:object.embedUrl data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 5)) {
if (![Api38__Environment serializeObject:object.embedType data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 6)) {
if (![Api38__Environment serializeObject:object.embedWidth data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 6)) {
if (![Api38__Environment serializeObject:object.embedHeight data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 7)) {
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 8)) {
if (![Api38__Environment serializeObject:object.author data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 9)) {
if (![Api38__Environment serializeObject:object.document data:data addSignature:true])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(webPage flags:%@ id:%@ url:%d display_url:%d type:%d site_name:%d title:%d description:%d photo:%@ embed_url:%d embed_type:%d embed_width:%@ embed_height:%@ duration:%@ author:%d document:%@)", self.flags, self.pid, (int)[self.url length], (int)[self.displayUrl length], (int)[self.type length], (int)[self.siteName length], (int)[self.title length], (int)[self.pdescription length], self.photo, (int)[self.embedUrl length], (int)[self.embedType length], self.embedWidth, self.embedHeight, self.duration, (int)[self.author length], self.document];
}
@end
@interface Api38_KeyboardButtonRow ()
@property (nonatomic, strong) NSArray * buttons;
@end
@interface Api38_KeyboardButtonRow_keyboardButtonRow ()
@end
@implementation Api38_KeyboardButtonRow
+ (Api38_KeyboardButtonRow_keyboardButtonRow *)keyboardButtonRowWithButtons:(NSArray *)buttons
{
Api38_KeyboardButtonRow_keyboardButtonRow *_object = [[Api38_KeyboardButtonRow_keyboardButtonRow alloc] init];
_object.buttons =
({
NSMutableArray *buttons_copy = [[NSMutableArray alloc] initWithCapacity:buttons.count];
for (id buttons_item in buttons)
{
[buttons_copy addObject:buttons_item];
}
id buttons_result = [Api38__Serializer addSerializerToObject:buttons_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; buttons_result;});
return _object;
}
@end
@implementation Api38_KeyboardButtonRow_keyboardButtonRow
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x77608b83 serializeBlock:^bool (Api38_KeyboardButtonRow_keyboardButtonRow *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.buttons data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(keyboardButtonRow buttons:%@)", self.buttons];
}
@end
@interface Api38_StickerSet ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * shortName;
@property (nonatomic, strong) NSNumber * count;
@property (nonatomic, strong) NSNumber * nHash;
@end
@interface Api38_StickerSet_stickerSet ()
@end
@implementation Api38_StickerSet
+ (Api38_StickerSet_stickerSet *)stickerSetWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash title:(NSString *)title shortName:(NSString *)shortName count:(NSNumber *)count nHash:(NSNumber *)nHash
{
Api38_StickerSet_stickerSet *_object = [[Api38_StickerSet_stickerSet alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.shortName = [Api38__Serializer addSerializerToObject:[shortName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.nHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:nHash] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_StickerSet_stickerSet
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcd303b41 serializeBlock:^bool (Api38_StickerSet_stickerSet *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.shortName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.nHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(stickerSet flags:%@ id:%@ access_hash:%@ title:%d short_name:%d count:%@ n_hash:%@)", self.flags, self.pid, self.accessHash, (int)[self.title length], (int)[self.shortName length], self.count, self.nHash];
}
@end
@interface Api38_photos_Photo ()
@property (nonatomic, strong) Api38_Photo * photo;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_photos_Photo_photos_photo ()
@end
@implementation Api38_photos_Photo
+ (Api38_photos_Photo_photos_photo *)photos_photoWithPhoto:(Api38_Photo *)photo users:(NSArray *)users
{
Api38_photos_Photo_photos_photo *_object = [[Api38_photos_Photo_photos_photo alloc] init];
_object.photo = photo;
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_photos_Photo_photos_photo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x20212ca8 serializeBlock:^bool (Api38_photos_Photo_photos_photo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photos.photo photo:%@ users:%@)", self.photo, self.users];
}
@end
@interface Api38_InputContact ()
@property (nonatomic, strong) NSNumber * clientId;
@property (nonatomic, strong) NSString * phone;
@property (nonatomic, strong) NSString * firstName;
@property (nonatomic, strong) NSString * lastName;
@end
@interface Api38_InputContact_inputPhoneContact ()
@end
@implementation Api38_InputContact
+ (Api38_InputContact_inputPhoneContact *)inputPhoneContactWithClientId:(NSNumber *)clientId phone:(NSString *)phone firstName:(NSString *)firstName lastName:(NSString *)lastName
{
Api38_InputContact_inputPhoneContact *_object = [[Api38_InputContact_inputPhoneContact alloc] init];
_object.clientId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:clientId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.phone = [Api38__Serializer addSerializerToObject:[phone copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.firstName = [Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.lastName = [Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_InputContact_inputPhoneContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf392b7f4 serializeBlock:^bool (Api38_InputContact_inputPhoneContact *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.clientId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.phone data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.firstName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lastName data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhoneContact client_id:%@ phone:%d first_name:%d last_name:%d)", self.clientId, (int)[self.phone length], (int)[self.firstName length], (int)[self.lastName length]];
}
@end
@interface Api38_contacts_Contacts ()
@end
@interface Api38_contacts_Contacts_contacts_contacts ()
@property (nonatomic, strong) NSArray * contacts;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Contacts_contacts_contactsNotModified ()
@end
@implementation Api38_contacts_Contacts
+ (Api38_contacts_Contacts_contacts_contacts *)contacts_contactsWithContacts:(NSArray *)contacts users:(NSArray *)users
{
Api38_contacts_Contacts_contacts_contacts *_object = [[Api38_contacts_Contacts_contacts_contacts alloc] init];
_object.contacts =
({
NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count];
for (id contacts_item in contacts)
{
[contacts_copy addObject:contacts_item];
}
id contacts_result = [Api38__Serializer addSerializerToObject:contacts_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; contacts_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_contacts_Contacts_contacts_contactsNotModified *)contacts_contactsNotModified
{
Api38_contacts_Contacts_contacts_contactsNotModified *_object = [[Api38_contacts_Contacts_contacts_contactsNotModified alloc] init];
return _object;
}
@end
@implementation Api38_contacts_Contacts_contacts_contacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6f8b8cb2 serializeBlock:^bool (Api38_contacts_Contacts_contacts_contacts *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.contacts data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.contacts contacts:%@ users:%@)", self.contacts, self.users];
}
@end
@implementation Api38_contacts_Contacts_contacts_contactsNotModified
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb74ba9d2 serializeBlock:^bool (__unused Api38_contacts_Contacts_contacts_contactsNotModified *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.contactsNotModified)"];
}
@end
@interface Api38_ChannelMessagesFilter ()
@end
@interface Api38_ChannelMessagesFilter_channelMessagesFilterEmpty ()
@end
@interface Api38_ChannelMessagesFilter_channelMessagesFilter ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSArray * ranges;
@end
@interface Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed ()
@end
@implementation Api38_ChannelMessagesFilter
+ (Api38_ChannelMessagesFilter_channelMessagesFilterEmpty *)channelMessagesFilterEmpty
{
Api38_ChannelMessagesFilter_channelMessagesFilterEmpty *_object = [[Api38_ChannelMessagesFilter_channelMessagesFilterEmpty alloc] init];
return _object;
}
+ (Api38_ChannelMessagesFilter_channelMessagesFilter *)channelMessagesFilterWithFlags:(NSNumber *)flags ranges:(NSArray *)ranges
{
Api38_ChannelMessagesFilter_channelMessagesFilter *_object = [[Api38_ChannelMessagesFilter_channelMessagesFilter alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ranges =
({
NSMutableArray *ranges_copy = [[NSMutableArray alloc] initWithCapacity:ranges.count];
for (id ranges_item in ranges)
{
[ranges_copy addObject:ranges_item];
}
id ranges_result = [Api38__Serializer addSerializerToObject:ranges_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; ranges_result;});
return _object;
}
+ (Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed *)channelMessagesFilterCollapsed
{
Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed *_object = [[Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed alloc] init];
return _object;
}
@end
@implementation Api38_ChannelMessagesFilter_channelMessagesFilterEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x94d42ee7 serializeBlock:^bool (__unused Api38_ChannelMessagesFilter_channelMessagesFilterEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelMessagesFilterEmpty)"];
}
@end
@implementation Api38_ChannelMessagesFilter_channelMessagesFilter
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcd77d957 serializeBlock:^bool (Api38_ChannelMessagesFilter_channelMessagesFilter *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ranges data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelMessagesFilter flags:%@ ranges:%@)", self.flags, self.ranges];
}
@end
@implementation Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfa01232e serializeBlock:^bool (__unused Api38_ChannelMessagesFilter_channelMessagesFilterCollapsed *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(channelMessagesFilterCollapsed)"];
}
@end
@interface Api38_auth_PasswordRecovery ()
@property (nonatomic, strong) NSString * emailPattern;
@end
@interface Api38_auth_PasswordRecovery_auth_passwordRecovery ()
@end
@implementation Api38_auth_PasswordRecovery
+ (Api38_auth_PasswordRecovery_auth_passwordRecovery *)auth_passwordRecoveryWithEmailPattern:(NSString *)emailPattern
{
Api38_auth_PasswordRecovery_auth_passwordRecovery *_object = [[Api38_auth_PasswordRecovery_auth_passwordRecovery alloc] init];
_object.emailPattern = [Api38__Serializer addSerializerToObject:[emailPattern copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_auth_PasswordRecovery_auth_passwordRecovery
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x137948a5 serializeBlock:^bool (Api38_auth_PasswordRecovery_auth_passwordRecovery *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.emailPattern data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.passwordRecovery email_pattern:%d)", (int)[self.emailPattern length]];
}
@end
@interface Api38_InputDocument ()
@end
@interface Api38_InputDocument_inputDocumentEmpty ()
@end
@interface Api38_InputDocument_inputDocument ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputDocument
+ (Api38_InputDocument_inputDocumentEmpty *)inputDocumentEmpty
{
Api38_InputDocument_inputDocumentEmpty *_object = [[Api38_InputDocument_inputDocumentEmpty alloc] init];
return _object;
}
+ (Api38_InputDocument_inputDocument *)inputDocumentWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputDocument_inputDocument *_object = [[Api38_InputDocument_inputDocument alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputDocument_inputDocumentEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x72f0eaae serializeBlock:^bool (__unused Api38_InputDocument_inputDocumentEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputDocumentEmpty)"];
}
@end
@implementation Api38_InputDocument_inputDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x18798952 serializeBlock:^bool (Api38_InputDocument_inputDocument *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputDocument id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_contacts_ResolvedPeer ()
@property (nonatomic, strong) Api38_Peer * peer;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_ResolvedPeer_contacts_resolvedPeer ()
@end
@implementation Api38_contacts_ResolvedPeer
+ (Api38_contacts_ResolvedPeer_contacts_resolvedPeer *)contacts_resolvedPeerWithPeer:(Api38_Peer *)peer chats:(NSArray *)chats users:(NSArray *)users
{
Api38_contacts_ResolvedPeer_contacts_resolvedPeer *_object = [[Api38_contacts_ResolvedPeer_contacts_resolvedPeer alloc] init];
_object.peer = peer;
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_ResolvedPeer_contacts_resolvedPeer
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7f077ad9 serializeBlock:^bool (Api38_contacts_ResolvedPeer_contacts_resolvedPeer *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.resolvedPeer peer:%@ chats:%@ users:%@)", self.peer, self.chats, self.users];
}
@end
@interface Api38_InputMedia ()
@end
@interface Api38_InputMedia_inputMediaEmpty ()
@end
@interface Api38_InputMedia_inputMediaGeoPoint ()
@property (nonatomic, strong) Api38_InputGeoPoint * geoPoint;
@end
@interface Api38_InputMedia_inputMediaContact ()
@property (nonatomic, strong) NSString * phoneNumber;
@property (nonatomic, strong) NSString * firstName;
@property (nonatomic, strong) NSString * lastName;
@end
@interface Api38_InputMedia_inputMediaAudio ()
@property (nonatomic, strong) Api38_InputAudio * pid;
@end
@interface Api38_InputMedia_inputMediaDocument ()
@property (nonatomic, strong) Api38_InputDocument * pid;
@end
@interface Api38_InputMedia_inputMediaUploadedAudio ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSString * mimeType;
@end
@interface Api38_InputMedia_inputMediaUploadedDocument ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSArray * attributes;
@end
@interface Api38_InputMedia_inputMediaUploadedThumbDocument ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) Api38_InputFile * thumb;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSArray * attributes;
@end
@interface Api38_InputMedia_inputMediaUploadedPhoto ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_InputMedia_inputMediaPhoto ()
@property (nonatomic, strong) Api38_InputPhoto * pid;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_InputMedia_inputMediaVideo ()
@property (nonatomic, strong) Api38_InputVideo * pid;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_InputMedia_inputMediaVenue ()
@property (nonatomic, strong) Api38_InputGeoPoint * geoPoint;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * address;
@property (nonatomic, strong) NSString * provider;
@property (nonatomic, strong) NSString * venueId;
@end
@interface Api38_InputMedia_inputMediaUploadedVideo ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_InputMedia_inputMediaUploadedThumbVideo ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) Api38_InputFile * thumb;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSString * caption;
@end
@implementation Api38_InputMedia
+ (Api38_InputMedia_inputMediaEmpty *)inputMediaEmpty
{
Api38_InputMedia_inputMediaEmpty *_object = [[Api38_InputMedia_inputMediaEmpty alloc] init];
return _object;
}
+ (Api38_InputMedia_inputMediaGeoPoint *)inputMediaGeoPointWithGeoPoint:(Api38_InputGeoPoint *)geoPoint
{
Api38_InputMedia_inputMediaGeoPoint *_object = [[Api38_InputMedia_inputMediaGeoPoint alloc] init];
_object.geoPoint = geoPoint;
return _object;
}
+ (Api38_InputMedia_inputMediaContact *)inputMediaContactWithPhoneNumber:(NSString *)phoneNumber firstName:(NSString *)firstName lastName:(NSString *)lastName
{
Api38_InputMedia_inputMediaContact *_object = [[Api38_InputMedia_inputMediaContact alloc] init];
_object.phoneNumber = [Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.firstName = [Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.lastName = [Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaAudio *)inputMediaAudioWithPid:(Api38_InputAudio *)pid
{
Api38_InputMedia_inputMediaAudio *_object = [[Api38_InputMedia_inputMediaAudio alloc] init];
_object.pid = pid;
return _object;
}
+ (Api38_InputMedia_inputMediaDocument *)inputMediaDocumentWithPid:(Api38_InputDocument *)pid
{
Api38_InputMedia_inputMediaDocument *_object = [[Api38_InputMedia_inputMediaDocument alloc] init];
_object.pid = pid;
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedAudio *)inputMediaUploadedAudioWithFile:(Api38_InputFile *)file duration:(NSNumber *)duration mimeType:(NSString *)mimeType
{
Api38_InputMedia_inputMediaUploadedAudio *_object = [[Api38_InputMedia_inputMediaUploadedAudio alloc] init];
_object.file = file;
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedDocument *)inputMediaUploadedDocumentWithFile:(Api38_InputFile *)file mimeType:(NSString *)mimeType attributes:(NSArray *)attributes
{
Api38_InputMedia_inputMediaUploadedDocument *_object = [[Api38_InputMedia_inputMediaUploadedDocument alloc] init];
_object.file = file;
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.attributes =
({
NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count];
for (id attributes_item in attributes)
{
[attributes_copy addObject:attributes_item];
}
id attributes_result = [Api38__Serializer addSerializerToObject:attributes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; attributes_result;});
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedThumbDocument *)inputMediaUploadedThumbDocumentWithFile:(Api38_InputFile *)file thumb:(Api38_InputFile *)thumb mimeType:(NSString *)mimeType attributes:(NSArray *)attributes
{
Api38_InputMedia_inputMediaUploadedThumbDocument *_object = [[Api38_InputMedia_inputMediaUploadedThumbDocument alloc] init];
_object.file = file;
_object.thumb = thumb;
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.attributes =
({
NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count];
for (id attributes_item in attributes)
{
[attributes_copy addObject:attributes_item];
}
id attributes_result = [Api38__Serializer addSerializerToObject:attributes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; attributes_result;});
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedPhoto *)inputMediaUploadedPhotoWithFile:(Api38_InputFile *)file caption:(NSString *)caption
{
Api38_InputMedia_inputMediaUploadedPhoto *_object = [[Api38_InputMedia_inputMediaUploadedPhoto alloc] init];
_object.file = file;
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaPhoto *)inputMediaPhotoWithPid:(Api38_InputPhoto *)pid caption:(NSString *)caption
{
Api38_InputMedia_inputMediaPhoto *_object = [[Api38_InputMedia_inputMediaPhoto alloc] init];
_object.pid = pid;
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaVideo *)inputMediaVideoWithPid:(Api38_InputVideo *)pid caption:(NSString *)caption
{
Api38_InputMedia_inputMediaVideo *_object = [[Api38_InputMedia_inputMediaVideo alloc] init];
_object.pid = pid;
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaVenue *)inputMediaVenueWithGeoPoint:(Api38_InputGeoPoint *)geoPoint title:(NSString *)title address:(NSString *)address provider:(NSString *)provider venueId:(NSString *)venueId
{
Api38_InputMedia_inputMediaVenue *_object = [[Api38_InputMedia_inputMediaVenue alloc] init];
_object.geoPoint = geoPoint;
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.address = [Api38__Serializer addSerializerToObject:[address copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.provider = [Api38__Serializer addSerializerToObject:[provider copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.venueId = [Api38__Serializer addSerializerToObject:[venueId copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedVideo *)inputMediaUploadedVideoWithFile:(Api38_InputFile *)file duration:(NSNumber *)duration w:(NSNumber *)w h:(NSNumber *)h mimeType:(NSString *)mimeType caption:(NSString *)caption
{
Api38_InputMedia_inputMediaUploadedVideo *_object = [[Api38_InputMedia_inputMediaUploadedVideo alloc] init];
_object.file = file;
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_InputMedia_inputMediaUploadedThumbVideo *)inputMediaUploadedThumbVideoWithFile:(Api38_InputFile *)file thumb:(Api38_InputFile *)thumb duration:(NSNumber *)duration w:(NSNumber *)w h:(NSNumber *)h mimeType:(NSString *)mimeType caption:(NSString *)caption
{
Api38_InputMedia_inputMediaUploadedThumbVideo *_object = [[Api38_InputMedia_inputMediaUploadedThumbVideo alloc] init];
_object.file = file;
_object.thumb = thumb;
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_InputMedia_inputMediaEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9664f57f serializeBlock:^bool (__unused Api38_InputMedia_inputMediaEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaEmpty)"];
}
@end
@implementation Api38_InputMedia_inputMediaGeoPoint
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf9c44144 serializeBlock:^bool (Api38_InputMedia_inputMediaGeoPoint *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.geoPoint data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaGeoPoint geo_point:%@)", self.geoPoint];
}
@end
@implementation Api38_InputMedia_inputMediaContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa6e45987 serializeBlock:^bool (Api38_InputMedia_inputMediaContact *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneNumber data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.firstName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lastName data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaContact phone_number:%d first_name:%d last_name:%d)", (int)[self.phoneNumber length], (int)[self.firstName length], (int)[self.lastName length]];
}
@end
@implementation Api38_InputMedia_inputMediaAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x89938781 serializeBlock:^bool (Api38_InputMedia_inputMediaAudio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaAudio id:%@)", self.pid];
}
@end
@implementation Api38_InputMedia_inputMediaDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd184e841 serializeBlock:^bool (Api38_InputMedia_inputMediaDocument *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaDocument id:%@)", self.pid];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4e498cab serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedAudio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedAudio file:%@ duration:%@ mime_type:%d)", self.file, self.duration, (int)[self.mimeType length]];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xffe76b78 serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedDocument *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.attributes data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedDocument file:%@ mime_type:%d attributes:%@)", self.file, (int)[self.mimeType length], self.attributes];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedThumbDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x41481486 serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedThumbDocument *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.thumb data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.attributes data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedThumbDocument file:%@ thumb:%@ mime_type:%d attributes:%@)", self.file, self.thumb, (int)[self.mimeType length], self.attributes];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf7aff1c0 serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedPhoto file:%@ caption:%d)", self.file, (int)[self.caption length]];
}
@end
@implementation Api38_InputMedia_inputMediaPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe9bfb4f3 serializeBlock:^bool (Api38_InputMedia_inputMediaPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaPhoto id:%@ caption:%d)", self.pid, (int)[self.caption length]];
}
@end
@implementation Api38_InputMedia_inputMediaVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x936a4ebd serializeBlock:^bool (Api38_InputMedia_inputMediaVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaVideo id:%@ caption:%d)", self.pid, (int)[self.caption length]];
}
@end
@implementation Api38_InputMedia_inputMediaVenue
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2827a81a serializeBlock:^bool (Api38_InputMedia_inputMediaVenue *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.geoPoint data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.address data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.provider data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.venueId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaVenue geo_point:%@ title:%d address:%d provider:%d venue_id:%d)", self.geoPoint, (int)[self.title length], (int)[self.address length], (int)[self.provider length], (int)[self.venueId length]];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x82713fdf serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedVideo file:%@ duration:%@ w:%@ h:%@ mime_type:%d caption:%d)", self.file, self.duration, self.w, self.h, (int)[self.mimeType length], (int)[self.caption length]];
}
@end
@implementation Api38_InputMedia_inputMediaUploadedThumbVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7780ddf9 serializeBlock:^bool (Api38_InputMedia_inputMediaUploadedThumbVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.thumb data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMediaUploadedThumbVideo file:%@ thumb:%@ duration:%@ w:%@ h:%@ mime_type:%d caption:%d)", self.file, self.thumb, self.duration, self.w, self.h, (int)[self.mimeType length], (int)[self.caption length]];
}
@end
@interface Api38_InputPeer ()
@end
@interface Api38_InputPeer_inputPeerEmpty ()
@end
@interface Api38_InputPeer_inputPeerSelf ()
@end
@interface Api38_InputPeer_inputPeerChat ()
@property (nonatomic, strong) NSNumber * chatId;
@end
@interface Api38_InputPeer_inputPeerUser ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputPeer_inputPeerChannel ()
@property (nonatomic, strong) NSNumber * channelId;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputPeer
+ (Api38_InputPeer_inputPeerEmpty *)inputPeerEmpty
{
Api38_InputPeer_inputPeerEmpty *_object = [[Api38_InputPeer_inputPeerEmpty alloc] init];
return _object;
}
+ (Api38_InputPeer_inputPeerSelf *)inputPeerSelf
{
Api38_InputPeer_inputPeerSelf *_object = [[Api38_InputPeer_inputPeerSelf alloc] init];
return _object;
}
+ (Api38_InputPeer_inputPeerChat *)inputPeerChatWithChatId:(NSNumber *)chatId
{
Api38_InputPeer_inputPeerChat *_object = [[Api38_InputPeer_inputPeerChat alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_InputPeer_inputPeerUser *)inputPeerUserWithUserId:(NSNumber *)userId accessHash:(NSNumber *)accessHash
{
Api38_InputPeer_inputPeerUser *_object = [[Api38_InputPeer_inputPeerUser alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputPeer_inputPeerChannel *)inputPeerChannelWithChannelId:(NSNumber *)channelId accessHash:(NSNumber *)accessHash
{
Api38_InputPeer_inputPeerChannel *_object = [[Api38_InputPeer_inputPeerChannel alloc] init];
_object.channelId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:channelId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputPeer_inputPeerEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7f3b18ea serializeBlock:^bool (__unused Api38_InputPeer_inputPeerEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerEmpty)"];
}
@end
@implementation Api38_InputPeer_inputPeerSelf
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7da07ec9 serializeBlock:^bool (__unused Api38_InputPeer_inputPeerSelf *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerSelf)"];
}
@end
@implementation Api38_InputPeer_inputPeerChat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x179be863 serializeBlock:^bool (Api38_InputPeer_inputPeerChat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerChat chat_id:%@)", self.chatId];
}
@end
@implementation Api38_InputPeer_inputPeerUser
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7b8e7de6 serializeBlock:^bool (Api38_InputPeer_inputPeerUser *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerUser user_id:%@ access_hash:%@)", self.userId, self.accessHash];
}
@end
@implementation Api38_InputPeer_inputPeerChannel
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x20adaef8 serializeBlock:^bool (Api38_InputPeer_inputPeerChannel *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.channelId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerChannel channel_id:%@ access_hash:%@)", self.channelId, self.accessHash];
}
@end
@interface Api38_Contact ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) Api38_Bool * mutual;
@end
@interface Api38_Contact_contact ()
@end
@implementation Api38_Contact
+ (Api38_Contact_contact *)contactWithUserId:(NSNumber *)userId mutual:(Api38_Bool *)mutual
{
Api38_Contact_contact *_object = [[Api38_Contact_contact alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mutual = mutual;
return _object;
}
@end
@implementation Api38_Contact_contact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf911c994 serializeBlock:^bool (Api38_Contact_contact *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mutual data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contact user_id:%@ mutual:%@)", self.userId, self.mutual];
}
@end
@interface Api38_messages_Chats ()
@property (nonatomic, strong) NSArray * chats;
@end
@interface Api38_messages_Chats_messages_chats ()
@end
@implementation Api38_messages_Chats
+ (Api38_messages_Chats_messages_chats *)messages_chatsWithChats:(NSArray *)chats
{
Api38_messages_Chats_messages_chats *_object = [[Api38_messages_Chats_messages_chats alloc] init];
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
return _object;
}
@end
@implementation Api38_messages_Chats_messages_chats
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x64ff9fd5 serializeBlock:^bool (Api38_messages_Chats_messages_chats *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.chats chats:%@)", self.chats];
}
@end
@interface Api38_contacts_MyLink ()
@end
@interface Api38_contacts_MyLink_contacts_myLinkEmpty ()
@end
@interface Api38_contacts_MyLink_contacts_myLinkRequested ()
@property (nonatomic, strong) Api38_Bool * contact;
@end
@interface Api38_contacts_MyLink_contacts_myLinkContact ()
@end
@implementation Api38_contacts_MyLink
+ (Api38_contacts_MyLink_contacts_myLinkEmpty *)contacts_myLinkEmpty
{
Api38_contacts_MyLink_contacts_myLinkEmpty *_object = [[Api38_contacts_MyLink_contacts_myLinkEmpty alloc] init];
return _object;
}
+ (Api38_contacts_MyLink_contacts_myLinkRequested *)contacts_myLinkRequestedWithContact:(Api38_Bool *)contact
{
Api38_contacts_MyLink_contacts_myLinkRequested *_object = [[Api38_contacts_MyLink_contacts_myLinkRequested alloc] init];
_object.contact = contact;
return _object;
}
+ (Api38_contacts_MyLink_contacts_myLinkContact *)contacts_myLinkContact
{
Api38_contacts_MyLink_contacts_myLinkContact *_object = [[Api38_contacts_MyLink_contacts_myLinkContact alloc] init];
return _object;
}
@end
@implementation Api38_contacts_MyLink_contacts_myLinkEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd22a1c60 serializeBlock:^bool (__unused Api38_contacts_MyLink_contacts_myLinkEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.myLinkEmpty)"];
}
@end
@implementation Api38_contacts_MyLink_contacts_myLinkRequested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6c69efee serializeBlock:^bool (Api38_contacts_MyLink_contacts_myLinkRequested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.contact data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.myLinkRequested contact:%@)", self.contact];
}
@end
@implementation Api38_contacts_MyLink_contacts_myLinkContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc240ebd9 serializeBlock:^bool (__unused Api38_contacts_MyLink_contacts_myLinkContact *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.myLinkContact)"];
}
@end
@interface Api38_InputPrivacyRule ()
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueAllowContacts ()
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueAllowAll ()
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueAllowUsers ()
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts ()
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueDisallowAll ()
@end
@interface Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers ()
@property (nonatomic, strong) NSArray * users;
@end
@implementation Api38_InputPrivacyRule
+ (Api38_InputPrivacyRule_inputPrivacyValueAllowContacts *)inputPrivacyValueAllowContacts
{
Api38_InputPrivacyRule_inputPrivacyValueAllowContacts *_object = [[Api38_InputPrivacyRule_inputPrivacyValueAllowContacts alloc] init];
return _object;
}
+ (Api38_InputPrivacyRule_inputPrivacyValueAllowAll *)inputPrivacyValueAllowAll
{
Api38_InputPrivacyRule_inputPrivacyValueAllowAll *_object = [[Api38_InputPrivacyRule_inputPrivacyValueAllowAll alloc] init];
return _object;
}
+ (Api38_InputPrivacyRule_inputPrivacyValueAllowUsers *)inputPrivacyValueAllowUsersWithUsers:(NSArray *)users
{
Api38_InputPrivacyRule_inputPrivacyValueAllowUsers *_object = [[Api38_InputPrivacyRule_inputPrivacyValueAllowUsers alloc] init];
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts *)inputPrivacyValueDisallowContacts
{
Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts *_object = [[Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts alloc] init];
return _object;
}
+ (Api38_InputPrivacyRule_inputPrivacyValueDisallowAll *)inputPrivacyValueDisallowAll
{
Api38_InputPrivacyRule_inputPrivacyValueDisallowAll *_object = [[Api38_InputPrivacyRule_inputPrivacyValueDisallowAll alloc] init];
return _object;
}
+ (Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers *)inputPrivacyValueDisallowUsersWithUsers:(NSArray *)users
{
Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers *_object = [[Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers alloc] init];
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueAllowContacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd09e07b serializeBlock:^bool (__unused Api38_InputPrivacyRule_inputPrivacyValueAllowContacts *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowContacts)"];
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueAllowAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x184b35ce serializeBlock:^bool (__unused Api38_InputPrivacyRule_inputPrivacyValueAllowAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowAll)"];
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueAllowUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x131cc67f serializeBlock:^bool (Api38_InputPrivacyRule_inputPrivacyValueAllowUsers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueAllowUsers users:%@)", self.users];
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xba52007 serializeBlock:^bool (__unused Api38_InputPrivacyRule_inputPrivacyValueDisallowContacts *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowContacts)"];
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueDisallowAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd66b66c9 serializeBlock:^bool (__unused Api38_InputPrivacyRule_inputPrivacyValueDisallowAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowAll)"];
}
@end
@implementation Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x90110467 serializeBlock:^bool (Api38_InputPrivacyRule_inputPrivacyValueDisallowUsers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyValueDisallowUsers users:%@)", self.users];
}
@end
@interface Api38_messages_DhConfig ()
@property (nonatomic, strong) NSData * random;
@end
@interface Api38_messages_DhConfig_messages_dhConfigNotModified ()
@end
@interface Api38_messages_DhConfig_messages_dhConfig ()
@property (nonatomic, strong) NSNumber * g;
@property (nonatomic, strong) NSData * p;
@property (nonatomic, strong) NSNumber * version;
@end
@implementation Api38_messages_DhConfig
+ (Api38_messages_DhConfig_messages_dhConfigNotModified *)messages_dhConfigNotModifiedWithRandom:(NSData *)random
{
Api38_messages_DhConfig_messages_dhConfigNotModified *_object = [[Api38_messages_DhConfig_messages_dhConfigNotModified alloc] init];
_object.random = [Api38__Serializer addSerializerToObject:[random copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
+ (Api38_messages_DhConfig_messages_dhConfig *)messages_dhConfigWithG:(NSNumber *)g p:(NSData *)p version:(NSNumber *)version random:(NSData *)random
{
Api38_messages_DhConfig_messages_dhConfig *_object = [[Api38_messages_DhConfig_messages_dhConfig alloc] init];
_object.g = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:g] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.p = [Api38__Serializer addSerializerToObject:[p copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.random = [Api38__Serializer addSerializerToObject:[random copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_messages_DhConfig_messages_dhConfigNotModified
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc0e24635 serializeBlock:^bool (Api38_messages_DhConfig_messages_dhConfigNotModified *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.random data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.dhConfigNotModified random:%d)", (int)[self.random length]];
}
@end
@implementation Api38_messages_DhConfig_messages_dhConfig
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2c221edd serializeBlock:^bool (Api38_messages_DhConfig_messages_dhConfig *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.g data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.p data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.random data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.dhConfig g:%@ p:%d version:%@ random:%d)", self.g, (int)[self.p length], self.version, (int)[self.random length]];
}
@end
@interface Api38_auth_ExportedAuthorization ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSData * bytes;
@end
@interface Api38_auth_ExportedAuthorization_auth_exportedAuthorization ()
@end
@implementation Api38_auth_ExportedAuthorization
+ (Api38_auth_ExportedAuthorization_auth_exportedAuthorization *)auth_exportedAuthorizationWithPid:(NSNumber *)pid bytes:(NSData *)bytes
{
Api38_auth_ExportedAuthorization_auth_exportedAuthorization *_object = [[Api38_auth_ExportedAuthorization_auth_exportedAuthorization alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_auth_ExportedAuthorization_auth_exportedAuthorization
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xdf969c2d serializeBlock:^bool (Api38_auth_ExportedAuthorization_auth_exportedAuthorization *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.exportedAuthorization id:%@ bytes:%d)", self.pid, (int)[self.bytes length]];
}
@end
@interface Api38_ContactRequest ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ContactRequest_contactRequest ()
@end
@implementation Api38_ContactRequest
+ (Api38_ContactRequest_contactRequest *)contactRequestWithUserId:(NSNumber *)userId date:(NSNumber *)date
{
Api38_ContactRequest_contactRequest *_object = [[Api38_ContactRequest_contactRequest alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ContactRequest_contactRequest
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x59f24214 serializeBlock:^bool (Api38_ContactRequest_contactRequest *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactRequest user_id:%@ date:%@)", self.userId, self.date];
}
@end
@interface Api38_messages_AffectedHistory ()
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@property (nonatomic, strong) NSNumber * offset;
@end
@interface Api38_messages_AffectedHistory_messages_affectedHistory ()
@end
@implementation Api38_messages_AffectedHistory
+ (Api38_messages_AffectedHistory_messages_affectedHistory *)messages_affectedHistoryWithPts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount offset:(NSNumber *)offset
{
Api38_messages_AffectedHistory_messages_affectedHistory *_object = [[Api38_messages_AffectedHistory_messages_affectedHistory alloc] init];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_messages_AffectedHistory_messages_affectedHistory
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb45c69d1 serializeBlock:^bool (Api38_messages_AffectedHistory_messages_affectedHistory *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.affectedHistory pts:%@ pts_count:%@ offset:%@)", self.pts, self.ptsCount, self.offset];
}
@end
@interface Api38_account_PasswordInputSettings ()
@end
@interface Api38_account_PasswordInputSettings_account_passwordInputSettings ()
@end
@implementation Api38_account_PasswordInputSettings
+ (Api38_account_PasswordInputSettings_account_passwordInputSettings *)account_passwordInputSettings
{
Api38_account_PasswordInputSettings_account_passwordInputSettings *_object = [[Api38_account_PasswordInputSettings_account_passwordInputSettings alloc] init];
return _object;
}
@end
@implementation Api38_account_PasswordInputSettings_account_passwordInputSettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf19c121e serializeBlock:^bool (__unused Api38_account_PasswordInputSettings_account_passwordInputSettings *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.passwordInputSettings)"];
}
@end
@interface Api38_messages_ChatFull ()
@property (nonatomic, strong) Api38_ChatFull * fullChat;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_messages_ChatFull_messages_chatFull ()
@end
@implementation Api38_messages_ChatFull
+ (Api38_messages_ChatFull_messages_chatFull *)messages_chatFullWithFullChat:(Api38_ChatFull *)fullChat chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_ChatFull_messages_chatFull *_object = [[Api38_messages_ChatFull_messages_chatFull alloc] init];
_object.fullChat = fullChat;
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_messages_ChatFull_messages_chatFull
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe5d7d19c serializeBlock:^bool (Api38_messages_ChatFull_messages_chatFull *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.fullChat data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.chatFull full_chat:%@ chats:%@ users:%@)", self.fullChat, self.chats, self.users];
}
@end
@interface Api38_contacts_ForeignLink ()
@end
@interface Api38_contacts_ForeignLink_contacts_foreignLinkUnknown ()
@end
@interface Api38_contacts_ForeignLink_contacts_foreignLinkRequested ()
@property (nonatomic, strong) Api38_Bool * hasPhone;
@end
@interface Api38_contacts_ForeignLink_contacts_foreignLinkMutual ()
@end
@implementation Api38_contacts_ForeignLink
+ (Api38_contacts_ForeignLink_contacts_foreignLinkUnknown *)contacts_foreignLinkUnknown
{
Api38_contacts_ForeignLink_contacts_foreignLinkUnknown *_object = [[Api38_contacts_ForeignLink_contacts_foreignLinkUnknown alloc] init];
return _object;
}
+ (Api38_contacts_ForeignLink_contacts_foreignLinkRequested *)contacts_foreignLinkRequestedWithHasPhone:(Api38_Bool *)hasPhone
{
Api38_contacts_ForeignLink_contacts_foreignLinkRequested *_object = [[Api38_contacts_ForeignLink_contacts_foreignLinkRequested alloc] init];
_object.hasPhone = hasPhone;
return _object;
}
+ (Api38_contacts_ForeignLink_contacts_foreignLinkMutual *)contacts_foreignLinkMutual
{
Api38_contacts_ForeignLink_contacts_foreignLinkMutual *_object = [[Api38_contacts_ForeignLink_contacts_foreignLinkMutual alloc] init];
return _object;
}
@end
@implementation Api38_contacts_ForeignLink_contacts_foreignLinkUnknown
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x133421f8 serializeBlock:^bool (__unused Api38_contacts_ForeignLink_contacts_foreignLinkUnknown *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkUnknown)"];
}
@end
@implementation Api38_contacts_ForeignLink_contacts_foreignLinkRequested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa7801f47 serializeBlock:^bool (Api38_contacts_ForeignLink_contacts_foreignLinkRequested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.hasPhone data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkRequested has_phone:%@)", self.hasPhone];
}
@end
@implementation Api38_contacts_ForeignLink_contacts_foreignLinkMutual
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1bea8ce1 serializeBlock:^bool (__unused Api38_contacts_ForeignLink_contacts_foreignLinkMutual *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.foreignLinkMutual)"];
}
@end
@interface Api38_InputEncryptedChat ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputEncryptedChat_inputEncryptedChat ()
@end
@implementation Api38_InputEncryptedChat
+ (Api38_InputEncryptedChat_inputEncryptedChat *)inputEncryptedChatWithChatId:(NSNumber *)chatId accessHash:(NSNumber *)accessHash
{
Api38_InputEncryptedChat_inputEncryptedChat *_object = [[Api38_InputEncryptedChat_inputEncryptedChat alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputEncryptedChat_inputEncryptedChat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf141b5e1 serializeBlock:^bool (Api38_InputEncryptedChat_inputEncryptedChat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedChat chat_id:%@ access_hash:%@)", self.chatId, self.accessHash];
}
@end
@interface Api38_DisabledFeature ()
@property (nonatomic, strong) NSString * feature;
@property (nonatomic, strong) NSString * nDescription;
@end
@interface Api38_DisabledFeature_disabledFeature ()
@end
@implementation Api38_DisabledFeature
+ (Api38_DisabledFeature_disabledFeature *)disabledFeatureWithFeature:(NSString *)feature nDescription:(NSString *)nDescription
{
Api38_DisabledFeature_disabledFeature *_object = [[Api38_DisabledFeature_disabledFeature alloc] init];
_object.feature = [Api38__Serializer addSerializerToObject:[feature copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.nDescription = [Api38__Serializer addSerializerToObject:[nDescription copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_DisabledFeature_disabledFeature
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xae636f24 serializeBlock:^bool (Api38_DisabledFeature_disabledFeature *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.feature data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.nDescription data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(disabledFeature feature:%d n_description:%d)", (int)[self.feature length], (int)[self.nDescription length]];
}
@end
@interface Api38_EncryptedFile ()
@end
@interface Api38_EncryptedFile_encryptedFileEmpty ()
@end
@interface Api38_EncryptedFile_encryptedFile ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * size;
@property (nonatomic, strong) NSNumber * dcId;
@property (nonatomic, strong) NSNumber * keyFingerprint;
@end
@implementation Api38_EncryptedFile
+ (Api38_EncryptedFile_encryptedFileEmpty *)encryptedFileEmpty
{
Api38_EncryptedFile_encryptedFileEmpty *_object = [[Api38_EncryptedFile_encryptedFileEmpty alloc] init];
return _object;
}
+ (Api38_EncryptedFile_encryptedFile *)encryptedFileWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash size:(NSNumber *)size dcId:(NSNumber *)dcId keyFingerprint:(NSNumber *)keyFingerprint
{
Api38_EncryptedFile_encryptedFile *_object = [[Api38_EncryptedFile_encryptedFile alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.size = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:size] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.keyFingerprint = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_EncryptedFile_encryptedFileEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc21f497e serializeBlock:^bool (__unused Api38_EncryptedFile_encryptedFileEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedFileEmpty)"];
}
@end
@implementation Api38_EncryptedFile_encryptedFile
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4a70994c serializeBlock:^bool (Api38_EncryptedFile_encryptedFile *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.size data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.keyFingerprint data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedFile id:%@ access_hash:%@ size:%@ dc_id:%@ key_fingerprint:%@)", self.pid, self.accessHash, self.size, self.dcId, self.keyFingerprint];
}
@end
@interface Api38_NotifyPeer ()
@end
@interface Api38_NotifyPeer_notifyPeer ()
@property (nonatomic, strong) Api38_Peer * peer;
@end
@interface Api38_NotifyPeer_notifyUsers ()
@end
@interface Api38_NotifyPeer_notifyChats ()
@end
@interface Api38_NotifyPeer_notifyAll ()
@end
@implementation Api38_NotifyPeer
+ (Api38_NotifyPeer_notifyPeer *)notifyPeerWithPeer:(Api38_Peer *)peer
{
Api38_NotifyPeer_notifyPeer *_object = [[Api38_NotifyPeer_notifyPeer alloc] init];
_object.peer = peer;
return _object;
}
+ (Api38_NotifyPeer_notifyUsers *)notifyUsers
{
Api38_NotifyPeer_notifyUsers *_object = [[Api38_NotifyPeer_notifyUsers alloc] init];
return _object;
}
+ (Api38_NotifyPeer_notifyChats *)notifyChats
{
Api38_NotifyPeer_notifyChats *_object = [[Api38_NotifyPeer_notifyChats alloc] init];
return _object;
}
+ (Api38_NotifyPeer_notifyAll *)notifyAll
{
Api38_NotifyPeer_notifyAll *_object = [[Api38_NotifyPeer_notifyAll alloc] init];
return _object;
}
@end
@implementation Api38_NotifyPeer_notifyPeer
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9fd40bd8 serializeBlock:^bool (Api38_NotifyPeer_notifyPeer *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.peer data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(notifyPeer peer:%@)", self.peer];
}
@end
@implementation Api38_NotifyPeer_notifyUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb4c83b4c serializeBlock:^bool (__unused Api38_NotifyPeer_notifyUsers *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(notifyUsers)"];
}
@end
@implementation Api38_NotifyPeer_notifyChats
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc007cec3 serializeBlock:^bool (__unused Api38_NotifyPeer_notifyChats *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(notifyChats)"];
}
@end
@implementation Api38_NotifyPeer_notifyAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x74d07c60 serializeBlock:^bool (__unused Api38_NotifyPeer_notifyAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(notifyAll)"];
}
@end
@interface Api38_InputPrivacyKey ()
@end
@interface Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp ()
@end
@implementation Api38_InputPrivacyKey
+ (Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *)inputPrivacyKeyStatusTimestamp
{
Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *_object = [[Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp alloc] init];
return _object;
}
@end
@implementation Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4f96cb18 serializeBlock:^bool (__unused Api38_InputPrivacyKey_inputPrivacyKeyStatusTimestamp *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPrivacyKeyStatusTimestamp)"];
}
@end
@interface Api38_ReplyMarkup ()
@property (nonatomic, strong) NSNumber * flags;
@end
@interface Api38_ReplyMarkup_replyKeyboardHide ()
@end
@interface Api38_ReplyMarkup_replyKeyboardForceReply ()
@end
@interface Api38_ReplyMarkup_replyKeyboardMarkup ()
@property (nonatomic, strong) NSArray * rows;
@end
@implementation Api38_ReplyMarkup
+ (Api38_ReplyMarkup_replyKeyboardHide *)replyKeyboardHideWithFlags:(NSNumber *)flags
{
Api38_ReplyMarkup_replyKeyboardHide *_object = [[Api38_ReplyMarkup_replyKeyboardHide alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ReplyMarkup_replyKeyboardForceReply *)replyKeyboardForceReplyWithFlags:(NSNumber *)flags
{
Api38_ReplyMarkup_replyKeyboardForceReply *_object = [[Api38_ReplyMarkup_replyKeyboardForceReply alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ReplyMarkup_replyKeyboardMarkup *)replyKeyboardMarkupWithFlags:(NSNumber *)flags rows:(NSArray *)rows
{
Api38_ReplyMarkup_replyKeyboardMarkup *_object = [[Api38_ReplyMarkup_replyKeyboardMarkup alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.rows =
({
NSMutableArray *rows_copy = [[NSMutableArray alloc] initWithCapacity:rows.count];
for (id rows_item in rows)
{
[rows_copy addObject:rows_item];
}
id rows_result = [Api38__Serializer addSerializerToObject:rows_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; rows_result;});
return _object;
}
@end
@implementation Api38_ReplyMarkup_replyKeyboardHide
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa03e5b85 serializeBlock:^bool (Api38_ReplyMarkup_replyKeyboardHide *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(replyKeyboardHide flags:%@)", self.flags];
}
@end
@implementation Api38_ReplyMarkup_replyKeyboardForceReply
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf4108aa0 serializeBlock:^bool (Api38_ReplyMarkup_replyKeyboardForceReply *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(replyKeyboardForceReply flags:%@)", self.flags];
}
@end
@implementation Api38_ReplyMarkup_replyKeyboardMarkup
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3502758c serializeBlock:^bool (Api38_ReplyMarkup_replyKeyboardMarkup *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.rows data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(replyKeyboardMarkup flags:%@ rows:%@)", self.flags, self.rows];
}
@end
@interface Api38_contacts_Link ()
@property (nonatomic, strong) Api38_ContactLink * myLink;
@property (nonatomic, strong) Api38_ContactLink * foreignLink;
@property (nonatomic, strong) Api38_User * user;
@end
@interface Api38_contacts_Link_contacts_link ()
@end
@implementation Api38_contacts_Link
+ (Api38_contacts_Link_contacts_link *)contacts_linkWithMyLink:(Api38_ContactLink *)myLink foreignLink:(Api38_ContactLink *)foreignLink user:(Api38_User *)user
{
Api38_contacts_Link_contacts_link *_object = [[Api38_contacts_Link_contacts_link alloc] init];
_object.myLink = myLink;
_object.foreignLink = foreignLink;
_object.user = user;
return _object;
}
@end
@implementation Api38_contacts_Link_contacts_link
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3ace484c serializeBlock:^bool (Api38_contacts_Link_contacts_link *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.myLink data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.foreignLink data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.user data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.link my_link:%@ foreign_link:%@ user:%@)", self.myLink, self.foreignLink, self.user];
}
@end
@interface Api38_ContactBlocked ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_ContactBlocked_contactBlocked ()
@end
@implementation Api38_ContactBlocked
+ (Api38_ContactBlocked_contactBlocked *)contactBlockedWithUserId:(NSNumber *)userId date:(NSNumber *)date
{
Api38_ContactBlocked_contactBlocked *_object = [[Api38_ContactBlocked_contactBlocked alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ContactBlocked_contactBlocked
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x561bc879 serializeBlock:^bool (Api38_ContactBlocked_contactBlocked *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactBlocked user_id:%@ date:%@)", self.userId, self.date];
}
@end
@interface Api38_auth_CheckedPhone ()
@property (nonatomic, strong) Api38_Bool * phoneRegistered;
@end
@interface Api38_auth_CheckedPhone_auth_checkedPhone ()
@end
@implementation Api38_auth_CheckedPhone
+ (Api38_auth_CheckedPhone_auth_checkedPhone *)auth_checkedPhoneWithPhoneRegistered:(Api38_Bool *)phoneRegistered
{
Api38_auth_CheckedPhone_auth_checkedPhone *_object = [[Api38_auth_CheckedPhone_auth_checkedPhone alloc] init];
_object.phoneRegistered = phoneRegistered;
return _object;
}
@end
@implementation Api38_auth_CheckedPhone_auth_checkedPhone
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x811ea28e serializeBlock:^bool (Api38_auth_CheckedPhone_auth_checkedPhone *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneRegistered data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.checkedPhone phone_registered:%@)", self.phoneRegistered];
}
@end
@interface Api38_InputUser ()
@end
@interface Api38_InputUser_inputUserEmpty ()
@end
@interface Api38_InputUser_inputUserSelf ()
@end
@interface Api38_InputUser_inputUser ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputUser
+ (Api38_InputUser_inputUserEmpty *)inputUserEmpty
{
Api38_InputUser_inputUserEmpty *_object = [[Api38_InputUser_inputUserEmpty alloc] init];
return _object;
}
+ (Api38_InputUser_inputUserSelf *)inputUserSelf
{
Api38_InputUser_inputUserSelf *_object = [[Api38_InputUser_inputUserSelf alloc] init];
return _object;
}
+ (Api38_InputUser_inputUser *)inputUserWithUserId:(NSNumber *)userId accessHash:(NSNumber *)accessHash
{
Api38_InputUser_inputUser *_object = [[Api38_InputUser_inputUser alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputUser_inputUserEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb98886cf serializeBlock:^bool (__unused Api38_InputUser_inputUserEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputUserEmpty)"];
}
@end
@implementation Api38_InputUser_inputUserSelf
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf7c1b13f serializeBlock:^bool (__unused Api38_InputUser_inputUserSelf *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputUserSelf)"];
}
@end
@implementation Api38_InputUser_inputUser
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd8292816 serializeBlock:^bool (Api38_InputUser_inputUser *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputUser user_id:%@ access_hash:%@)", self.userId, self.accessHash];
}
@end
@interface Api38_SchemeType ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSString * predicate;
@property (nonatomic, strong) NSArray * params;
@property (nonatomic, strong) NSString * type;
@end
@interface Api38_SchemeType_schemeType ()
@end
@implementation Api38_SchemeType
+ (Api38_SchemeType_schemeType *)schemeTypeWithPid:(NSNumber *)pid predicate:(NSString *)predicate params:(NSArray *)params type:(NSString *)type
{
Api38_SchemeType_schemeType *_object = [[Api38_SchemeType_schemeType alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.predicate = [Api38__Serializer addSerializerToObject:[predicate copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.params =
({
NSMutableArray *params_copy = [[NSMutableArray alloc] initWithCapacity:params.count];
for (id params_item in params)
{
[params_copy addObject:params_item];
}
id params_result = [Api38__Serializer addSerializerToObject:params_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; params_result;});
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_SchemeType_schemeType
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa8e1e989 serializeBlock:^bool (Api38_SchemeType_schemeType *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.predicate data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.params data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(schemeType id:%@ predicate:%d params:%@ type:%d)", self.pid, (int)[self.predicate length], self.params, (int)[self.type length]];
}
@end
@interface Api38_upload_File ()
@property (nonatomic, strong) Api38_storage_FileType * type;
@property (nonatomic, strong) NSNumber * mtime;
@property (nonatomic, strong) NSData * bytes;
@end
@interface Api38_upload_File_upload_file ()
@end
@implementation Api38_upload_File
+ (Api38_upload_File_upload_file *)upload_fileWithType:(Api38_storage_FileType *)type mtime:(NSNumber *)mtime bytes:(NSData *)bytes
{
Api38_upload_File_upload_file *_object = [[Api38_upload_File_upload_file alloc] init];
_object.type = type;
_object.mtime = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:mtime] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_upload_File_upload_file
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x96a18d5 serializeBlock:^bool (Api38_upload_File_upload_file *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.type data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.mtime data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(upload.file type:%@ mtime:%@ bytes:%d)", self.type, self.mtime, (int)[self.bytes length]];
}
@end
@interface Api38_InputVideo ()
@end
@interface Api38_InputVideo_inputVideoEmpty ()
@end
@interface Api38_InputVideo_inputVideo ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputVideo
+ (Api38_InputVideo_inputVideoEmpty *)inputVideoEmpty
{
Api38_InputVideo_inputVideoEmpty *_object = [[Api38_InputVideo_inputVideoEmpty alloc] init];
return _object;
}
+ (Api38_InputVideo_inputVideo *)inputVideoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputVideo_inputVideo *_object = [[Api38_InputVideo_inputVideo alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputVideo_inputVideoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5508ec75 serializeBlock:^bool (__unused Api38_InputVideo_inputVideoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputVideoEmpty)"];
}
@end
@implementation Api38_InputVideo_inputVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xee579652 serializeBlock:^bool (Api38_InputVideo_inputVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputVideo id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_MessageRange ()
@property (nonatomic, strong) NSNumber * minId;
@property (nonatomic, strong) NSNumber * maxId;
@end
@interface Api38_MessageRange_messageRange ()
@end
@implementation Api38_MessageRange
+ (Api38_MessageRange_messageRange *)messageRangeWithMinId:(NSNumber *)minId maxId:(NSNumber *)maxId
{
Api38_MessageRange_messageRange *_object = [[Api38_MessageRange_messageRange alloc] init];
_object.minId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:minId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.maxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_MessageRange_messageRange
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xae30253 serializeBlock:^bool (Api38_MessageRange_messageRange *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.minId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.maxId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageRange min_id:%@ max_id:%@)", self.minId, self.maxId];
}
@end
@interface Api38_Config ()
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * expires;
@property (nonatomic, strong) Api38_Bool * testMode;
@property (nonatomic, strong) NSNumber * thisDc;
@property (nonatomic, strong) NSArray * dcOptions;
@property (nonatomic, strong) NSNumber * chatSizeMax;
@property (nonatomic, strong) NSNumber * broadcastSizeMax;
@property (nonatomic, strong) NSNumber * forwardedCountMax;
@property (nonatomic, strong) NSNumber * onlineUpdatePeriodMs;
@property (nonatomic, strong) NSNumber * offlineBlurTimeoutMs;
@property (nonatomic, strong) NSNumber * offlineIdleTimeoutMs;
@property (nonatomic, strong) NSNumber * onlineCloudTimeoutMs;
@property (nonatomic, strong) NSNumber * notifyCloudDelayMs;
@property (nonatomic, strong) NSNumber * notifyDefaultDelayMs;
@property (nonatomic, strong) NSNumber * chatBigSize;
@property (nonatomic, strong) NSNumber * pushChatPeriodMs;
@property (nonatomic, strong) NSNumber * pushChatLimit;
@property (nonatomic, strong) NSArray * disabledFeatures;
@end
@interface Api38_Config_config ()
@end
@implementation Api38_Config
+ (Api38_Config_config *)configWithDate:(NSNumber *)date expires:(NSNumber *)expires testMode:(Api38_Bool *)testMode thisDc:(NSNumber *)thisDc dcOptions:(NSArray *)dcOptions chatSizeMax:(NSNumber *)chatSizeMax broadcastSizeMax:(NSNumber *)broadcastSizeMax forwardedCountMax:(NSNumber *)forwardedCountMax onlineUpdatePeriodMs:(NSNumber *)onlineUpdatePeriodMs offlineBlurTimeoutMs:(NSNumber *)offlineBlurTimeoutMs offlineIdleTimeoutMs:(NSNumber *)offlineIdleTimeoutMs onlineCloudTimeoutMs:(NSNumber *)onlineCloudTimeoutMs notifyCloudDelayMs:(NSNumber *)notifyCloudDelayMs notifyDefaultDelayMs:(NSNumber *)notifyDefaultDelayMs chatBigSize:(NSNumber *)chatBigSize pushChatPeriodMs:(NSNumber *)pushChatPeriodMs pushChatLimit:(NSNumber *)pushChatLimit disabledFeatures:(NSArray *)disabledFeatures
{
Api38_Config_config *_object = [[Api38_Config_config alloc] init];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.expires = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:expires] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.testMode = testMode;
_object.thisDc = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:thisDc] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.dcOptions =
({
NSMutableArray *dcOptions_copy = [[NSMutableArray alloc] initWithCapacity:dcOptions.count];
for (id dcOptions_item in dcOptions)
{
[dcOptions_copy addObject:dcOptions_item];
}
id dcOptions_result = [Api38__Serializer addSerializerToObject:dcOptions_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; dcOptions_result;});
_object.chatSizeMax = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatSizeMax] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.broadcastSizeMax = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:broadcastSizeMax] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.forwardedCountMax = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:forwardedCountMax] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.onlineUpdatePeriodMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:onlineUpdatePeriodMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.offlineBlurTimeoutMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offlineBlurTimeoutMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.offlineIdleTimeoutMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offlineIdleTimeoutMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.onlineCloudTimeoutMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:onlineCloudTimeoutMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.notifyCloudDelayMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:notifyCloudDelayMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.notifyDefaultDelayMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:notifyDefaultDelayMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.chatBigSize = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatBigSize] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pushChatPeriodMs = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pushChatPeriodMs] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pushChatLimit = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pushChatLimit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.disabledFeatures =
({
NSMutableArray *disabledFeatures_copy = [[NSMutableArray alloc] initWithCapacity:disabledFeatures.count];
for (id disabledFeatures_item in disabledFeatures)
{
[disabledFeatures_copy addObject:disabledFeatures_item];
}
id disabledFeatures_result = [Api38__Serializer addSerializerToObject:disabledFeatures_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; disabledFeatures_result;});
return _object;
}
@end
@implementation Api38_Config_config
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4e32b894 serializeBlock:^bool (Api38_Config_config *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.expires data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.testMode data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.thisDc data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dcOptions data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chatSizeMax data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.broadcastSizeMax data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.forwardedCountMax data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.onlineUpdatePeriodMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.offlineBlurTimeoutMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.offlineIdleTimeoutMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.onlineCloudTimeoutMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.notifyCloudDelayMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.notifyDefaultDelayMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatBigSize data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pushChatPeriodMs data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pushChatLimit data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.disabledFeatures data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(config date:%@ expires:%@ test_mode:%@ this_dc:%@ dc_options:%@ chat_size_max:%@ broadcast_size_max:%@ forwarded_count_max:%@ online_update_period_ms:%@ offline_blur_timeout_ms:%@ offline_idle_timeout_ms:%@ online_cloud_timeout_ms:%@ notify_cloud_delay_ms:%@ notify_default_delay_ms:%@ chat_big_size:%@ push_chat_period_ms:%@ push_chat_limit:%@ disabled_features:%@)", self.date, self.expires, self.testMode, self.thisDc, self.dcOptions, self.chatSizeMax, self.broadcastSizeMax, self.forwardedCountMax, self.onlineUpdatePeriodMs, self.offlineBlurTimeoutMs, self.offlineIdleTimeoutMs, self.onlineCloudTimeoutMs, self.notifyCloudDelayMs, self.notifyDefaultDelayMs, self.chatBigSize, self.pushChatPeriodMs, self.pushChatLimit, self.disabledFeatures];
}
@end
@interface Api38_BotCommand ()
@property (nonatomic, strong) NSString * command;
@property (nonatomic, strong) NSString * pdescription;
@end
@interface Api38_BotCommand_botCommand ()
@end
@implementation Api38_BotCommand
+ (Api38_BotCommand_botCommand *)botCommandWithCommand:(NSString *)command pdescription:(NSString *)pdescription
{
Api38_BotCommand_botCommand *_object = [[Api38_BotCommand_botCommand alloc] init];
_object.command = [Api38__Serializer addSerializerToObject:[command copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pdescription = [Api38__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_BotCommand_botCommand
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc27ac8c7 serializeBlock:^bool (Api38_BotCommand_botCommand *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.command data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pdescription data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(botCommand command:%d description:%d)", (int)[self.command length], (int)[self.pdescription length]];
}
@end
@interface Api38_Audio ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Audio_audioEmpty ()
@end
@interface Api38_Audio_audio ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSNumber * size;
@property (nonatomic, strong) NSNumber * dcId;
@end
@implementation Api38_Audio
+ (Api38_Audio_audioEmpty *)audioEmptyWithPid:(NSNumber *)pid
{
Api38_Audio_audioEmpty *_object = [[Api38_Audio_audioEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Audio_audio *)audioWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date duration:(NSNumber *)duration mimeType:(NSString *)mimeType size:(NSNumber *)size dcId:(NSNumber *)dcId
{
Api38_Audio_audio *_object = [[Api38_Audio_audio alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.size = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:size] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_Audio_audioEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x586988d8 serializeBlock:^bool (Api38_Audio_audioEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(audioEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Audio_audio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf9e35055 serializeBlock:^bool (Api38_Audio_audio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.size data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(audio id:%@ access_hash:%@ date:%@ duration:%@ mime_type:%d size:%@ dc_id:%@)", self.pid, self.accessHash, self.date, self.duration, (int)[self.mimeType length], self.size, self.dcId];
}
@end
@interface Api38_contacts_Located ()
@property (nonatomic, strong) NSArray * results;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Located_contacts_located ()
@end
@implementation Api38_contacts_Located
+ (Api38_contacts_Located_contacts_located *)contacts_locatedWithResults:(NSArray *)results users:(NSArray *)users
{
Api38_contacts_Located_contacts_located *_object = [[Api38_contacts_Located_contacts_located alloc] init];
_object.results =
({
NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count];
for (id results_item in results)
{
[results_copy addObject:results_item];
}
id results_result = [Api38__Serializer addSerializerToObject:results_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; results_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_Located_contacts_located
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xaad7f4a7 serializeBlock:^bool (Api38_contacts_Located_contacts_located *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.results data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.located results:%@ users:%@)", self.results, self.users];
}
@end
@interface Api38_messages_AffectedMessages ()
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@end
@interface Api38_messages_AffectedMessages_messages_affectedMessages ()
@end
@implementation Api38_messages_AffectedMessages
+ (Api38_messages_AffectedMessages_messages_affectedMessages *)messages_affectedMessagesWithPts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount
{
Api38_messages_AffectedMessages_messages_affectedMessages *_object = [[Api38_messages_AffectedMessages_messages_affectedMessages alloc] init];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_messages_AffectedMessages_messages_affectedMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x84d19185 serializeBlock:^bool (Api38_messages_AffectedMessages_messages_affectedMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.affectedMessages pts:%@ pts_count:%@)", self.pts, self.ptsCount];
}
@end
@interface Api38_InputAudio ()
@end
@interface Api38_InputAudio_inputAudioEmpty ()
@end
@interface Api38_InputAudio_inputAudio ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputAudio
+ (Api38_InputAudio_inputAudioEmpty *)inputAudioEmpty
{
Api38_InputAudio_inputAudioEmpty *_object = [[Api38_InputAudio_inputAudioEmpty alloc] init];
return _object;
}
+ (Api38_InputAudio_inputAudio *)inputAudioWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputAudio_inputAudio *_object = [[Api38_InputAudio_inputAudio alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputAudio_inputAudioEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd95adc84 serializeBlock:^bool (__unused Api38_InputAudio_inputAudioEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputAudioEmpty)"];
}
@end
@implementation Api38_InputAudio_inputAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x77d440ff serializeBlock:^bool (Api38_InputAudio_inputAudio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputAudio id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_ResponseIndirect ()
@end
@interface Api38_ResponseIndirect_responseIndirect ()
@end
@implementation Api38_ResponseIndirect
+ (Api38_ResponseIndirect_responseIndirect *)responseIndirect
{
Api38_ResponseIndirect_responseIndirect *_object = [[Api38_ResponseIndirect_responseIndirect alloc] init];
return _object;
}
@end
@implementation Api38_ResponseIndirect_responseIndirect
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2194f56e serializeBlock:^bool (__unused Api38_ResponseIndirect_responseIndirect *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(responseIndirect)"];
}
@end
@interface Api38_WallPaper ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSNumber * color;
@end
@interface Api38_WallPaper_wallPaper ()
@property (nonatomic, strong) NSArray * sizes;
@end
@interface Api38_WallPaper_wallPaperSolid ()
@property (nonatomic, strong) NSNumber * bgColor;
@end
@implementation Api38_WallPaper
+ (Api38_WallPaper_wallPaper *)wallPaperWithPid:(NSNumber *)pid title:(NSString *)title sizes:(NSArray *)sizes color:(NSNumber *)color
{
Api38_WallPaper_wallPaper *_object = [[Api38_WallPaper_wallPaper alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.sizes =
({
NSMutableArray *sizes_copy = [[NSMutableArray alloc] initWithCapacity:sizes.count];
for (id sizes_item in sizes)
{
[sizes_copy addObject:sizes_item];
}
id sizes_result = [Api38__Serializer addSerializerToObject:sizes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; sizes_result;});
_object.color = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:color] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_WallPaper_wallPaperSolid *)wallPaperSolidWithPid:(NSNumber *)pid title:(NSString *)title bgColor:(NSNumber *)bgColor color:(NSNumber *)color
{
Api38_WallPaper_wallPaperSolid *_object = [[Api38_WallPaper_wallPaperSolid alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.bgColor = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:bgColor] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.color = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:color] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_WallPaper_wallPaper
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xccb03657 serializeBlock:^bool (Api38_WallPaper_wallPaper *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sizes data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.color data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(wallPaper id:%@ title:%d sizes:%@ color:%@)", self.pid, (int)[self.title length], self.sizes, self.color];
}
@end
@implementation Api38_WallPaper_wallPaperSolid
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x63117f24 serializeBlock:^bool (Api38_WallPaper_wallPaperSolid *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.bgColor data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.color data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(wallPaperSolid id:%@ title:%d bg_color:%@ color:%@)", self.pid, (int)[self.title length], self.bgColor, self.color];
}
@end
@interface Api38_messages_Messages ()
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_messages_Messages_messages_messages ()
@end
@interface Api38_messages_Messages_messages_messagesSlice ()
@property (nonatomic, strong) NSNumber * count;
@end
@interface Api38_messages_Messages_messages_channelMessages ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * count;
@property (nonatomic, strong) NSArray * collapsed;
@end
@implementation Api38_messages_Messages
+ (Api38_messages_Messages_messages_messages *)messages_messagesWithMessages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Messages_messages_messages *_object = [[Api38_messages_Messages_messages_messages alloc] init];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_messages_Messages_messages_messagesSlice *)messages_messagesSliceWithCount:(NSNumber *)count messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Messages_messages_messagesSlice *_object = [[Api38_messages_Messages_messages_messagesSlice alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_messages_Messages_messages_channelMessages *)messages_channelMessagesWithFlags:(NSNumber *)flags pts:(NSNumber *)pts count:(NSNumber *)count messages:(NSArray *)messages collapsed:(NSArray *)collapsed chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Messages_messages_channelMessages *_object = [[Api38_messages_Messages_messages_channelMessages alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.collapsed =
({
NSMutableArray *collapsed_copy = [[NSMutableArray alloc] initWithCapacity:collapsed.count];
for (id collapsed_item in collapsed)
{
[collapsed_copy addObject:collapsed_item];
}
id collapsed_result = [Api38__Serializer addSerializerToObject:collapsed_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; collapsed_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_messages_Messages_messages_messages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8c718e87 serializeBlock:^bool (Api38_messages_Messages_messages_messages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.messages messages:%@ chats:%@ users:%@)", self.messages, self.chats, self.users];
}
@end
@implementation Api38_messages_Messages_messages_messagesSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb446ae3 serializeBlock:^bool (Api38_messages_Messages_messages_messagesSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.messagesSlice count:%@ messages:%@ chats:%@ users:%@)", self.count, self.messages, self.chats, self.users];
}
@end
@implementation Api38_messages_Messages_messages_channelMessages
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbc0f17bc serializeBlock:^bool (Api38_messages_Messages_messages_channelMessages *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if ([object.flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:object.collapsed data:data addSignature:true])
return false;
}
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.channelMessages flags:%@ pts:%@ count:%@ messages:%@ collapsed:%@ chats:%@ users:%@)", self.flags, self.pts, self.count, self.messages, self.collapsed, self.chats, self.users];
}
@end
@interface Api38_auth_SentCode ()
@property (nonatomic, strong) Api38_Bool * phoneRegistered;
@end
@interface Api38_auth_SentCode_auth_sentCodePreview ()
@property (nonatomic, strong) NSString * phoneCodeHash;
@property (nonatomic, strong) NSString * phoneCodeTest;
@end
@interface Api38_auth_SentCode_auth_sentPassPhrase ()
@end
@interface Api38_auth_SentCode_auth_sentCode ()
@property (nonatomic, strong) NSString * phoneCodeHash;
@property (nonatomic, strong) NSNumber * sendCallTimeout;
@property (nonatomic, strong) Api38_Bool * isPassword;
@end
@interface Api38_auth_SentCode_auth_sentAppCode ()
@property (nonatomic, strong) NSString * phoneCodeHash;
@property (nonatomic, strong) NSNumber * sendCallTimeout;
@property (nonatomic, strong) Api38_Bool * isPassword;
@end
@implementation Api38_auth_SentCode
+ (Api38_auth_SentCode_auth_sentCodePreview *)auth_sentCodePreviewWithPhoneRegistered:(Api38_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash phoneCodeTest:(NSString *)phoneCodeTest
{
Api38_auth_SentCode_auth_sentCodePreview *_object = [[Api38_auth_SentCode_auth_sentCodePreview alloc] init];
_object.phoneRegistered = phoneRegistered;
_object.phoneCodeHash = [Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.phoneCodeTest = [Api38__Serializer addSerializerToObject:[phoneCodeTest copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_auth_SentCode_auth_sentPassPhrase *)auth_sentPassPhraseWithPhoneRegistered:(Api38_Bool *)phoneRegistered
{
Api38_auth_SentCode_auth_sentPassPhrase *_object = [[Api38_auth_SentCode_auth_sentPassPhrase alloc] init];
_object.phoneRegistered = phoneRegistered;
return _object;
}
+ (Api38_auth_SentCode_auth_sentCode *)auth_sentCodeWithPhoneRegistered:(Api38_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout isPassword:(Api38_Bool *)isPassword
{
Api38_auth_SentCode_auth_sentCode *_object = [[Api38_auth_SentCode_auth_sentCode alloc] init];
_object.phoneRegistered = phoneRegistered;
_object.phoneCodeHash = [Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.sendCallTimeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.isPassword = isPassword;
return _object;
}
+ (Api38_auth_SentCode_auth_sentAppCode *)auth_sentAppCodeWithPhoneRegistered:(Api38_Bool *)phoneRegistered phoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout isPassword:(Api38_Bool *)isPassword
{
Api38_auth_SentCode_auth_sentAppCode *_object = [[Api38_auth_SentCode_auth_sentAppCode alloc] init];
_object.phoneRegistered = phoneRegistered;
_object.phoneCodeHash = [Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.sendCallTimeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.isPassword = isPassword;
return _object;
}
@end
@implementation Api38_auth_SentCode_auth_sentCodePreview
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3cf5727a serializeBlock:^bool (Api38_auth_SentCode_auth_sentCodePreview *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneRegistered data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.phoneCodeHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.phoneCodeTest data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.sentCodePreview phone_registered:%@ phone_code_hash:%d phone_code_test:%d)", self.phoneRegistered, (int)[self.phoneCodeHash length], (int)[self.phoneCodeTest length]];
}
@end
@implementation Api38_auth_SentCode_auth_sentPassPhrase
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1a1e1fae serializeBlock:^bool (Api38_auth_SentCode_auth_sentPassPhrase *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneRegistered data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.sentPassPhrase phone_registered:%@)", self.phoneRegistered];
}
@end
@implementation Api38_auth_SentCode_auth_sentCode
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xefed51d9 serializeBlock:^bool (Api38_auth_SentCode_auth_sentCode *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneRegistered data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.phoneCodeHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sendCallTimeout data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.isPassword data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.sentCode phone_registered:%@ phone_code_hash:%d send_call_timeout:%@ is_password:%@)", self.phoneRegistered, (int)[self.phoneCodeHash length], self.sendCallTimeout, self.isPassword];
}
@end
@implementation Api38_auth_SentCode_auth_sentAppCode
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe325edcf serializeBlock:^bool (Api38_auth_SentCode_auth_sentAppCode *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneRegistered data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.phoneCodeHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sendCallTimeout data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.isPassword data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(auth.sentAppCode phone_registered:%@ phone_code_hash:%d send_call_timeout:%@ is_password:%@)", self.phoneRegistered, (int)[self.phoneCodeHash length], self.sendCallTimeout, self.isPassword];
}
@end
@interface Api38_phone_DhConfig ()
@property (nonatomic, strong) NSNumber * g;
@property (nonatomic, strong) NSString * p;
@property (nonatomic, strong) NSNumber * ringTimeout;
@property (nonatomic, strong) NSNumber * expires;
@end
@interface Api38_phone_DhConfig_phone_dhConfig ()
@end
@implementation Api38_phone_DhConfig
+ (Api38_phone_DhConfig_phone_dhConfig *)phone_dhConfigWithG:(NSNumber *)g p:(NSString *)p ringTimeout:(NSNumber *)ringTimeout expires:(NSNumber *)expires
{
Api38_phone_DhConfig_phone_dhConfig *_object = [[Api38_phone_DhConfig_phone_dhConfig alloc] init];
_object.g = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:g] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.p = [Api38__Serializer addSerializerToObject:[p copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.ringTimeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ringTimeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.expires = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:expires] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_phone_DhConfig_phone_dhConfig
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8a5d855e serializeBlock:^bool (Api38_phone_DhConfig_phone_dhConfig *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.g data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.p data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ringTimeout data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.expires data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(phone.dhConfig g:%@ p:%d ring_timeout:%@ expires:%@)", self.g, (int)[self.p length], self.ringTimeout, self.expires];
}
@end
@interface Api38_InputChatPhoto ()
@end
@interface Api38_InputChatPhoto_inputChatPhotoEmpty ()
@end
@interface Api38_InputChatPhoto_inputChatUploadedPhoto ()
@property (nonatomic, strong) Api38_InputFile * file;
@property (nonatomic, strong) Api38_InputPhotoCrop * crop;
@end
@interface Api38_InputChatPhoto_inputChatPhoto ()
@property (nonatomic, strong) Api38_InputPhoto * pid;
@property (nonatomic, strong) Api38_InputPhotoCrop * crop;
@end
@implementation Api38_InputChatPhoto
+ (Api38_InputChatPhoto_inputChatPhotoEmpty *)inputChatPhotoEmpty
{
Api38_InputChatPhoto_inputChatPhotoEmpty *_object = [[Api38_InputChatPhoto_inputChatPhotoEmpty alloc] init];
return _object;
}
+ (Api38_InputChatPhoto_inputChatUploadedPhoto *)inputChatUploadedPhotoWithFile:(Api38_InputFile *)file crop:(Api38_InputPhotoCrop *)crop
{
Api38_InputChatPhoto_inputChatUploadedPhoto *_object = [[Api38_InputChatPhoto_inputChatUploadedPhoto alloc] init];
_object.file = file;
_object.crop = crop;
return _object;
}
+ (Api38_InputChatPhoto_inputChatPhoto *)inputChatPhotoWithPid:(Api38_InputPhoto *)pid crop:(Api38_InputPhotoCrop *)crop
{
Api38_InputChatPhoto_inputChatPhoto *_object = [[Api38_InputChatPhoto_inputChatPhoto alloc] init];
_object.pid = pid;
_object.crop = crop;
return _object;
}
@end
@implementation Api38_InputChatPhoto_inputChatPhotoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1ca48f57 serializeBlock:^bool (__unused Api38_InputChatPhoto_inputChatPhotoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputChatPhotoEmpty)"];
}
@end
@implementation Api38_InputChatPhoto_inputChatUploadedPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x94254732 serializeBlock:^bool (Api38_InputChatPhoto_inputChatUploadedPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.file data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.crop data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputChatUploadedPhoto file:%@ crop:%@)", self.file, self.crop];
}
@end
@implementation Api38_InputChatPhoto_inputChatPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb2e1bf08 serializeBlock:^bool (Api38_InputChatPhoto_inputChatPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.crop data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputChatPhoto id:%@ crop:%@)", self.pid, self.crop];
}
@end
@interface Api38_Updates ()
@end
@interface Api38_Updates_updatesTooLong ()
@end
@interface Api38_Updates_updateShort ()
@property (nonatomic, strong) Api38_Update * update;
@property (nonatomic, strong) NSNumber * date;
@end
@interface Api38_Updates_updatesCombined ()
@property (nonatomic, strong) NSArray * updates;
@property (nonatomic, strong) NSArray * users;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * seqStart;
@property (nonatomic, strong) NSNumber * seq;
@end
@interface Api38_Updates_updates ()
@property (nonatomic, strong) NSArray * updates;
@property (nonatomic, strong) NSArray * users;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * seq;
@end
@interface Api38_Updates_updateShortSentMessage ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) Api38_MessageMedia * media;
@property (nonatomic, strong) NSArray * entities;
@end
@interface Api38_Updates_updateShortMessage ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSString * message;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) Api38_Peer * fwdFromId;
@property (nonatomic, strong) NSNumber * fwdDate;
@property (nonatomic, strong) NSNumber * replyToMsgId;
@property (nonatomic, strong) NSArray * entities;
@end
@interface Api38_Updates_updateShortChatMessage ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * fromId;
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSString * message;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * ptsCount;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) Api38_Peer * fwdFromId;
@property (nonatomic, strong) NSNumber * fwdDate;
@property (nonatomic, strong) NSNumber * replyToMsgId;
@property (nonatomic, strong) NSArray * entities;
@end
@implementation Api38_Updates
+ (Api38_Updates_updatesTooLong *)updatesTooLong
{
Api38_Updates_updatesTooLong *_object = [[Api38_Updates_updatesTooLong alloc] init];
return _object;
}
+ (Api38_Updates_updateShort *)updateShortWithUpdate:(Api38_Update *)update date:(NSNumber *)date
{
Api38_Updates_updateShort *_object = [[Api38_Updates_updateShort alloc] init];
_object.update = update;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Updates_updatesCombined *)updatesCombinedWithUpdates:(NSArray *)updates users:(NSArray *)users chats:(NSArray *)chats date:(NSNumber *)date seqStart:(NSNumber *)seqStart seq:(NSNumber *)seq
{
Api38_Updates_updatesCombined *_object = [[Api38_Updates_updatesCombined alloc] init];
_object.updates =
({
NSMutableArray *updates_copy = [[NSMutableArray alloc] initWithCapacity:updates.count];
for (id updates_item in updates)
{
[updates_copy addObject:updates_item];
}
id updates_result = [Api38__Serializer addSerializerToObject:updates_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; updates_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.seqStart = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:seqStart] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.seq = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:seq] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Updates_updates *)updatesWithUpdates:(NSArray *)updates users:(NSArray *)users chats:(NSArray *)chats date:(NSNumber *)date seq:(NSNumber *)seq
{
Api38_Updates_updates *_object = [[Api38_Updates_updates alloc] init];
_object.updates =
({
NSMutableArray *updates_copy = [[NSMutableArray alloc] initWithCapacity:updates.count];
for (id updates_item in updates)
{
[updates_copy addObject:updates_item];
}
id updates_result = [Api38__Serializer addSerializerToObject:updates_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; updates_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.seq = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:seq] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Updates_updateShortSentMessage *)updateShortSentMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date media:(Api38_MessageMedia *)media entities:(NSArray *)entities
{
Api38_Updates_updateShortSentMessage *_object = [[Api38_Updates_updateShortSentMessage alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.media = media;
_object.entities =
({
NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count];
for (id entities_item in entities)
{
[entities_copy addObject:entities_item];
}
id entities_result = [Api38__Serializer addSerializerToObject:entities_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; entities_result;});
return _object;
}
+ (Api38_Updates_updateShortMessage *)updateShortMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid userId:(NSNumber *)userId message:(NSString *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date fwdFromId:(Api38_Peer *)fwdFromId fwdDate:(NSNumber *)fwdDate replyToMsgId:(NSNumber *)replyToMsgId entities:(NSArray *)entities
{
Api38_Updates_updateShortMessage *_object = [[Api38_Updates_updateShortMessage alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.message = [Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.fwdFromId = fwdFromId;
_object.fwdDate = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fwdDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.replyToMsgId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.entities =
({
NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count];
for (id entities_item in entities)
{
[entities_copy addObject:entities_item];
}
id entities_result = [Api38__Serializer addSerializerToObject:entities_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; entities_result;});
return _object;
}
+ (Api38_Updates_updateShortChatMessage *)updateShortChatMessageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId chatId:(NSNumber *)chatId message:(NSString *)message pts:(NSNumber *)pts ptsCount:(NSNumber *)ptsCount date:(NSNumber *)date fwdFromId:(Api38_Peer *)fwdFromId fwdDate:(NSNumber *)fwdDate replyToMsgId:(NSNumber *)replyToMsgId entities:(NSArray *)entities
{
Api38_Updates_updateShortChatMessage *_object = [[Api38_Updates_updateShortChatMessage alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.fromId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fromId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.message = [Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ptsCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:ptsCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.fwdFromId = fwdFromId;
_object.fwdDate = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fwdDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.replyToMsgId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.entities =
({
NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count];
for (id entities_item in entities)
{
[entities_copy addObject:entities_item];
}
id entities_result = [Api38__Serializer addSerializerToObject:entities_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; entities_result;});
return _object;
}
@end
@implementation Api38_Updates_updatesTooLong
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe317af7e serializeBlock:^bool (__unused Api38_Updates_updatesTooLong *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatesTooLong)"];
}
@end
@implementation Api38_Updates_updateShort
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x78d4dec1 serializeBlock:^bool (Api38_Updates_updateShort *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.update data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateShort update:%@ date:%@)", self.update, self.date];
}
@end
@implementation Api38_Updates_updatesCombined
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x725b04c3 serializeBlock:^bool (Api38_Updates_updatesCombined *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.updates data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.seqStart data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.seq data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updatesCombined updates:%@ users:%@ chats:%@ date:%@ seq_start:%@ seq:%@)", self.updates, self.users, self.chats, self.date, self.seqStart, self.seq];
}
@end
@implementation Api38_Updates_updates
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x74ae4240 serializeBlock:^bool (Api38_Updates_updates *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.updates data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.seq data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates updates:%@ users:%@ chats:%@ date:%@ seq:%@)", self.updates, self.users, self.chats, self.date, self.seq];
}
@end
@implementation Api38_Updates_updateShortSentMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x11f1331c serializeBlock:^bool (Api38_Updates_updateShortSentMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 9)) {
if (![Api38__Environment serializeObject:object.media data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 7)) {
if (![Api38__Environment serializeObject:object.entities data:data addSignature:true])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateShortSentMessage flags:%@ id:%@ pts:%@ pts_count:%@ date:%@ media:%@ entities:%@)", self.flags, self.pid, self.pts, self.ptsCount, self.date, self.media, self.entities];
}
@end
@implementation Api38_Updates_updateShortMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf7d91a46 serializeBlock:^bool (Api38_Updates_updateShortMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.message data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdFromId data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdDate data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:object.replyToMsgId data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 7)) {
if (![Api38__Environment serializeObject:object.entities data:data addSignature:true])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateShortMessage flags:%@ id:%@ user_id:%@ message:%d pts:%@ pts_count:%@ date:%@ fwd_from_id:%@ fwd_date:%@ reply_to_msg_id:%@ entities:%@)", self.flags, self.pid, self.userId, (int)[self.message length], self.pts, self.ptsCount, self.date, self.fwdFromId, self.fwdDate, self.replyToMsgId, self.entities];
}
@end
@implementation Api38_Updates_updateShortChatMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcac7fdd2 serializeBlock:^bool (Api38_Updates_updateShortChatMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.fromId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.message data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ptsCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdFromId data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdDate data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:object.replyToMsgId data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 7)) {
if (![Api38__Environment serializeObject:object.entities data:data addSignature:true])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updateShortChatMessage flags:%@ id:%@ from_id:%@ chat_id:%@ message:%d pts:%@ pts_count:%@ date:%@ fwd_from_id:%@ fwd_date:%@ reply_to_msg_id:%@ entities:%@)", self.flags, self.pid, self.fromId, self.chatId, (int)[self.message length], self.pts, self.ptsCount, self.date, self.fwdFromId, self.fwdDate, self.replyToMsgId, self.entities];
}
@end
@interface Api38_InitConnection ()
@property (nonatomic, strong) NSNumber * apiId;
@property (nonatomic, strong) NSString * deviceModel;
@property (nonatomic, strong) NSString * systemVersion;
@property (nonatomic, strong) NSString * appVersion;
@property (nonatomic, strong) NSString * langCode;
@property (nonatomic, strong) NSObject * query;
@end
@interface Api38_InitConnection_pinitConnection ()
@end
@implementation Api38_InitConnection
+ (Api38_InitConnection_pinitConnection *)pinitConnectionWithApiId:(NSNumber *)apiId deviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode query:(NSObject *)query
{
Api38_InitConnection_pinitConnection *_object = [[Api38_InitConnection_pinitConnection alloc] init];
_object.apiId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:apiId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.deviceModel = [Api38__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.systemVersion = [Api38__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.appVersion = [Api38__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.langCode = [Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.query = query;
return _object;
}
@end
@implementation Api38_InitConnection_pinitConnection
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x69796de9 serializeBlock:^bool (Api38_InitConnection_pinitConnection *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.apiId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.deviceModel data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.systemVersion data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.appVersion data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.langCode data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.query data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(initConnection api_id:%@ device_model:%d system_version:%d app_version:%d lang_code:%d query:%@)", self.apiId, (int)[self.deviceModel length], (int)[self.systemVersion length], (int)[self.appVersion length], (int)[self.langCode length], self.query];
}
@end
@interface Api38_MessageMedia ()
@end
@interface Api38_MessageMedia_messageMediaEmpty ()
@end
@interface Api38_MessageMedia_messageMediaGeo ()
@property (nonatomic, strong) Api38_GeoPoint * geo;
@end
@interface Api38_MessageMedia_messageMediaContact ()
@property (nonatomic, strong) NSString * phoneNumber;
@property (nonatomic, strong) NSString * firstName;
@property (nonatomic, strong) NSString * lastName;
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_MessageMedia_messageMediaDocument ()
@property (nonatomic, strong) Api38_Document * document;
@end
@interface Api38_MessageMedia_messageMediaAudio ()
@property (nonatomic, strong) Api38_Audio * audio;
@end
@interface Api38_MessageMedia_messageMediaUnsupported ()
@end
@interface Api38_MessageMedia_messageMediaWebPage ()
@property (nonatomic, strong) Api38_WebPage * webpage;
@end
@interface Api38_MessageMedia_messageMediaPhoto ()
@property (nonatomic, strong) Api38_Photo * photo;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_MessageMedia_messageMediaVideo ()
@property (nonatomic, strong) Api38_Video * video;
@property (nonatomic, strong) NSString * caption;
@end
@interface Api38_MessageMedia_messageMediaVenue ()
@property (nonatomic, strong) Api38_GeoPoint * geo;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * address;
@property (nonatomic, strong) NSString * provider;
@property (nonatomic, strong) NSString * venueId;
@end
@implementation Api38_MessageMedia
+ (Api38_MessageMedia_messageMediaEmpty *)messageMediaEmpty
{
Api38_MessageMedia_messageMediaEmpty *_object = [[Api38_MessageMedia_messageMediaEmpty alloc] init];
return _object;
}
+ (Api38_MessageMedia_messageMediaGeo *)messageMediaGeoWithGeo:(Api38_GeoPoint *)geo
{
Api38_MessageMedia_messageMediaGeo *_object = [[Api38_MessageMedia_messageMediaGeo alloc] init];
_object.geo = geo;
return _object;
}
+ (Api38_MessageMedia_messageMediaContact *)messageMediaContactWithPhoneNumber:(NSString *)phoneNumber firstName:(NSString *)firstName lastName:(NSString *)lastName userId:(NSNumber *)userId
{
Api38_MessageMedia_messageMediaContact *_object = [[Api38_MessageMedia_messageMediaContact alloc] init];
_object.phoneNumber = [Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.firstName = [Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.lastName = [Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageMedia_messageMediaDocument *)messageMediaDocumentWithDocument:(Api38_Document *)document
{
Api38_MessageMedia_messageMediaDocument *_object = [[Api38_MessageMedia_messageMediaDocument alloc] init];
_object.document = document;
return _object;
}
+ (Api38_MessageMedia_messageMediaAudio *)messageMediaAudioWithAudio:(Api38_Audio *)audio
{
Api38_MessageMedia_messageMediaAudio *_object = [[Api38_MessageMedia_messageMediaAudio alloc] init];
_object.audio = audio;
return _object;
}
+ (Api38_MessageMedia_messageMediaUnsupported *)messageMediaUnsupported
{
Api38_MessageMedia_messageMediaUnsupported *_object = [[Api38_MessageMedia_messageMediaUnsupported alloc] init];
return _object;
}
+ (Api38_MessageMedia_messageMediaWebPage *)messageMediaWebPageWithWebpage:(Api38_WebPage *)webpage
{
Api38_MessageMedia_messageMediaWebPage *_object = [[Api38_MessageMedia_messageMediaWebPage alloc] init];
_object.webpage = webpage;
return _object;
}
+ (Api38_MessageMedia_messageMediaPhoto *)messageMediaPhotoWithPhoto:(Api38_Photo *)photo caption:(NSString *)caption
{
Api38_MessageMedia_messageMediaPhoto *_object = [[Api38_MessageMedia_messageMediaPhoto alloc] init];
_object.photo = photo;
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_MessageMedia_messageMediaVideo *)messageMediaVideoWithVideo:(Api38_Video *)video caption:(NSString *)caption
{
Api38_MessageMedia_messageMediaVideo *_object = [[Api38_MessageMedia_messageMediaVideo alloc] init];
_object.video = video;
_object.caption = [Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_MessageMedia_messageMediaVenue *)messageMediaVenueWithGeo:(Api38_GeoPoint *)geo title:(NSString *)title address:(NSString *)address provider:(NSString *)provider venueId:(NSString *)venueId
{
Api38_MessageMedia_messageMediaVenue *_object = [[Api38_MessageMedia_messageMediaVenue alloc] init];
_object.geo = geo;
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.address = [Api38__Serializer addSerializerToObject:[address copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.provider = [Api38__Serializer addSerializerToObject:[provider copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.venueId = [Api38__Serializer addSerializerToObject:[venueId copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_MessageMedia_messageMediaEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3ded6320 serializeBlock:^bool (__unused Api38_MessageMedia_messageMediaEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaEmpty)"];
}
@end
@implementation Api38_MessageMedia_messageMediaGeo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x56e0d474 serializeBlock:^bool (Api38_MessageMedia_messageMediaGeo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.geo data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaGeo geo:%@)", self.geo];
}
@end
@implementation Api38_MessageMedia_messageMediaContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5e7d2f39 serializeBlock:^bool (Api38_MessageMedia_messageMediaContact *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneNumber data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.firstName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lastName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaContact phone_number:%d first_name:%d last_name:%d user_id:%@)", (int)[self.phoneNumber length], (int)[self.firstName length], (int)[self.lastName length], self.userId];
}
@end
@implementation Api38_MessageMedia_messageMediaDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2fda2204 serializeBlock:^bool (Api38_MessageMedia_messageMediaDocument *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.document data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaDocument document:%@)", self.document];
}
@end
@implementation Api38_MessageMedia_messageMediaAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc6b68300 serializeBlock:^bool (Api38_MessageMedia_messageMediaAudio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.audio data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaAudio audio:%@)", self.audio];
}
@end
@implementation Api38_MessageMedia_messageMediaUnsupported
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9f84f49e serializeBlock:^bool (__unused Api38_MessageMedia_messageMediaUnsupported *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaUnsupported)"];
}
@end
@implementation Api38_MessageMedia_messageMediaWebPage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa32dd600 serializeBlock:^bool (Api38_MessageMedia_messageMediaWebPage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.webpage data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaWebPage webpage:%@)", self.webpage];
}
@end
@implementation Api38_MessageMedia_messageMediaPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3d8ce53d serializeBlock:^bool (Api38_MessageMedia_messageMediaPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaPhoto photo:%@ caption:%d)", self.photo, (int)[self.caption length]];
}
@end
@implementation Api38_MessageMedia_messageMediaVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5bcf1675 serializeBlock:^bool (Api38_MessageMedia_messageMediaVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.video data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.caption data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaVideo video:%@ caption:%d)", self.video, (int)[self.caption length]];
}
@end
@implementation Api38_MessageMedia_messageMediaVenue
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7912b71f serializeBlock:^bool (Api38_MessageMedia_messageMediaVenue *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.geo data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.address data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.provider data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.venueId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageMediaVenue geo:%@ title:%d address:%d provider:%d venue_id:%d)", self.geo, (int)[self.title length], (int)[self.address length], (int)[self.provider length], (int)[self.venueId length]];
}
@end
@interface Api38_Null ()
@end
@interface Api38_Null_null ()
@end
@implementation Api38_Null
+ (Api38_Null_null *)null
{
Api38_Null_null *_object = [[Api38_Null_null alloc] init];
return _object;
}
@end
@implementation Api38_Null_null
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x56730bcc serializeBlock:^bool (__unused Api38_Null_null *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(null)"];
}
@end
@interface Api38_DocumentAttribute ()
@end
@interface Api38_DocumentAttribute_documentAttributeImageSize ()
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@end
@interface Api38_DocumentAttribute_documentAttributeAnimated ()
@end
@interface Api38_DocumentAttribute_documentAttributeVideo ()
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@end
@interface Api38_DocumentAttribute_documentAttributeFilename ()
@property (nonatomic, strong) NSString * fileName;
@end
@interface Api38_DocumentAttribute_documentAttributeSticker ()
@property (nonatomic, strong) NSString * alt;
@property (nonatomic, strong) Api38_InputStickerSet * stickerset;
@end
@interface Api38_DocumentAttribute_documentAttributeAudio ()
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSString * performer;
@end
@implementation Api38_DocumentAttribute
+ (Api38_DocumentAttribute_documentAttributeImageSize *)documentAttributeImageSizeWithW:(NSNumber *)w h:(NSNumber *)h
{
Api38_DocumentAttribute_documentAttributeImageSize *_object = [[Api38_DocumentAttribute_documentAttributeImageSize alloc] init];
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_DocumentAttribute_documentAttributeAnimated *)documentAttributeAnimated
{
Api38_DocumentAttribute_documentAttributeAnimated *_object = [[Api38_DocumentAttribute_documentAttributeAnimated alloc] init];
return _object;
}
+ (Api38_DocumentAttribute_documentAttributeVideo *)documentAttributeVideoWithDuration:(NSNumber *)duration w:(NSNumber *)w h:(NSNumber *)h
{
Api38_DocumentAttribute_documentAttributeVideo *_object = [[Api38_DocumentAttribute_documentAttributeVideo alloc] init];
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_DocumentAttribute_documentAttributeFilename *)documentAttributeFilenameWithFileName:(NSString *)fileName
{
Api38_DocumentAttribute_documentAttributeFilename *_object = [[Api38_DocumentAttribute_documentAttributeFilename alloc] init];
_object.fileName = [Api38__Serializer addSerializerToObject:[fileName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_DocumentAttribute_documentAttributeSticker *)documentAttributeStickerWithAlt:(NSString *)alt stickerset:(Api38_InputStickerSet *)stickerset
{
Api38_DocumentAttribute_documentAttributeSticker *_object = [[Api38_DocumentAttribute_documentAttributeSticker alloc] init];
_object.alt = [Api38__Serializer addSerializerToObject:[alt copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.stickerset = stickerset;
return _object;
}
+ (Api38_DocumentAttribute_documentAttributeAudio *)documentAttributeAudioWithDuration:(NSNumber *)duration title:(NSString *)title performer:(NSString *)performer
{
Api38_DocumentAttribute_documentAttributeAudio *_object = [[Api38_DocumentAttribute_documentAttributeAudio alloc] init];
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.performer = [Api38__Serializer addSerializerToObject:[performer copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_DocumentAttribute_documentAttributeImageSize
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6c37c15c serializeBlock:^bool (Api38_DocumentAttribute_documentAttributeImageSize *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeImageSize w:%@ h:%@)", self.w, self.h];
}
@end
@implementation Api38_DocumentAttribute_documentAttributeAnimated
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x11b58939 serializeBlock:^bool (__unused Api38_DocumentAttribute_documentAttributeAnimated *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeAnimated)"];
}
@end
@implementation Api38_DocumentAttribute_documentAttributeVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5910cccb serializeBlock:^bool (Api38_DocumentAttribute_documentAttributeVideo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeVideo duration:%@ w:%@ h:%@)", self.duration, self.w, self.h];
}
@end
@implementation Api38_DocumentAttribute_documentAttributeFilename
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x15590068 serializeBlock:^bool (Api38_DocumentAttribute_documentAttributeFilename *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.fileName data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeFilename file_name:%d)", (int)[self.fileName length]];
}
@end
@implementation Api38_DocumentAttribute_documentAttributeSticker
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3a556302 serializeBlock:^bool (Api38_DocumentAttribute_documentAttributeSticker *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.alt data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.stickerset data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeSticker alt:%d stickerset:%@)", (int)[self.alt length], self.stickerset];
}
@end
@implementation Api38_DocumentAttribute_documentAttributeAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xded218e0 serializeBlock:^bool (Api38_DocumentAttribute_documentAttributeAudio *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.performer data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentAttributeAudio duration:%@ title:%d performer:%d)", self.duration, (int)[self.title length], (int)[self.performer length]];
}
@end
@interface Api38_account_Authorizations ()
@property (nonatomic, strong) NSArray * authorizations;
@end
@interface Api38_account_Authorizations_account_authorizations ()
@end
@implementation Api38_account_Authorizations
+ (Api38_account_Authorizations_account_authorizations *)account_authorizationsWithAuthorizations:(NSArray *)authorizations
{
Api38_account_Authorizations_account_authorizations *_object = [[Api38_account_Authorizations_account_authorizations alloc] init];
_object.authorizations =
({
NSMutableArray *authorizations_copy = [[NSMutableArray alloc] initWithCapacity:authorizations.count];
for (id authorizations_item in authorizations)
{
[authorizations_copy addObject:authorizations_item];
}
id authorizations_result = [Api38__Serializer addSerializerToObject:authorizations_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; authorizations_result;});
return _object;
}
@end
@implementation Api38_account_Authorizations_account_authorizations
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1250abde serializeBlock:^bool (Api38_account_Authorizations_account_authorizations *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.authorizations data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.authorizations authorizations:%@)", self.authorizations];
}
@end
@interface Api38_ChatPhoto ()
@end
@interface Api38_ChatPhoto_chatPhotoEmpty ()
@end
@interface Api38_ChatPhoto_chatPhoto ()
@property (nonatomic, strong) Api38_FileLocation * photoSmall;
@property (nonatomic, strong) Api38_FileLocation * photoBig;
@end
@implementation Api38_ChatPhoto
+ (Api38_ChatPhoto_chatPhotoEmpty *)chatPhotoEmpty
{
Api38_ChatPhoto_chatPhotoEmpty *_object = [[Api38_ChatPhoto_chatPhotoEmpty alloc] init];
return _object;
}
+ (Api38_ChatPhoto_chatPhoto *)chatPhotoWithPhotoSmall:(Api38_FileLocation *)photoSmall photoBig:(Api38_FileLocation *)photoBig
{
Api38_ChatPhoto_chatPhoto *_object = [[Api38_ChatPhoto_chatPhoto alloc] init];
_object.photoSmall = photoSmall;
_object.photoBig = photoBig;
return _object;
}
@end
@implementation Api38_ChatPhoto_chatPhotoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x37c1011c serializeBlock:^bool (__unused Api38_ChatPhoto_chatPhotoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatPhotoEmpty)"];
}
@end
@implementation Api38_ChatPhoto_chatPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6153276a serializeBlock:^bool (Api38_ChatPhoto_chatPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photoSmall data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.photoBig data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatPhoto photo_small:%@ photo_big:%@)", self.photoSmall, self.photoBig];
}
@end
@interface Api38_InputStickerSet ()
@end
@interface Api38_InputStickerSet_inputStickerSetEmpty ()
@end
@interface Api38_InputStickerSet_inputStickerSetID ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputStickerSet_inputStickerSetShortName ()
@property (nonatomic, strong) NSString * shortName;
@end
@implementation Api38_InputStickerSet
+ (Api38_InputStickerSet_inputStickerSetEmpty *)inputStickerSetEmpty
{
Api38_InputStickerSet_inputStickerSetEmpty *_object = [[Api38_InputStickerSet_inputStickerSetEmpty alloc] init];
return _object;
}
+ (Api38_InputStickerSet_inputStickerSetID *)inputStickerSetIDWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputStickerSet_inputStickerSetID *_object = [[Api38_InputStickerSet_inputStickerSetID alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputStickerSet_inputStickerSetShortName *)inputStickerSetShortNameWithShortName:(NSString *)shortName
{
Api38_InputStickerSet_inputStickerSetShortName *_object = [[Api38_InputStickerSet_inputStickerSetShortName alloc] init];
_object.shortName = [Api38__Serializer addSerializerToObject:[shortName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_InputStickerSet_inputStickerSetEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xffb62b95 serializeBlock:^bool (__unused Api38_InputStickerSet_inputStickerSetEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputStickerSetEmpty)"];
}
@end
@implementation Api38_InputStickerSet_inputStickerSetID
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9de7a269 serializeBlock:^bool (Api38_InputStickerSet_inputStickerSetID *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputStickerSetID id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@implementation Api38_InputStickerSet_inputStickerSetShortName
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x861cc8a0 serializeBlock:^bool (Api38_InputStickerSet_inputStickerSetShortName *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.shortName data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputStickerSetShortName short_name:%d)", (int)[self.shortName length]];
}
@end
@interface Api38_BotInfo ()
@end
@interface Api38_BotInfo_botInfoEmpty ()
@end
@interface Api38_BotInfo_botInfo ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * version;
@property (nonatomic, strong) NSString * shareText;
@property (nonatomic, strong) NSString * pdescription;
@property (nonatomic, strong) NSArray * commands;
@end
@implementation Api38_BotInfo
+ (Api38_BotInfo_botInfoEmpty *)botInfoEmpty
{
Api38_BotInfo_botInfoEmpty *_object = [[Api38_BotInfo_botInfoEmpty alloc] init];
return _object;
}
+ (Api38_BotInfo_botInfo *)botInfoWithUserId:(NSNumber *)userId version:(NSNumber *)version shareText:(NSString *)shareText pdescription:(NSString *)pdescription commands:(NSArray *)commands
{
Api38_BotInfo_botInfo *_object = [[Api38_BotInfo_botInfo alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.shareText = [Api38__Serializer addSerializerToObject:[shareText copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pdescription = [Api38__Serializer addSerializerToObject:[pdescription copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.commands =
({
NSMutableArray *commands_copy = [[NSMutableArray alloc] initWithCapacity:commands.count];
for (id commands_item in commands)
{
[commands_copy addObject:commands_item];
}
id commands_result = [Api38__Serializer addSerializerToObject:commands_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; commands_result;});
return _object;
}
@end
@implementation Api38_BotInfo_botInfoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbb2e37ce serializeBlock:^bool (__unused Api38_BotInfo_botInfoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(botInfoEmpty)"];
}
@end
@implementation Api38_BotInfo_botInfo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9cf585d serializeBlock:^bool (Api38_BotInfo_botInfo *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.shareText data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pdescription data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.commands data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(botInfo user_id:%@ version:%@ share_text:%d description:%d commands:%@)", self.userId, self.version, (int)[self.shareText length], (int)[self.pdescription length], self.commands];
}
@end
@interface Api38_contacts_Suggested ()
@property (nonatomic, strong) NSArray * results;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Suggested_contacts_suggested ()
@end
@implementation Api38_contacts_Suggested
+ (Api38_contacts_Suggested_contacts_suggested *)contacts_suggestedWithResults:(NSArray *)results users:(NSArray *)users
{
Api38_contacts_Suggested_contacts_suggested *_object = [[Api38_contacts_Suggested_contacts_suggested alloc] init];
_object.results =
({
NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count];
for (id results_item in results)
{
[results_copy addObject:results_item];
}
id results_result = [Api38__Serializer addSerializerToObject:results_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; results_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_Suggested_contacts_suggested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5649dcc5 serializeBlock:^bool (Api38_contacts_Suggested_contacts_suggested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.results data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.suggested results:%@ users:%@)", self.results, self.users];
}
@end
@interface Api38_updates_State ()
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * qts;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * seq;
@property (nonatomic, strong) NSNumber * unreadCount;
@end
@interface Api38_updates_State_updates_state ()
@end
@implementation Api38_updates_State
+ (Api38_updates_State_updates_state *)updates_stateWithPts:(NSNumber *)pts qts:(NSNumber *)qts date:(NSNumber *)date seq:(NSNumber *)seq unreadCount:(NSNumber *)unreadCount
{
Api38_updates_State_updates_state *_object = [[Api38_updates_State_updates_state alloc] init];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.qts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:qts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.seq = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:seq] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_updates_State_updates_state
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa56c2a3e serializeBlock:^bool (Api38_updates_State_updates_state *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.qts data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.seq data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadCount data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.state pts:%@ qts:%@ date:%@ seq:%@ unread_count:%@)", self.pts, self.qts, self.date, self.seq, self.unreadCount];
}
@end
@interface Api38_User ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_User_userEmpty ()
@end
@interface Api38_User_user ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSString * firstName;
@property (nonatomic, strong) NSString * lastName;
@property (nonatomic, strong) NSString * username;
@property (nonatomic, strong) NSString * phone;
@property (nonatomic, strong) Api38_UserProfilePhoto * photo;
@property (nonatomic, strong) Api38_UserStatus * status;
@property (nonatomic, strong) NSNumber * botInfoVersion;
@end
@implementation Api38_User
+ (Api38_User_userEmpty *)userEmptyWithPid:(NSNumber *)pid
{
Api38_User_userEmpty *_object = [[Api38_User_userEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_User_user *)userWithFlags:(NSNumber *)flags pid:(NSNumber *)pid accessHash:(NSNumber *)accessHash firstName:(NSString *)firstName lastName:(NSString *)lastName username:(NSString *)username phone:(NSString *)phone photo:(Api38_UserProfilePhoto *)photo status:(Api38_UserStatus *)status botInfoVersion:(NSNumber *)botInfoVersion
{
Api38_User_user *_object = [[Api38_User_user alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.firstName = [Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.lastName = [Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.username = [Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.phone = [Api38__Serializer addSerializerToObject:[phone copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.photo = photo;
_object.status = status;
_object.botInfoVersion = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:botInfoVersion] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_User_userEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x200250ba serializeBlock:^bool (Api38_User_userEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userEmpty id:%@)", self.pid];
}
@end
@implementation Api38_User_user
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x22e49072 serializeBlock:^bool (Api38_User_user *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.firstName data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.lastName data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:object.username data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 4)) {
if (![Api38__Environment serializeObject:object.phone data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 5)) {
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 6)) {
if (![Api38__Environment serializeObject:object.status data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 14)) {
if (![Api38__Environment serializeObject:object.botInfoVersion data:data addSignature:false])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(user flags:%@ id:%@ access_hash:%@ first_name:%d last_name:%d username:%d phone:%d photo:%@ status:%@ bot_info_version:%@)", self.flags, self.pid, self.accessHash, (int)[self.firstName length], (int)[self.lastName length], (int)[self.username length], (int)[self.phone length], self.photo, self.status, self.botInfoVersion];
}
@end
@interface Api38_Message ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Message_messageEmpty ()
@end
@interface Api38_Message_message ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * fromId;
@property (nonatomic, strong) Api38_Peer * toId;
@property (nonatomic, strong) Api38_Peer * fwdFromId;
@property (nonatomic, strong) NSNumber * fwdDate;
@property (nonatomic, strong) NSNumber * replyToMsgId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSString * message;
@property (nonatomic, strong) Api38_MessageMedia * media;
@property (nonatomic, strong) Api38_ReplyMarkup * replyMarkup;
@property (nonatomic, strong) NSArray * entities;
@property (nonatomic, strong) NSNumber * views;
@end
@interface Api38_Message_messageService ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * fromId;
@property (nonatomic, strong) Api38_Peer * toId;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) Api38_MessageAction * action;
@end
@implementation Api38_Message
+ (Api38_Message_messageEmpty *)messageEmptyWithPid:(NSNumber *)pid
{
Api38_Message_messageEmpty *_object = [[Api38_Message_messageEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Message_message *)messageWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId toId:(Api38_Peer *)toId fwdFromId:(Api38_Peer *)fwdFromId fwdDate:(NSNumber *)fwdDate replyToMsgId:(NSNumber *)replyToMsgId date:(NSNumber *)date message:(NSString *)message media:(Api38_MessageMedia *)media replyMarkup:(Api38_ReplyMarkup *)replyMarkup entities:(NSArray *)entities views:(NSNumber *)views
{
Api38_Message_message *_object = [[Api38_Message_message alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.fromId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fromId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.toId = toId;
_object.fwdFromId = fwdFromId;
_object.fwdDate = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fwdDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.replyToMsgId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.message = [Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.media = media;
_object.replyMarkup = replyMarkup;
_object.entities =
({
NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count];
for (id entities_item in entities)
{
[entities_copy addObject:entities_item];
}
id entities_result = [Api38__Serializer addSerializerToObject:entities_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; entities_result;});
_object.views = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:views] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Message_messageService *)messageServiceWithFlags:(NSNumber *)flags pid:(NSNumber *)pid fromId:(NSNumber *)fromId toId:(Api38_Peer *)toId date:(NSNumber *)date action:(Api38_MessageAction *)action
{
Api38_Message_messageService *_object = [[Api38_Message_messageService alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.fromId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fromId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.toId = toId;
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.action = action;
return _object;
}
@end
@implementation Api38_Message_messageEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x83e5de54 serializeBlock:^bool (Api38_Message_messageEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Message_message
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5ba66c13 serializeBlock:^bool (Api38_Message_message *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 8)) {
if (![Api38__Environment serializeObject:object.fromId data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.toId data:data addSignature:true])
return false;
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdFromId data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:object.fwdDate data:data addSignature:false])
return false;
}
if ([object.flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:object.replyToMsgId data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.message data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 9)) {
if (![Api38__Environment serializeObject:object.media data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 6)) {
if (![Api38__Environment serializeObject:object.replyMarkup data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 7)) {
if (![Api38__Environment serializeObject:object.entities data:data addSignature:true])
return false;
}
if ([object.flags intValue] & (1 << 10)) {
if (![Api38__Environment serializeObject:object.views data:data addSignature:false])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(message flags:%@ id:%@ from_id:%@ to_id:%@ fwd_from_id:%@ fwd_date:%@ reply_to_msg_id:%@ date:%@ message:%d media:%@ reply_markup:%@ entities:%@ views:%@)", self.flags, self.pid, self.fromId, self.toId, self.fwdFromId, self.fwdDate, self.replyToMsgId, self.date, (int)[self.message length], self.media, self.replyMarkup, self.entities, self.views];
}
@end
@implementation Api38_Message_messageService
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc06b9607 serializeBlock:^bool (Api38_Message_messageService *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 8)) {
if (![Api38__Environment serializeObject:object.fromId data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.toId data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.action data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageService flags:%@ id:%@ from_id:%@ to_id:%@ date:%@ action:%@)", self.flags, self.pid, self.fromId, self.toId, self.date, self.action];
}
@end
@interface Api38_InputFileLocation ()
@end
@interface Api38_InputFileLocation_inputFileLocation ()
@property (nonatomic, strong) NSNumber * volumeId;
@property (nonatomic, strong) NSNumber * localId;
@property (nonatomic, strong) NSNumber * secret;
@end
@interface Api38_InputFileLocation_inputVideoFileLocation ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputFileLocation_inputEncryptedFileLocation ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputFileLocation_inputAudioFileLocation ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputFileLocation_inputDocumentFileLocation ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputFileLocation
+ (Api38_InputFileLocation_inputFileLocation *)inputFileLocationWithVolumeId:(NSNumber *)volumeId localId:(NSNumber *)localId secret:(NSNumber *)secret
{
Api38_InputFileLocation_inputFileLocation *_object = [[Api38_InputFileLocation_inputFileLocation alloc] init];
_object.volumeId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:volumeId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.localId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:localId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.secret = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:secret] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputFileLocation_inputVideoFileLocation *)inputVideoFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputFileLocation_inputVideoFileLocation *_object = [[Api38_InputFileLocation_inputVideoFileLocation alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputFileLocation_inputEncryptedFileLocation *)inputEncryptedFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputFileLocation_inputEncryptedFileLocation *_object = [[Api38_InputFileLocation_inputEncryptedFileLocation alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputFileLocation_inputAudioFileLocation *)inputAudioFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputFileLocation_inputAudioFileLocation *_object = [[Api38_InputFileLocation_inputAudioFileLocation alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_InputFileLocation_inputDocumentFileLocation *)inputDocumentFileLocationWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputFileLocation_inputDocumentFileLocation *_object = [[Api38_InputFileLocation_inputDocumentFileLocation alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputFileLocation_inputFileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x14637196 serializeBlock:^bool (Api38_InputFileLocation_inputFileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.volumeId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.localId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.secret data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputFileLocation volume_id:%@ local_id:%@ secret:%@)", self.volumeId, self.localId, self.secret];
}
@end
@implementation Api38_InputFileLocation_inputVideoFileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3d0364ec serializeBlock:^bool (Api38_InputFileLocation_inputVideoFileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputVideoFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@implementation Api38_InputFileLocation_inputEncryptedFileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf5235d55 serializeBlock:^bool (Api38_InputFileLocation_inputEncryptedFileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputEncryptedFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@implementation Api38_InputFileLocation_inputAudioFileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x74dc404d serializeBlock:^bool (Api38_InputFileLocation_inputAudioFileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputAudioFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@implementation Api38_InputFileLocation_inputDocumentFileLocation
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4e45abe9 serializeBlock:^bool (Api38_InputFileLocation_inputDocumentFileLocation *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputDocumentFileLocation id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_GeoPoint ()
@end
@interface Api38_GeoPoint_geoPointEmpty ()
@end
@interface Api38_GeoPoint_geoPoint ()
@property (nonatomic, strong) NSNumber * plong;
@property (nonatomic, strong) NSNumber * lat;
@end
@interface Api38_GeoPoint_geoPlace ()
@property (nonatomic, strong) NSNumber * plong;
@property (nonatomic, strong) NSNumber * lat;
@property (nonatomic, strong) Api38_GeoPlaceName * name;
@end
@implementation Api38_GeoPoint
+ (Api38_GeoPoint_geoPointEmpty *)geoPointEmpty
{
Api38_GeoPoint_geoPointEmpty *_object = [[Api38_GeoPoint_geoPointEmpty alloc] init];
return _object;
}
+ (Api38_GeoPoint_geoPoint *)geoPointWithPlong:(NSNumber *)plong lat:(NSNumber *)lat
{
Api38_GeoPoint_geoPoint *_object = [[Api38_GeoPoint_geoPoint alloc] init];
_object.plong = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:plong] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.lat = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:lat] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
return _object;
}
+ (Api38_GeoPoint_geoPlace *)geoPlaceWithPlong:(NSNumber *)plong lat:(NSNumber *)lat name:(Api38_GeoPlaceName *)name
{
Api38_GeoPoint_geoPlace *_object = [[Api38_GeoPoint_geoPlace alloc] init];
_object.plong = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:plong] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.lat = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:lat] serializer:[[Api38_BuiltinSerializer_Double alloc] init]];
_object.name = name;
return _object;
}
@end
@implementation Api38_GeoPoint_geoPointEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1117dd5f serializeBlock:^bool (__unused Api38_GeoPoint_geoPointEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(geoPointEmpty)"];
}
@end
@implementation Api38_GeoPoint_geoPoint
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2049d70c serializeBlock:^bool (Api38_GeoPoint_geoPoint *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.plong data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lat data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(geoPoint long:%@ lat:%@)", self.plong, self.lat];
}
@end
@implementation Api38_GeoPoint_geoPlace
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6e9e21ca serializeBlock:^bool (Api38_GeoPoint_geoPlace *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.plong data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.lat data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.name data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(geoPlace long:%@ lat:%@ name:%@)", self.plong, self.lat, self.name];
}
@end
@interface Api38_InputPhoneCall ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@interface Api38_InputPhoneCall_inputPhoneCall ()
@end
@implementation Api38_InputPhoneCall
+ (Api38_InputPhoneCall_inputPhoneCall *)inputPhoneCallWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputPhoneCall_inputPhoneCall *_object = [[Api38_InputPhoneCall_inputPhoneCall alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputPhoneCall_inputPhoneCall
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1e36fded serializeBlock:^bool (Api38_InputPhoneCall_inputPhoneCall *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhoneCall id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_ReceivedNotifyMessage ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * flags;
@end
@interface Api38_ReceivedNotifyMessage_receivedNotifyMessage ()
@end
@implementation Api38_ReceivedNotifyMessage
+ (Api38_ReceivedNotifyMessage_receivedNotifyMessage *)receivedNotifyMessageWithPid:(NSNumber *)pid flags:(NSNumber *)flags
{
Api38_ReceivedNotifyMessage_receivedNotifyMessage *_object = [[Api38_ReceivedNotifyMessage_receivedNotifyMessage alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ReceivedNotifyMessage_receivedNotifyMessage
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa384b779 serializeBlock:^bool (Api38_ReceivedNotifyMessage_receivedNotifyMessage *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(receivedNotifyMessage id:%@ flags:%@)", self.pid, self.flags];
}
@end
@interface Api38_ChatParticipants ()
@property (nonatomic, strong) NSNumber * chatId;
@end
@interface Api38_ChatParticipants_chatParticipants ()
@property (nonatomic, strong) NSNumber * adminId;
@property (nonatomic, strong) NSArray * participants;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_ChatParticipants_chatParticipantsForbidden ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) Api38_ChatParticipant * selfParticipant;
@end
@implementation Api38_ChatParticipants
+ (Api38_ChatParticipants_chatParticipants *)chatParticipantsWithChatId:(NSNumber *)chatId adminId:(NSNumber *)adminId participants:(NSArray *)participants version:(NSNumber *)version
{
Api38_ChatParticipants_chatParticipants *_object = [[Api38_ChatParticipants_chatParticipants alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.adminId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:adminId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participants =
({
NSMutableArray *participants_copy = [[NSMutableArray alloc] initWithCapacity:participants.count];
for (id participants_item in participants)
{
[participants_copy addObject:participants_item];
}
id participants_result = [Api38__Serializer addSerializerToObject:participants_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; participants_result;});
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_ChatParticipants_chatParticipantsForbidden *)chatParticipantsForbiddenWithFlags:(NSNumber *)flags chatId:(NSNumber *)chatId selfParticipant:(Api38_ChatParticipant *)selfParticipant
{
Api38_ChatParticipants_chatParticipantsForbidden *_object = [[Api38_ChatParticipants_chatParticipantsForbidden alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.selfParticipant = selfParticipant;
return _object;
}
@end
@implementation Api38_ChatParticipants_chatParticipants
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7841b415 serializeBlock:^bool (Api38_ChatParticipants_chatParticipants *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.adminId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participants data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatParticipants chat_id:%@ admin_id:%@ participants:%@ version:%@)", self.chatId, self.adminId, self.participants, self.version];
}
@end
@implementation Api38_ChatParticipants_chatParticipantsForbidden
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfc900c2b serializeBlock:^bool (Api38_ChatParticipants_chatParticipantsForbidden *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:object.selfParticipant data:data addSignature:true])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatParticipantsForbidden flags:%@ chat_id:%@ self_participant:%@)", self.flags, self.chatId, self.selfParticipant];
}
@end
@interface Api38_NearestDc ()
@property (nonatomic, strong) NSString * country;
@property (nonatomic, strong) NSNumber * thisDc;
@property (nonatomic, strong) NSNumber * nearestDc;
@end
@interface Api38_NearestDc_nearestDc ()
@end
@implementation Api38_NearestDc
+ (Api38_NearestDc_nearestDc *)nearestDcWithCountry:(NSString *)country thisDc:(NSNumber *)thisDc nearestDc:(NSNumber *)nearestDc
{
Api38_NearestDc_nearestDc *_object = [[Api38_NearestDc_nearestDc alloc] init];
_object.country = [Api38__Serializer addSerializerToObject:[country copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.thisDc = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:thisDc] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.nearestDc = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:nearestDc] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_NearestDc_nearestDc
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8e1a1775 serializeBlock:^bool (Api38_NearestDc_nearestDc *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.country data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.thisDc data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.nearestDc data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(nearestDc country:%d this_dc:%@ nearest_dc:%@)", (int)[self.country length], self.thisDc, self.nearestDc];
}
@end
@interface Api38_photos_Photos ()
@property (nonatomic, strong) NSArray * photos;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_photos_Photos_photos_photos ()
@end
@interface Api38_photos_Photos_photos_photosSlice ()
@property (nonatomic, strong) NSNumber * count;
@end
@implementation Api38_photos_Photos
+ (Api38_photos_Photos_photos_photos *)photos_photosWithPhotos:(NSArray *)photos users:(NSArray *)users
{
Api38_photos_Photos_photos_photos *_object = [[Api38_photos_Photos_photos_photos alloc] init];
_object.photos =
({
NSMutableArray *photos_copy = [[NSMutableArray alloc] initWithCapacity:photos.count];
for (id photos_item in photos)
{
[photos_copy addObject:photos_item];
}
id photos_result = [Api38__Serializer addSerializerToObject:photos_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; photos_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_photos_Photos_photos_photosSlice *)photos_photosSliceWithCount:(NSNumber *)count photos:(NSArray *)photos users:(NSArray *)users
{
Api38_photos_Photos_photos_photosSlice *_object = [[Api38_photos_Photos_photos_photosSlice alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.photos =
({
NSMutableArray *photos_copy = [[NSMutableArray alloc] initWithCapacity:photos.count];
for (id photos_item in photos)
{
[photos_copy addObject:photos_item];
}
id photos_result = [Api38__Serializer addSerializerToObject:photos_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; photos_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_photos_Photos_photos_photos
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8dca6aa5 serializeBlock:^bool (Api38_photos_Photos_photos_photos *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photos data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photos.photos photos:%@ users:%@)", self.photos, self.users];
}
@end
@implementation Api38_photos_Photos_photos_photosSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x15051f54 serializeBlock:^bool (Api38_photos_Photos_photos_photosSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.photos data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(photos.photosSlice count:%@ photos:%@ users:%@)", self.count, self.photos, self.users];
}
@end
@interface Api38_contacts_ImportedContacts ()
@property (nonatomic, strong) NSArray * imported;
@property (nonatomic, strong) NSArray * retryContacts;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_ImportedContacts_contacts_importedContacts ()
@end
@implementation Api38_contacts_ImportedContacts
+ (Api38_contacts_ImportedContacts_contacts_importedContacts *)contacts_importedContactsWithImported:(NSArray *)imported retryContacts:(NSArray *)retryContacts users:(NSArray *)users
{
Api38_contacts_ImportedContacts_contacts_importedContacts *_object = [[Api38_contacts_ImportedContacts_contacts_importedContacts alloc] init];
_object.imported =
({
NSMutableArray *imported_copy = [[NSMutableArray alloc] initWithCapacity:imported.count];
for (id imported_item in imported)
{
[imported_copy addObject:imported_item];
}
id imported_result = [Api38__Serializer addSerializerToObject:imported_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; imported_result;});
_object.retryContacts =
({
NSMutableArray *retryContacts_copy = [[NSMutableArray alloc] initWithCapacity:retryContacts.count];
for (id retryContacts_item in retryContacts)
{
[retryContacts_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:retryContacts_item] serializer:[[Api38_BuiltinSerializer_Long alloc] init]]];
}
id retryContacts_result = [Api38__Serializer addSerializerToObject:retryContacts_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; retryContacts_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_ImportedContacts_contacts_importedContacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xad524315 serializeBlock:^bool (Api38_contacts_ImportedContacts_contacts_importedContacts *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.imported data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.retryContacts data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.importedContacts imported:%@ retry_contacts:%@ users:%@)", self.imported, self.retryContacts, self.users];
}
@end
@interface Api38_Bool ()
@end
@interface Api38_Bool_boolFalse ()
@end
@interface Api38_Bool_boolTrue ()
@end
@implementation Api38_Bool
+ (Api38_Bool_boolFalse *)boolFalse
{
Api38_Bool_boolFalse *_object = [[Api38_Bool_boolFalse alloc] init];
return _object;
}
+ (Api38_Bool_boolTrue *)boolTrue
{
Api38_Bool_boolTrue *_object = [[Api38_Bool_boolTrue alloc] init];
return _object;
}
@end
@implementation Api38_Bool_boolFalse
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbc799737 serializeBlock:^bool (__unused Api38_Bool_boolFalse *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(boolFalse)"];
}
@end
@implementation Api38_Bool_boolTrue
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x997275b5 serializeBlock:^bool (__unused Api38_Bool_boolTrue *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(boolTrue)"];
}
@end
@interface Api38_help_Support ()
@property (nonatomic, strong) NSString * phoneNumber;
@property (nonatomic, strong) Api38_User * user;
@end
@interface Api38_help_Support_help_support ()
@end
@implementation Api38_help_Support
+ (Api38_help_Support_help_support *)help_supportWithPhoneNumber:(NSString *)phoneNumber user:(Api38_User *)user
{
Api38_help_Support_help_support *_object = [[Api38_help_Support_help_support alloc] init];
_object.phoneNumber = [Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.user = user;
return _object;
}
@end
@implementation Api38_help_Support_help_support
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x17c6b5f6 serializeBlock:^bool (Api38_help_Support_help_support *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneNumber data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.user data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.support phone_number:%d user:%@)", (int)[self.phoneNumber length], self.user];
}
@end
@interface Api38_ChatLocated ()
@property (nonatomic, strong) NSNumber * chatId;
@property (nonatomic, strong) NSNumber * distance;
@end
@interface Api38_ChatLocated_chatLocated ()
@end
@implementation Api38_ChatLocated
+ (Api38_ChatLocated_chatLocated *)chatLocatedWithChatId:(NSNumber *)chatId distance:(NSNumber *)distance
{
Api38_ChatLocated_chatLocated *_object = [[Api38_ChatLocated_chatLocated alloc] init];
_object.chatId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.distance = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:distance] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ChatLocated_chatLocated
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3631cf4c serializeBlock:^bool (Api38_ChatLocated_chatLocated *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.chatId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.distance data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatLocated chat_id:%@ distance:%@)", self.chatId, self.distance];
}
@end
@interface Api38_MessagesFilter ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterEmpty ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterPhotos ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterVideo ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterPhotoVideo ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterDocument ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterAudio ()
@end
@interface Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments ()
@end
@implementation Api38_MessagesFilter
+ (Api38_MessagesFilter_inputMessagesFilterEmpty *)inputMessagesFilterEmpty
{
Api38_MessagesFilter_inputMessagesFilterEmpty *_object = [[Api38_MessagesFilter_inputMessagesFilterEmpty alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterPhotos *)inputMessagesFilterPhotos
{
Api38_MessagesFilter_inputMessagesFilterPhotos *_object = [[Api38_MessagesFilter_inputMessagesFilterPhotos alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterVideo *)inputMessagesFilterVideo
{
Api38_MessagesFilter_inputMessagesFilterVideo *_object = [[Api38_MessagesFilter_inputMessagesFilterVideo alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterPhotoVideo *)inputMessagesFilterPhotoVideo
{
Api38_MessagesFilter_inputMessagesFilterPhotoVideo *_object = [[Api38_MessagesFilter_inputMessagesFilterPhotoVideo alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterDocument *)inputMessagesFilterDocument
{
Api38_MessagesFilter_inputMessagesFilterDocument *_object = [[Api38_MessagesFilter_inputMessagesFilterDocument alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterAudio *)inputMessagesFilterAudio
{
Api38_MessagesFilter_inputMessagesFilterAudio *_object = [[Api38_MessagesFilter_inputMessagesFilterAudio alloc] init];
return _object;
}
+ (Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *)inputMessagesFilterPhotoVideoDocuments
{
Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *_object = [[Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments alloc] init];
return _object;
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x57e2f66c serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterEmpty)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterPhotos
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9609a51c serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterPhotos *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotos)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9fc00e65 serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterVideo *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterVideo)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterPhotoVideo
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x56e9f0e4 serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterPhotoVideo *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotoVideo)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterDocument
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x9eddf188 serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterDocument *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterDocument)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterAudio
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xcfc87522 serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterAudio *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterAudio)"];
}
@end
@implementation Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd95e73bb serializeBlock:^bool (__unused Api38_MessagesFilter_inputMessagesFilterPhotoVideoDocuments *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputMessagesFilterPhotoVideoDocuments)"];
}
@end
@interface Api38_messages_Dialogs ()
@property (nonatomic, strong) NSArray * dialogs;
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_messages_Dialogs_messages_dialogs ()
@end
@interface Api38_messages_Dialogs_messages_dialogsSlice ()
@property (nonatomic, strong) NSNumber * count;
@end
@implementation Api38_messages_Dialogs
+ (Api38_messages_Dialogs_messages_dialogs *)messages_dialogsWithDialogs:(NSArray *)dialogs messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Dialogs_messages_dialogs *_object = [[Api38_messages_Dialogs_messages_dialogs alloc] init];
_object.dialogs =
({
NSMutableArray *dialogs_copy = [[NSMutableArray alloc] initWithCapacity:dialogs.count];
for (id dialogs_item in dialogs)
{
[dialogs_copy addObject:dialogs_item];
}
id dialogs_result = [Api38__Serializer addSerializerToObject:dialogs_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; dialogs_result;});
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_messages_Dialogs_messages_dialogsSlice *)messages_dialogsSliceWithCount:(NSNumber *)count dialogs:(NSArray *)dialogs messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Dialogs_messages_dialogsSlice *_object = [[Api38_messages_Dialogs_messages_dialogsSlice alloc] init];
_object.count = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:count] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.dialogs =
({
NSMutableArray *dialogs_copy = [[NSMutableArray alloc] initWithCapacity:dialogs.count];
for (id dialogs_item in dialogs)
{
[dialogs_copy addObject:dialogs_item];
}
id dialogs_result = [Api38__Serializer addSerializerToObject:dialogs_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; dialogs_result;});
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_messages_Dialogs_messages_dialogs
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x15ba6c40 serializeBlock:^bool (Api38_messages_Dialogs_messages_dialogs *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.dialogs data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.dialogs dialogs:%@ messages:%@ chats:%@ users:%@)", self.dialogs, self.messages, self.chats, self.users];
}
@end
@implementation Api38_messages_Dialogs_messages_dialogsSlice
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x71e094f3 serializeBlock:^bool (Api38_messages_Dialogs_messages_dialogsSlice *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.count data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dialogs data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.dialogsSlice count:%@ dialogs:%@ messages:%@ chats:%@ users:%@)", self.count, self.dialogs, self.messages, self.chats, self.users];
}
@end
@interface Api38_help_InviteText ()
@property (nonatomic, strong) NSString * message;
@end
@interface Api38_help_InviteText_help_inviteText ()
@end
@implementation Api38_help_InviteText
+ (Api38_help_InviteText_help_inviteText *)help_inviteTextWithMessage:(NSString *)message
{
Api38_help_InviteText_help_inviteText *_object = [[Api38_help_InviteText_help_inviteText alloc] init];
_object.message = [Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_help_InviteText_help_inviteText
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x18cb9f78 serializeBlock:^bool (Api38_help_InviteText_help_inviteText *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.inviteText message:%d)", (int)[self.message length]];
}
@end
@interface Api38_ContactSuggested ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * mutualContacts;
@end
@interface Api38_ContactSuggested_contactSuggested ()
@end
@implementation Api38_ContactSuggested
+ (Api38_ContactSuggested_contactSuggested *)contactSuggestedWithUserId:(NSNumber *)userId mutualContacts:(NSNumber *)mutualContacts
{
Api38_ContactSuggested_contactSuggested *_object = [[Api38_ContactSuggested_contactSuggested alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mutualContacts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:mutualContacts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_ContactSuggested_contactSuggested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3de191a1 serializeBlock:^bool (Api38_ContactSuggested_contactSuggested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mutualContacts data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactSuggested user_id:%@ mutual_contacts:%@)", self.userId, self.mutualContacts];
}
@end
@interface Api38_InputPeerNotifySettings ()
@property (nonatomic, strong) NSNumber * muteUntil;
@property (nonatomic, strong) NSString * sound;
@property (nonatomic, strong) Api38_Bool * showPreviews;
@property (nonatomic, strong) NSNumber * eventsMask;
@end
@interface Api38_InputPeerNotifySettings_inputPeerNotifySettings ()
@end
@implementation Api38_InputPeerNotifySettings
+ (Api38_InputPeerNotifySettings_inputPeerNotifySettings *)inputPeerNotifySettingsWithMuteUntil:(NSNumber *)muteUntil sound:(NSString *)sound showPreviews:(Api38_Bool *)showPreviews eventsMask:(NSNumber *)eventsMask
{
Api38_InputPeerNotifySettings_inputPeerNotifySettings *_object = [[Api38_InputPeerNotifySettings_inputPeerNotifySettings alloc] init];
_object.muteUntil = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:muteUntil] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.sound = [Api38__Serializer addSerializerToObject:[sound copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.showPreviews = showPreviews;
_object.eventsMask = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:eventsMask] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_InputPeerNotifySettings_inputPeerNotifySettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x46a2ce98 serializeBlock:^bool (Api38_InputPeerNotifySettings_inputPeerNotifySettings *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.muteUntil data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sound data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.showPreviews data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.eventsMask data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPeerNotifySettings mute_until:%@ sound:%d show_previews:%@ events_mask:%@)", self.muteUntil, (int)[self.sound length], self.showPreviews, self.eventsMask];
}
@end
@interface Api38_ExportedChatInvite ()
@end
@interface Api38_ExportedChatInvite_chatInviteEmpty ()
@end
@interface Api38_ExportedChatInvite_chatInviteExported ()
@property (nonatomic, strong) NSString * link;
@end
@implementation Api38_ExportedChatInvite
+ (Api38_ExportedChatInvite_chatInviteEmpty *)chatInviteEmpty
{
Api38_ExportedChatInvite_chatInviteEmpty *_object = [[Api38_ExportedChatInvite_chatInviteEmpty alloc] init];
return _object;
}
+ (Api38_ExportedChatInvite_chatInviteExported *)chatInviteExportedWithLink:(NSString *)link
{
Api38_ExportedChatInvite_chatInviteExported *_object = [[Api38_ExportedChatInvite_chatInviteExported alloc] init];
_object.link = [Api38__Serializer addSerializerToObject:[link copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_ExportedChatInvite_chatInviteEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x69df3769 serializeBlock:^bool (__unused Api38_ExportedChatInvite_chatInviteEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatInviteEmpty)"];
}
@end
@implementation Api38_ExportedChatInvite_chatInviteExported
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfc2e05bc serializeBlock:^bool (Api38_ExportedChatInvite_chatInviteExported *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.link data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(chatInviteExported link:%d)", (int)[self.link length]];
}
@end
@interface Api38_DcNetworkStats ()
@property (nonatomic, strong) NSNumber * dcId;
@property (nonatomic, strong) NSString * ipAddress;
@property (nonatomic, strong) NSArray * pings;
@end
@interface Api38_DcNetworkStats_dcPingStats ()
@end
@implementation Api38_DcNetworkStats
+ (Api38_DcNetworkStats_dcPingStats *)dcPingStatsWithDcId:(NSNumber *)dcId ipAddress:(NSString *)ipAddress pings:(NSArray *)pings
{
Api38_DcNetworkStats_dcPingStats *_object = [[Api38_DcNetworkStats_dcPingStats alloc] init];
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ipAddress = [Api38__Serializer addSerializerToObject:[ipAddress copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.pings =
({
NSMutableArray *pings_copy = [[NSMutableArray alloc] initWithCapacity:pings.count];
for (id pings_item in pings)
{
[pings_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pings_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pings_result = [Api38__Serializer addSerializerToObject:pings_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pings_result;});
return _object;
}
@end
@implementation Api38_DcNetworkStats_dcPingStats
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3203df8c serializeBlock:^bool (Api38_DcNetworkStats_dcPingStats *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ipAddress data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pings data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(dcPingStats dc_id:%@ ip_address:%d pings:%@)", self.dcId, (int)[self.ipAddress length], self.pings];
}
@end
@interface Api38_Authorization ()
@property (nonatomic, strong) NSNumber * phash;
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSString * deviceModel;
@property (nonatomic, strong) NSString * platform;
@property (nonatomic, strong) NSString * systemVersion;
@property (nonatomic, strong) NSNumber * apiId;
@property (nonatomic, strong) NSString * appName;
@property (nonatomic, strong) NSString * appVersion;
@property (nonatomic, strong) NSNumber * dateCreated;
@property (nonatomic, strong) NSNumber * dateActive;
@property (nonatomic, strong) NSString * ip;
@property (nonatomic, strong) NSString * country;
@property (nonatomic, strong) NSString * region;
@end
@interface Api38_Authorization_authorization ()
@end
@implementation Api38_Authorization
+ (Api38_Authorization_authorization *)authorizationWithPhash:(NSNumber *)phash flags:(NSNumber *)flags deviceModel:(NSString *)deviceModel platform:(NSString *)platform systemVersion:(NSString *)systemVersion apiId:(NSNumber *)apiId appName:(NSString *)appName appVersion:(NSString *)appVersion dateCreated:(NSNumber *)dateCreated dateActive:(NSNumber *)dateActive ip:(NSString *)ip country:(NSString *)country region:(NSString *)region
{
Api38_Authorization_authorization *_object = [[Api38_Authorization_authorization alloc] init];
_object.phash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:phash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.deviceModel = [Api38__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.platform = [Api38__Serializer addSerializerToObject:[platform copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.systemVersion = [Api38__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.apiId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:apiId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.appName = [Api38__Serializer addSerializerToObject:[appName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.appVersion = [Api38__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.dateCreated = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dateCreated] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.dateActive = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dateActive] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.ip = [Api38__Serializer addSerializerToObject:[ip copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.country = [Api38__Serializer addSerializerToObject:[country copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.region = [Api38__Serializer addSerializerToObject:[region copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_Authorization_authorization
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7bf2e6f6 serializeBlock:^bool (Api38_Authorization_authorization *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.deviceModel data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.platform data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.systemVersion data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.apiId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.appName data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.appVersion data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dateCreated data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.dateActive data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.ip data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.country data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.region data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(authorization hash:%@ flags:%@ device_model:%d platform:%d system_version:%d api_id:%@ app_name:%d app_version:%d date_created:%@ date_active:%@ ip:%d country:%d region:%d)", self.phash, self.flags, (int)[self.deviceModel length], (int)[self.platform length], (int)[self.systemVersion length], self.apiId, (int)[self.appName length], (int)[self.appVersion length], self.dateCreated, self.dateActive, (int)[self.ip length], (int)[self.country length], (int)[self.region length]];
}
@end
@interface Api38_messages_AllStickers ()
@end
@interface Api38_messages_AllStickers_messages_allStickersNotModified ()
@end
@interface Api38_messages_AllStickers_messages_allStickers ()
@property (nonatomic, strong) NSString * phash;
@property (nonatomic, strong) NSArray * sets;
@end
@implementation Api38_messages_AllStickers
+ (Api38_messages_AllStickers_messages_allStickersNotModified *)messages_allStickersNotModified
{
Api38_messages_AllStickers_messages_allStickersNotModified *_object = [[Api38_messages_AllStickers_messages_allStickersNotModified alloc] init];
return _object;
}
+ (Api38_messages_AllStickers_messages_allStickers *)messages_allStickersWithPhash:(NSString *)phash sets:(NSArray *)sets
{
Api38_messages_AllStickers_messages_allStickers *_object = [[Api38_messages_AllStickers_messages_allStickers alloc] init];
_object.phash = [Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.sets =
({
NSMutableArray *sets_copy = [[NSMutableArray alloc] initWithCapacity:sets.count];
for (id sets_item in sets)
{
[sets_copy addObject:sets_item];
}
id sets_result = [Api38__Serializer addSerializerToObject:sets_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; sets_result;});
return _object;
}
@end
@implementation Api38_messages_AllStickers_messages_allStickersNotModified
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xe86602c3 serializeBlock:^bool (__unused Api38_messages_AllStickers_messages_allStickersNotModified *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.allStickersNotModified)"];
}
@end
@implementation Api38_messages_AllStickers_messages_allStickers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd51dafdb serializeBlock:^bool (Api38_messages_AllStickers_messages_allStickers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sets data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.allStickers hash:%d sets:%@)", (int)[self.phash length], self.sets];
}
@end
@interface Api38_PhoneConnection ()
@end
@interface Api38_PhoneConnection_phoneConnectionNotReady ()
@end
@interface Api38_PhoneConnection_phoneConnection ()
@property (nonatomic, strong) NSString * server;
@property (nonatomic, strong) NSNumber * port;
@property (nonatomic, strong) NSNumber * streamId;
@end
@implementation Api38_PhoneConnection
+ (Api38_PhoneConnection_phoneConnectionNotReady *)phoneConnectionNotReady
{
Api38_PhoneConnection_phoneConnectionNotReady *_object = [[Api38_PhoneConnection_phoneConnectionNotReady alloc] init];
return _object;
}
+ (Api38_PhoneConnection_phoneConnection *)phoneConnectionWithServer:(NSString *)server port:(NSNumber *)port streamId:(NSNumber *)streamId
{
Api38_PhoneConnection_phoneConnection *_object = [[Api38_PhoneConnection_phoneConnection alloc] init];
_object.server = [Api38__Serializer addSerializerToObject:[server copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.port = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:port] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.streamId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:streamId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_PhoneConnection_phoneConnectionNotReady
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x26bc3c3 serializeBlock:^bool (__unused Api38_PhoneConnection_phoneConnectionNotReady *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(phoneConnectionNotReady)"];
}
@end
@implementation Api38_PhoneConnection_phoneConnection
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3a84026a serializeBlock:^bool (Api38_PhoneConnection_phoneConnection *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.server data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.port data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.streamId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(phoneConnection server:%d port:%@ stream_id:%@)", (int)[self.server length], self.port, self.streamId];
}
@end
@interface Api38_AccountDaysTTL ()
@property (nonatomic, strong) NSNumber * days;
@end
@interface Api38_AccountDaysTTL_accountDaysTTL ()
@end
@implementation Api38_AccountDaysTTL
+ (Api38_AccountDaysTTL_accountDaysTTL *)accountDaysTTLWithDays:(NSNumber *)days
{
Api38_AccountDaysTTL_accountDaysTTL *_object = [[Api38_AccountDaysTTL_accountDaysTTL alloc] init];
_object.days = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:days] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_AccountDaysTTL_accountDaysTTL
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb8d0afdf serializeBlock:^bool (Api38_AccountDaysTTL_accountDaysTTL *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.days data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(accountDaysTTL days:%@)", self.days];
}
@end
@interface Api38_Scheme ()
@end
@interface Api38_Scheme_scheme ()
@property (nonatomic, strong) NSString * schemeRaw;
@property (nonatomic, strong) NSArray * types;
@property (nonatomic, strong) NSArray * methods;
@property (nonatomic, strong) NSNumber * version;
@end
@interface Api38_Scheme_schemeNotModified ()
@end
@implementation Api38_Scheme
+ (Api38_Scheme_scheme *)schemeWithSchemeRaw:(NSString *)schemeRaw types:(NSArray *)types methods:(NSArray *)methods version:(NSNumber *)version
{
Api38_Scheme_scheme *_object = [[Api38_Scheme_scheme alloc] init];
_object.schemeRaw = [Api38__Serializer addSerializerToObject:[schemeRaw copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.types =
({
NSMutableArray *types_copy = [[NSMutableArray alloc] initWithCapacity:types.count];
for (id types_item in types)
{
[types_copy addObject:types_item];
}
id types_result = [Api38__Serializer addSerializerToObject:types_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; types_result;});
_object.methods =
({
NSMutableArray *methods_copy = [[NSMutableArray alloc] initWithCapacity:methods.count];
for (id methods_item in methods)
{
[methods_copy addObject:methods_item];
}
id methods_result = [Api38__Serializer addSerializerToObject:methods_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; methods_result;});
_object.version = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_Scheme_schemeNotModified *)schemeNotModified
{
Api38_Scheme_schemeNotModified *_object = [[Api38_Scheme_schemeNotModified alloc] init];
return _object;
}
@end
@implementation Api38_Scheme_scheme
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4e6ef65e serializeBlock:^bool (Api38_Scheme_scheme *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.schemeRaw data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.types data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.methods data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.version data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(scheme scheme_raw:%d types:%@ methods:%@ version:%@)", (int)[self.schemeRaw length], self.types, self.methods, self.version];
}
@end
@implementation Api38_Scheme_schemeNotModified
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x263c9c58 serializeBlock:^bool (__unused Api38_Scheme_schemeNotModified *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(schemeNotModified)"];
}
@end
@interface Api38_account_Password ()
@property (nonatomic, strong) NSData * pnewSalt;
@property (nonatomic, strong) NSString * emailUnconfirmedPattern;
@end
@interface Api38_account_Password_account_noPassword ()
@end
@interface Api38_account_Password_account_password ()
@property (nonatomic, strong) NSData * currentSalt;
@property (nonatomic, strong) NSString * hint;
@property (nonatomic, strong) Api38_Bool * hasRecovery;
@end
@implementation Api38_account_Password
+ (Api38_account_Password_account_noPassword *)account_noPasswordWithPnewSalt:(NSData *)pnewSalt emailUnconfirmedPattern:(NSString *)emailUnconfirmedPattern
{
Api38_account_Password_account_noPassword *_object = [[Api38_account_Password_account_noPassword alloc] init];
_object.pnewSalt = [Api38__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.emailUnconfirmedPattern = [Api38__Serializer addSerializerToObject:[emailUnconfirmedPattern copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_account_Password_account_password *)account_passwordWithCurrentSalt:(NSData *)currentSalt pnewSalt:(NSData *)pnewSalt hint:(NSString *)hint hasRecovery:(Api38_Bool *)hasRecovery emailUnconfirmedPattern:(NSString *)emailUnconfirmedPattern
{
Api38_account_Password_account_password *_object = [[Api38_account_Password_account_password alloc] init];
_object.currentSalt = [Api38__Serializer addSerializerToObject:[currentSalt copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.pnewSalt = [Api38__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.hint = [Api38__Serializer addSerializerToObject:[hint copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.hasRecovery = hasRecovery;
_object.emailUnconfirmedPattern = [Api38__Serializer addSerializerToObject:[emailUnconfirmedPattern copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_account_Password_account_noPassword
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x96dabc18 serializeBlock:^bool (Api38_account_Password_account_noPassword *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pnewSalt data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.emailUnconfirmedPattern data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.noPassword new_salt:%d email_unconfirmed_pattern:%d)", (int)[self.pnewSalt length], (int)[self.emailUnconfirmedPattern length]];
}
@end
@implementation Api38_account_Password_account_password
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7c18141c serializeBlock:^bool (Api38_account_Password_account_password *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.currentSalt data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pnewSalt data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.hint data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.hasRecovery data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.emailUnconfirmedPattern data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.password current_salt:%d new_salt:%d hint:%d has_recovery:%@ email_unconfirmed_pattern:%d)", (int)[self.currentSalt length], (int)[self.pnewSalt length], (int)[self.hint length], self.hasRecovery, (int)[self.emailUnconfirmedPattern length]];
}
@end
@interface Api38_account_PrivacyRules ()
@property (nonatomic, strong) NSArray * rules;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_account_PrivacyRules_account_privacyRules ()
@end
@implementation Api38_account_PrivacyRules
+ (Api38_account_PrivacyRules_account_privacyRules *)account_privacyRulesWithRules:(NSArray *)rules users:(NSArray *)users
{
Api38_account_PrivacyRules_account_privacyRules *_object = [[Api38_account_PrivacyRules_account_privacyRules alloc] init];
_object.rules =
({
NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count];
for (id rules_item in rules)
{
[rules_copy addObject:rules_item];
}
id rules_result = [Api38__Serializer addSerializerToObject:rules_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; rules_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_account_PrivacyRules_account_privacyRules
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x554abb6f serializeBlock:^bool (Api38_account_PrivacyRules_account_privacyRules *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.rules data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.privacyRules rules:%@ users:%@)", self.rules, self.users];
}
@end
@interface Api38_messages_Message ()
@end
@interface Api38_messages_Message_messages_messageEmpty ()
@end
@interface Api38_messages_Message_messages_message ()
@property (nonatomic, strong) Api38_Message * message;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@implementation Api38_messages_Message
+ (Api38_messages_Message_messages_messageEmpty *)messages_messageEmpty
{
Api38_messages_Message_messages_messageEmpty *_object = [[Api38_messages_Message_messages_messageEmpty alloc] init];
return _object;
}
+ (Api38_messages_Message_messages_message *)messages_messageWithMessage:(Api38_Message *)message chats:(NSArray *)chats users:(NSArray *)users
{
Api38_messages_Message_messages_message *_object = [[Api38_messages_Message_messages_message alloc] init];
_object.message = message;
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_messages_Message_messages_messageEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3f4e0648 serializeBlock:^bool (__unused Api38_messages_Message_messages_messageEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.messageEmpty)"];
}
@end
@implementation Api38_messages_Message_messages_message
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xff90c417 serializeBlock:^bool (Api38_messages_Message_messages_message *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.message data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messages.message message:%@ chats:%@ users:%@)", self.message, self.chats, self.users];
}
@end
@interface Api38_PrivacyRule ()
@end
@interface Api38_PrivacyRule_privacyValueAllowContacts ()
@end
@interface Api38_PrivacyRule_privacyValueAllowAll ()
@end
@interface Api38_PrivacyRule_privacyValueAllowUsers ()
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_PrivacyRule_privacyValueDisallowContacts ()
@end
@interface Api38_PrivacyRule_privacyValueDisallowAll ()
@end
@interface Api38_PrivacyRule_privacyValueDisallowUsers ()
@property (nonatomic, strong) NSArray * users;
@end
@implementation Api38_PrivacyRule
+ (Api38_PrivacyRule_privacyValueAllowContacts *)privacyValueAllowContacts
{
Api38_PrivacyRule_privacyValueAllowContacts *_object = [[Api38_PrivacyRule_privacyValueAllowContacts alloc] init];
return _object;
}
+ (Api38_PrivacyRule_privacyValueAllowAll *)privacyValueAllowAll
{
Api38_PrivacyRule_privacyValueAllowAll *_object = [[Api38_PrivacyRule_privacyValueAllowAll alloc] init];
return _object;
}
+ (Api38_PrivacyRule_privacyValueAllowUsers *)privacyValueAllowUsersWithUsers:(NSArray *)users
{
Api38_PrivacyRule_privacyValueAllowUsers *_object = [[Api38_PrivacyRule_privacyValueAllowUsers alloc] init];
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:users_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_PrivacyRule_privacyValueDisallowContacts *)privacyValueDisallowContacts
{
Api38_PrivacyRule_privacyValueDisallowContacts *_object = [[Api38_PrivacyRule_privacyValueDisallowContacts alloc] init];
return _object;
}
+ (Api38_PrivacyRule_privacyValueDisallowAll *)privacyValueDisallowAll
{
Api38_PrivacyRule_privacyValueDisallowAll *_object = [[Api38_PrivacyRule_privacyValueDisallowAll alloc] init];
return _object;
}
+ (Api38_PrivacyRule_privacyValueDisallowUsers *)privacyValueDisallowUsersWithUsers:(NSArray *)users
{
Api38_PrivacyRule_privacyValueDisallowUsers *_object = [[Api38_PrivacyRule_privacyValueDisallowUsers alloc] init];
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:users_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_PrivacyRule_privacyValueAllowContacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfffe1bac serializeBlock:^bool (__unused Api38_PrivacyRule_privacyValueAllowContacts *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueAllowContacts)"];
}
@end
@implementation Api38_PrivacyRule_privacyValueAllowAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x65427b82 serializeBlock:^bool (__unused Api38_PrivacyRule_privacyValueAllowAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueAllowAll)"];
}
@end
@implementation Api38_PrivacyRule_privacyValueAllowUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4d5bbe0c serializeBlock:^bool (Api38_PrivacyRule_privacyValueAllowUsers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueAllowUsers users:%@)", self.users];
}
@end
@implementation Api38_PrivacyRule_privacyValueDisallowContacts
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf888fa1a serializeBlock:^bool (__unused Api38_PrivacyRule_privacyValueDisallowContacts *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueDisallowContacts)"];
}
@end
@implementation Api38_PrivacyRule_privacyValueDisallowAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8b73e763 serializeBlock:^bool (__unused Api38_PrivacyRule_privacyValueDisallowAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueDisallowAll)"];
}
@end
@implementation Api38_PrivacyRule_privacyValueDisallowUsers
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc7f49b7 serializeBlock:^bool (Api38_PrivacyRule_privacyValueDisallowUsers *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(privacyValueDisallowUsers users:%@)", self.users];
}
@end
@interface Api38_account_SentChangePhoneCode ()
@property (nonatomic, strong) NSString * phoneCodeHash;
@property (nonatomic, strong) NSNumber * sendCallTimeout;
@end
@interface Api38_account_SentChangePhoneCode_account_sentChangePhoneCode ()
@end
@implementation Api38_account_SentChangePhoneCode
+ (Api38_account_SentChangePhoneCode_account_sentChangePhoneCode *)account_sentChangePhoneCodeWithPhoneCodeHash:(NSString *)phoneCodeHash sendCallTimeout:(NSNumber *)sendCallTimeout
{
Api38_account_SentChangePhoneCode_account_sentChangePhoneCode *_object = [[Api38_account_SentChangePhoneCode_account_sentChangePhoneCode alloc] init];
_object.phoneCodeHash = [Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.sendCallTimeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:sendCallTimeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_account_SentChangePhoneCode_account_sentChangePhoneCode
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa4f58c4c serializeBlock:^bool (Api38_account_SentChangePhoneCode_account_sentChangePhoneCode *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.phoneCodeHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sendCallTimeout data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(account.sentChangePhoneCode phone_code_hash:%d send_call_timeout:%@)", (int)[self.phoneCodeHash length], self.sendCallTimeout];
}
@end
@interface Api38_MessageAction ()
@end
@interface Api38_MessageAction_messageActionEmpty ()
@end
@interface Api38_MessageAction_messageActionChatCreate ()
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_MessageAction_messageActionChatEditTitle ()
@property (nonatomic, strong) NSString * title;
@end
@interface Api38_MessageAction_messageActionChatEditPhoto ()
@property (nonatomic, strong) Api38_Photo * photo;
@end
@interface Api38_MessageAction_messageActionChatDeletePhoto ()
@end
@interface Api38_MessageAction_messageActionChatAddUser ()
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_MessageAction_messageActionChatDeleteUser ()
@property (nonatomic, strong) NSNumber * userId;
@end
@interface Api38_MessageAction_messageActionSentRequest ()
@property (nonatomic, strong) Api38_Bool * hasPhone;
@end
@interface Api38_MessageAction_messageActionAcceptRequest ()
@end
@interface Api38_MessageAction_messageActionChatJoinedByLink ()
@property (nonatomic, strong) NSNumber * inviterId;
@end
@interface Api38_MessageAction_messageActionChannelCreate ()
@property (nonatomic, strong) NSString * title;
@end
@implementation Api38_MessageAction
+ (Api38_MessageAction_messageActionEmpty *)messageActionEmpty
{
Api38_MessageAction_messageActionEmpty *_object = [[Api38_MessageAction_messageActionEmpty alloc] init];
return _object;
}
+ (Api38_MessageAction_messageActionChatCreate *)messageActionChatCreateWithTitle:(NSString *)title users:(NSArray *)users
{
Api38_MessageAction_messageActionChatCreate *_object = [[Api38_MessageAction_messageActionChatCreate alloc] init];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:users_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_MessageAction_messageActionChatEditTitle *)messageActionChatEditTitleWithTitle:(NSString *)title
{
Api38_MessageAction_messageActionChatEditTitle *_object = [[Api38_MessageAction_messageActionChatEditTitle alloc] init];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_MessageAction_messageActionChatEditPhoto *)messageActionChatEditPhotoWithPhoto:(Api38_Photo *)photo
{
Api38_MessageAction_messageActionChatEditPhoto *_object = [[Api38_MessageAction_messageActionChatEditPhoto alloc] init];
_object.photo = photo;
return _object;
}
+ (Api38_MessageAction_messageActionChatDeletePhoto *)messageActionChatDeletePhoto
{
Api38_MessageAction_messageActionChatDeletePhoto *_object = [[Api38_MessageAction_messageActionChatDeletePhoto alloc] init];
return _object;
}
+ (Api38_MessageAction_messageActionChatAddUser *)messageActionChatAddUserWithUserId:(NSNumber *)userId
{
Api38_MessageAction_messageActionChatAddUser *_object = [[Api38_MessageAction_messageActionChatAddUser alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageAction_messageActionChatDeleteUser *)messageActionChatDeleteUserWithUserId:(NSNumber *)userId
{
Api38_MessageAction_messageActionChatDeleteUser *_object = [[Api38_MessageAction_messageActionChatDeleteUser alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageAction_messageActionSentRequest *)messageActionSentRequestWithHasPhone:(Api38_Bool *)hasPhone
{
Api38_MessageAction_messageActionSentRequest *_object = [[Api38_MessageAction_messageActionSentRequest alloc] init];
_object.hasPhone = hasPhone;
return _object;
}
+ (Api38_MessageAction_messageActionAcceptRequest *)messageActionAcceptRequest
{
Api38_MessageAction_messageActionAcceptRequest *_object = [[Api38_MessageAction_messageActionAcceptRequest alloc] init];
return _object;
}
+ (Api38_MessageAction_messageActionChatJoinedByLink *)messageActionChatJoinedByLinkWithInviterId:(NSNumber *)inviterId
{
Api38_MessageAction_messageActionChatJoinedByLink *_object = [[Api38_MessageAction_messageActionChatJoinedByLink alloc] init];
_object.inviterId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:inviterId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageAction_messageActionChannelCreate *)messageActionChannelCreateWithTitle:(NSString *)title
{
Api38_MessageAction_messageActionChannelCreate *_object = [[Api38_MessageAction_messageActionChannelCreate alloc] init];
_object.title = [Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_MessageAction_messageActionEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb6aef7b0 serializeBlock:^bool (__unused Api38_MessageAction_messageActionEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionEmpty)"];
}
@end
@implementation Api38_MessageAction_messageActionChatCreate
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xa6638b9a serializeBlock:^bool (Api38_MessageAction_messageActionChatCreate *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatCreate title:%d users:%@)", (int)[self.title length], self.users];
}
@end
@implementation Api38_MessageAction_messageActionChatEditTitle
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb5a1ce5a serializeBlock:^bool (Api38_MessageAction_messageActionChatEditTitle *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatEditTitle title:%d)", (int)[self.title length]];
}
@end
@implementation Api38_MessageAction_messageActionChatEditPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7fcb13a8 serializeBlock:^bool (Api38_MessageAction_messageActionChatEditPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photo data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatEditPhoto photo:%@)", self.photo];
}
@end
@implementation Api38_MessageAction_messageActionChatDeletePhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x95e3fbef serializeBlock:^bool (__unused Api38_MessageAction_messageActionChatDeletePhoto *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatDeletePhoto)"];
}
@end
@implementation Api38_MessageAction_messageActionChatAddUser
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5e3cfc4b serializeBlock:^bool (Api38_MessageAction_messageActionChatAddUser *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatAddUser user_id:%@)", self.userId];
}
@end
@implementation Api38_MessageAction_messageActionChatDeleteUser
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xb2ae9b0c serializeBlock:^bool (Api38_MessageAction_messageActionChatDeleteUser *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatDeleteUser user_id:%@)", self.userId];
}
@end
@implementation Api38_MessageAction_messageActionSentRequest
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfc479b0f serializeBlock:^bool (Api38_MessageAction_messageActionSentRequest *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.hasPhone data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionSentRequest has_phone:%@)", self.hasPhone];
}
@end
@implementation Api38_MessageAction_messageActionAcceptRequest
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x7f07d76c serializeBlock:^bool (__unused Api38_MessageAction_messageActionAcceptRequest *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionAcceptRequest)"];
}
@end
@implementation Api38_MessageAction_messageActionChatJoinedByLink
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf89cf5e8 serializeBlock:^bool (Api38_MessageAction_messageActionChatJoinedByLink *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.inviterId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChatJoinedByLink inviter_id:%@)", self.inviterId];
}
@end
@implementation Api38_MessageAction_messageActionChannelCreate
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x95d2ac92 serializeBlock:^bool (Api38_MessageAction_messageActionChannelCreate *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.title data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageActionChannelCreate title:%d)", (int)[self.title length]];
}
@end
@interface Api38_PhoneCall ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_PhoneCall_phoneCallEmpty ()
@end
@interface Api38_PhoneCall_phoneCall ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * calleeId;
@end
@implementation Api38_PhoneCall
+ (Api38_PhoneCall_phoneCallEmpty *)phoneCallEmptyWithPid:(NSNumber *)pid
{
Api38_PhoneCall_phoneCallEmpty *_object = [[Api38_PhoneCall_phoneCallEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_PhoneCall_phoneCall *)phoneCallWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date userId:(NSNumber *)userId calleeId:(NSNumber *)calleeId
{
Api38_PhoneCall_phoneCall *_object = [[Api38_PhoneCall_phoneCall alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.calleeId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:calleeId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_PhoneCall_phoneCallEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5366c915 serializeBlock:^bool (Api38_PhoneCall_phoneCallEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(phoneCallEmpty id:%@)", self.pid];
}
@end
@implementation Api38_PhoneCall_phoneCall
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xec7bbe3 serializeBlock:^bool (Api38_PhoneCall_phoneCall *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.calleeId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(phoneCall id:%@ access_hash:%@ date:%@ user_id:%@ callee_id:%@)", self.pid, self.accessHash, self.date, self.userId, self.calleeId];
}
@end
@interface Api38_PeerNotifyEvents ()
@end
@interface Api38_PeerNotifyEvents_peerNotifyEventsEmpty ()
@end
@interface Api38_PeerNotifyEvents_peerNotifyEventsAll ()
@end
@implementation Api38_PeerNotifyEvents
+ (Api38_PeerNotifyEvents_peerNotifyEventsEmpty *)peerNotifyEventsEmpty
{
Api38_PeerNotifyEvents_peerNotifyEventsEmpty *_object = [[Api38_PeerNotifyEvents_peerNotifyEventsEmpty alloc] init];
return _object;
}
+ (Api38_PeerNotifyEvents_peerNotifyEventsAll *)peerNotifyEventsAll
{
Api38_PeerNotifyEvents_peerNotifyEventsAll *_object = [[Api38_PeerNotifyEvents_peerNotifyEventsAll alloc] init];
return _object;
}
@end
@implementation Api38_PeerNotifyEvents_peerNotifyEventsEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xadd53cb3 serializeBlock:^bool (__unused Api38_PeerNotifyEvents_peerNotifyEventsEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerNotifyEventsEmpty)"];
}
@end
@implementation Api38_PeerNotifyEvents_peerNotifyEventsAll
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6d1ded88 serializeBlock:^bool (__unused Api38_PeerNotifyEvents_peerNotifyEventsAll *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerNotifyEventsAll)"];
}
@end
@interface Api38_ContactLink ()
@end
@interface Api38_ContactLink_contactLinkUnknown ()
@end
@interface Api38_ContactLink_contactLinkNone ()
@end
@interface Api38_ContactLink_contactLinkHasPhone ()
@end
@interface Api38_ContactLink_contactLinkContact ()
@end
@implementation Api38_ContactLink
+ (Api38_ContactLink_contactLinkUnknown *)contactLinkUnknown
{
Api38_ContactLink_contactLinkUnknown *_object = [[Api38_ContactLink_contactLinkUnknown alloc] init];
return _object;
}
+ (Api38_ContactLink_contactLinkNone *)contactLinkNone
{
Api38_ContactLink_contactLinkNone *_object = [[Api38_ContactLink_contactLinkNone alloc] init];
return _object;
}
+ (Api38_ContactLink_contactLinkHasPhone *)contactLinkHasPhone
{
Api38_ContactLink_contactLinkHasPhone *_object = [[Api38_ContactLink_contactLinkHasPhone alloc] init];
return _object;
}
+ (Api38_ContactLink_contactLinkContact *)contactLinkContact
{
Api38_ContactLink_contactLinkContact *_object = [[Api38_ContactLink_contactLinkContact alloc] init];
return _object;
}
@end
@implementation Api38_ContactLink_contactLinkUnknown
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5f4f9247 serializeBlock:^bool (__unused Api38_ContactLink_contactLinkUnknown *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLinkUnknown)"];
}
@end
@implementation Api38_ContactLink_contactLinkNone
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfeedd3ad serializeBlock:^bool (__unused Api38_ContactLink_contactLinkNone *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLinkNone)"];
}
@end
@implementation Api38_ContactLink_contactLinkHasPhone
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x268f3f59 serializeBlock:^bool (__unused Api38_ContactLink_contactLinkHasPhone *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLinkHasPhone)"];
}
@end
@implementation Api38_ContactLink_contactLinkContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd502c2d0 serializeBlock:^bool (__unused Api38_ContactLink_contactLinkContact *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contactLinkContact)"];
}
@end
@interface Api38_help_AppPrefs ()
@property (nonatomic, strong) NSData * bytes;
@end
@interface Api38_help_AppPrefs_help_appPrefs ()
@end
@implementation Api38_help_AppPrefs
+ (Api38_help_AppPrefs_help_appPrefs *)help_appPrefsWithBytes:(NSData *)bytes
{
Api38_help_AppPrefs_help_appPrefs *_object = [[Api38_help_AppPrefs_help_appPrefs alloc] init];
_object.bytes = [Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
@end
@implementation Api38_help_AppPrefs_help_appPrefs
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x424f8614 serializeBlock:^bool (Api38_help_AppPrefs_help_appPrefs *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.bytes data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(help.appPrefs bytes:%d)", (int)[self.bytes length]];
}
@end
@interface Api38_contacts_Found ()
@property (nonatomic, strong) NSArray * results;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_contacts_Found_contacts_found ()
@end
@implementation Api38_contacts_Found
+ (Api38_contacts_Found_contacts_found *)contacts_foundWithResults:(NSArray *)results chats:(NSArray *)chats users:(NSArray *)users
{
Api38_contacts_Found_contacts_found *_object = [[Api38_contacts_Found_contacts_found alloc] init];
_object.results =
({
NSMutableArray *results_copy = [[NSMutableArray alloc] initWithCapacity:results.count];
for (id results_item in results)
{
[results_copy addObject:results_item];
}
id results_result = [Api38__Serializer addSerializerToObject:results_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; results_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_contacts_Found_contacts_found
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1aa1f784 serializeBlock:^bool (Api38_contacts_Found_contacts_found *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.results data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(contacts.found results:%@ chats:%@ users:%@)", self.results, self.chats, self.users];
}
@end
@interface Api38_PeerNotifySettings ()
@end
@interface Api38_PeerNotifySettings_peerNotifySettingsEmpty ()
@end
@interface Api38_PeerNotifySettings_peerNotifySettings ()
@property (nonatomic, strong) NSNumber * muteUntil;
@property (nonatomic, strong) NSString * sound;
@property (nonatomic, strong) Api38_Bool * showPreviews;
@property (nonatomic, strong) NSNumber * eventsMask;
@end
@implementation Api38_PeerNotifySettings
+ (Api38_PeerNotifySettings_peerNotifySettingsEmpty *)peerNotifySettingsEmpty
{
Api38_PeerNotifySettings_peerNotifySettingsEmpty *_object = [[Api38_PeerNotifySettings_peerNotifySettingsEmpty alloc] init];
return _object;
}
+ (Api38_PeerNotifySettings_peerNotifySettings *)peerNotifySettingsWithMuteUntil:(NSNumber *)muteUntil sound:(NSString *)sound showPreviews:(Api38_Bool *)showPreviews eventsMask:(NSNumber *)eventsMask
{
Api38_PeerNotifySettings_peerNotifySettings *_object = [[Api38_PeerNotifySettings_peerNotifySettings alloc] init];
_object.muteUntil = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:muteUntil] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.sound = [Api38__Serializer addSerializerToObject:[sound copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.showPreviews = showPreviews;
_object.eventsMask = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:eventsMask] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_PeerNotifySettings_peerNotifySettingsEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x70a68512 serializeBlock:^bool (__unused Api38_PeerNotifySettings_peerNotifySettingsEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerNotifySettingsEmpty)"];
}
@end
@implementation Api38_PeerNotifySettings_peerNotifySettings
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x8d5e11ee serializeBlock:^bool (Api38_PeerNotifySettings_peerNotifySettings *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.muteUntil data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.sound data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.showPreviews data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.eventsMask data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(peerNotifySettings mute_until:%@ sound:%d show_previews:%@ events_mask:%@)", self.muteUntil, (int)[self.sound length], self.showPreviews, self.eventsMask];
}
@end
@interface Api38_SchemeParam ()
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSString * type;
@end
@interface Api38_SchemeParam_schemeParam ()
@end
@implementation Api38_SchemeParam
+ (Api38_SchemeParam_schemeParam *)schemeParamWithName:(NSString *)name type:(NSString *)type
{
Api38_SchemeParam_schemeParam *_object = [[Api38_SchemeParam_schemeParam alloc] init];
_object.name = [Api38__Serializer addSerializerToObject:[name copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.type = [Api38__Serializer addSerializerToObject:[type copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_SchemeParam_schemeParam
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x21b59bef serializeBlock:^bool (Api38_SchemeParam_schemeParam *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.name data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.type data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(schemeParam name:%d type:%d)", (int)[self.name length], (int)[self.type length]];
}
@end
@interface Api38_StickerPack ()
@property (nonatomic, strong) NSString * emoticon;
@property (nonatomic, strong) NSArray * documents;
@end
@interface Api38_StickerPack_stickerPack ()
@end
@implementation Api38_StickerPack
+ (Api38_StickerPack_stickerPack *)stickerPackWithEmoticon:(NSString *)emoticon documents:(NSArray *)documents
{
Api38_StickerPack_stickerPack *_object = [[Api38_StickerPack_stickerPack alloc] init];
_object.emoticon = [Api38__Serializer addSerializerToObject:[emoticon copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.documents =
({
NSMutableArray *documents_copy = [[NSMutableArray alloc] initWithCapacity:documents.count];
for (id documents_item in documents)
{
[documents_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:documents_item] serializer:[[Api38_BuiltinSerializer_Long alloc] init]]];
}
id documents_result = [Api38__Serializer addSerializerToObject:documents_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; documents_result;});
return _object;
}
@end
@implementation Api38_StickerPack_stickerPack
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x12b299d4 serializeBlock:^bool (Api38_StickerPack_stickerPack *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.emoticon data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.documents data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(stickerPack emoticon:%d documents:%@)", (int)[self.emoticon length], self.documents];
}
@end
@interface Api38_UserProfilePhoto ()
@end
@interface Api38_UserProfilePhoto_userProfilePhotoEmpty ()
@end
@interface Api38_UserProfilePhoto_userProfilePhoto ()
@property (nonatomic, strong) NSNumber * photoId;
@property (nonatomic, strong) Api38_FileLocation * photoSmall;
@property (nonatomic, strong) Api38_FileLocation * photoBig;
@end
@implementation Api38_UserProfilePhoto
+ (Api38_UserProfilePhoto_userProfilePhotoEmpty *)userProfilePhotoEmpty
{
Api38_UserProfilePhoto_userProfilePhotoEmpty *_object = [[Api38_UserProfilePhoto_userProfilePhotoEmpty alloc] init];
return _object;
}
+ (Api38_UserProfilePhoto_userProfilePhoto *)userProfilePhotoWithPhotoId:(NSNumber *)photoId photoSmall:(Api38_FileLocation *)photoSmall photoBig:(Api38_FileLocation *)photoBig
{
Api38_UserProfilePhoto_userProfilePhoto *_object = [[Api38_UserProfilePhoto_userProfilePhoto alloc] init];
_object.photoId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:photoId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.photoSmall = photoSmall;
_object.photoBig = photoBig;
return _object;
}
@end
@implementation Api38_UserProfilePhoto_userProfilePhotoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x4f11bae1 serializeBlock:^bool (__unused Api38_UserProfilePhoto_userProfilePhotoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userProfilePhotoEmpty)"];
}
@end
@implementation Api38_UserProfilePhoto_userProfilePhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd559d8c8 serializeBlock:^bool (Api38_UserProfilePhoto_userProfilePhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.photoId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.photoSmall data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.photoBig data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(userProfilePhoto photo_id:%@ photo_small:%@ photo_big:%@)", self.photoId, self.photoSmall, self.photoBig];
}
@end
@interface Api38_updates_ChannelDifference ()
@property (nonatomic, strong) NSNumber * flags;
@property (nonatomic, strong) NSNumber * pts;
@property (nonatomic, strong) NSNumber * timeout;
@end
@interface Api38_updates_ChannelDifference_updates_channelDifferenceEmpty ()
@end
@interface Api38_updates_ChannelDifference_updates_channelDifferenceTooLong ()
@property (nonatomic, strong) NSNumber * topMessage;
@property (nonatomic, strong) NSNumber * topImportantMessage;
@property (nonatomic, strong) NSNumber * readInboxMaxId;
@property (nonatomic, strong) NSNumber * unreadCount;
@property (nonatomic, strong) NSNumber * unreadImportantCount;
@property (nonatomic, strong) NSArray * messages;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@interface Api38_updates_ChannelDifference_updates_channelDifference ()
@property (nonatomic, strong) NSArray * pnewMessages;
@property (nonatomic, strong) NSArray * otherUpdates;
@property (nonatomic, strong) NSArray * chats;
@property (nonatomic, strong) NSArray * users;
@end
@implementation Api38_updates_ChannelDifference
+ (Api38_updates_ChannelDifference_updates_channelDifferenceEmpty *)updates_channelDifferenceEmptyWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout
{
Api38_updates_ChannelDifference_updates_channelDifferenceEmpty *_object = [[Api38_updates_ChannelDifference_updates_channelDifferenceEmpty alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.timeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:timeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_updates_ChannelDifference_updates_channelDifferenceTooLong *)updates_channelDifferenceTooLongWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout topMessage:(NSNumber *)topMessage topImportantMessage:(NSNumber *)topImportantMessage readInboxMaxId:(NSNumber *)readInboxMaxId unreadCount:(NSNumber *)unreadCount unreadImportantCount:(NSNumber *)unreadImportantCount messages:(NSArray *)messages chats:(NSArray *)chats users:(NSArray *)users
{
Api38_updates_ChannelDifference_updates_channelDifferenceTooLong *_object = [[Api38_updates_ChannelDifference_updates_channelDifferenceTooLong alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.timeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:timeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.topMessage = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:topMessage] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.topImportantMessage = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:topImportantMessage] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.readInboxMaxId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:readInboxMaxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.unreadImportantCount = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:unreadImportantCount] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.messages =
({
NSMutableArray *messages_copy = [[NSMutableArray alloc] initWithCapacity:messages.count];
for (id messages_item in messages)
{
[messages_copy addObject:messages_item];
}
id messages_result = [Api38__Serializer addSerializerToObject:messages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; messages_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
+ (Api38_updates_ChannelDifference_updates_channelDifference *)updates_channelDifferenceWithFlags:(NSNumber *)flags pts:(NSNumber *)pts timeout:(NSNumber *)timeout pnewMessages:(NSArray *)pnewMessages otherUpdates:(NSArray *)otherUpdates chats:(NSArray *)chats users:(NSArray *)users
{
Api38_updates_ChannelDifference_updates_channelDifference *_object = [[Api38_updates_ChannelDifference_updates_channelDifference alloc] init];
_object.flags = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pts = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.timeout = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:timeout] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.pnewMessages =
({
NSMutableArray *pnewMessages_copy = [[NSMutableArray alloc] initWithCapacity:pnewMessages.count];
for (id pnewMessages_item in pnewMessages)
{
[pnewMessages_copy addObject:pnewMessages_item];
}
id pnewMessages_result = [Api38__Serializer addSerializerToObject:pnewMessages_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pnewMessages_result;});
_object.otherUpdates =
({
NSMutableArray *otherUpdates_copy = [[NSMutableArray alloc] initWithCapacity:otherUpdates.count];
for (id otherUpdates_item in otherUpdates)
{
[otherUpdates_copy addObject:otherUpdates_item];
}
id otherUpdates_result = [Api38__Serializer addSerializerToObject:otherUpdates_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; otherUpdates_result;});
_object.chats =
({
NSMutableArray *chats_copy = [[NSMutableArray alloc] initWithCapacity:chats.count];
for (id chats_item in chats)
{
[chats_copy addObject:chats_item];
}
id chats_result = [Api38__Serializer addSerializerToObject:chats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; chats_result;});
_object.users =
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;});
return _object;
}
@end
@implementation Api38_updates_ChannelDifference_updates_channelDifferenceEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3e11affb serializeBlock:^bool (Api38_updates_ChannelDifference_updates_channelDifferenceEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.timeout data:data addSignature:false])
return false;
}
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.channelDifferenceEmpty flags:%@ pts:%@ timeout:%@)", self.flags, self.pts, self.timeout];
}
@end
@implementation Api38_updates_ChannelDifference_updates_channelDifferenceTooLong
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x5e167646 serializeBlock:^bool (Api38_updates_ChannelDifference_updates_channelDifferenceTooLong *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.timeout data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.topMessage data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.topImportantMessage data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.readInboxMaxId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.unreadImportantCount data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.messages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.channelDifferenceTooLong flags:%@ pts:%@ timeout:%@ top_message:%@ top_important_message:%@ read_inbox_max_id:%@ unread_count:%@ unread_important_count:%@ messages:%@ chats:%@ users:%@)", self.flags, self.pts, self.timeout, self.topMessage, self.topImportantMessage, self.readInboxMaxId, self.unreadCount, self.unreadImportantCount, self.messages, self.chats, self.users];
}
@end
@implementation Api38_updates_ChannelDifference_updates_channelDifference
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x2064674e serializeBlock:^bool (Api38_updates_ChannelDifference_updates_channelDifference *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.flags data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.pts data:data addSignature:false])
return false;
if ([object.flags intValue] & (1 << 1)) {
if (![Api38__Environment serializeObject:object.timeout data:data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:object.pnewMessages data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.otherUpdates data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.chats data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.users data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(updates.channelDifference flags:%@ pts:%@ timeout:%@ new_messages:%@ other_updates:%@ chats:%@ users:%@)", self.flags, self.pts, self.timeout, self.pnewMessages, self.otherUpdates, self.chats, self.users];
}
@end
@interface Api38_MessageEntity ()
@property (nonatomic, strong) NSNumber * offset;
@property (nonatomic, strong) NSNumber * length;
@end
@interface Api38_MessageEntity_messageEntityUnknown ()
@end
@interface Api38_MessageEntity_messageEntityMention ()
@end
@interface Api38_MessageEntity_messageEntityHashtag ()
@end
@interface Api38_MessageEntity_messageEntityBotCommand ()
@end
@interface Api38_MessageEntity_messageEntityUrl ()
@end
@interface Api38_MessageEntity_messageEntityEmail ()
@end
@interface Api38_MessageEntity_messageEntityBold ()
@end
@interface Api38_MessageEntity_messageEntityItalic ()
@end
@interface Api38_MessageEntity_messageEntityCode ()
@end
@interface Api38_MessageEntity_messageEntityPre ()
@property (nonatomic, strong) NSString * language;
@end
@interface Api38_MessageEntity_messageEntityTextUrl ()
@property (nonatomic, strong) NSString * url;
@end
@implementation Api38_MessageEntity
+ (Api38_MessageEntity_messageEntityUnknown *)messageEntityUnknownWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityUnknown *_object = [[Api38_MessageEntity_messageEntityUnknown alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityMention *)messageEntityMentionWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityMention *_object = [[Api38_MessageEntity_messageEntityMention alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityHashtag *)messageEntityHashtagWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityHashtag *_object = [[Api38_MessageEntity_messageEntityHashtag alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityBotCommand *)messageEntityBotCommandWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityBotCommand *_object = [[Api38_MessageEntity_messageEntityBotCommand alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityUrl *)messageEntityUrlWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityUrl *_object = [[Api38_MessageEntity_messageEntityUrl alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityEmail *)messageEntityEmailWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityEmail *_object = [[Api38_MessageEntity_messageEntityEmail alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityBold *)messageEntityBoldWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityBold *_object = [[Api38_MessageEntity_messageEntityBold alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityItalic *)messageEntityItalicWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityItalic *_object = [[Api38_MessageEntity_messageEntityItalic alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityCode *)messageEntityCodeWithOffset:(NSNumber *)offset length:(NSNumber *)length
{
Api38_MessageEntity_messageEntityCode *_object = [[Api38_MessageEntity_messageEntityCode alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityPre *)messageEntityPreWithOffset:(NSNumber *)offset length:(NSNumber *)length language:(NSString *)language
{
Api38_MessageEntity_messageEntityPre *_object = [[Api38_MessageEntity_messageEntityPre alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.language = [Api38__Serializer addSerializerToObject:[language copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
+ (Api38_MessageEntity_messageEntityTextUrl *)messageEntityTextUrlWithOffset:(NSNumber *)offset length:(NSNumber *)length url:(NSString *)url
{
Api38_MessageEntity_messageEntityTextUrl *_object = [[Api38_MessageEntity_messageEntityTextUrl alloc] init];
_object.offset = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.length = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:length] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.url = [Api38__Serializer addSerializerToObject:[url copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
return _object;
}
@end
@implementation Api38_MessageEntity_messageEntityUnknown
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbb92ba95 serializeBlock:^bool (Api38_MessageEntity_messageEntityUnknown *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityUnknown offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityMention
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfa04579d serializeBlock:^bool (Api38_MessageEntity_messageEntityMention *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityMention offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityHashtag
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6f635b0d serializeBlock:^bool (Api38_MessageEntity_messageEntityHashtag *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityHashtag offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityBotCommand
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6cef8ac7 serializeBlock:^bool (Api38_MessageEntity_messageEntityBotCommand *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityBotCommand offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityUrl
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x6ed02538 serializeBlock:^bool (Api38_MessageEntity_messageEntityUrl *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityUrl offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityEmail
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x64e475c2 serializeBlock:^bool (Api38_MessageEntity_messageEntityEmail *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityEmail offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityBold
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xbd610bc9 serializeBlock:^bool (Api38_MessageEntity_messageEntityBold *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityBold offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityItalic
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x826f8b60 serializeBlock:^bool (Api38_MessageEntity_messageEntityItalic *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityItalic offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityCode
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x28a20571 serializeBlock:^bool (Api38_MessageEntity_messageEntityCode *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityCode offset:%@ length:%@)", self.offset, self.length];
}
@end
@implementation Api38_MessageEntity_messageEntityPre
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x73924be0 serializeBlock:^bool (Api38_MessageEntity_messageEntityPre *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.language data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityPre offset:%@ length:%@ language:%d)", self.offset, self.length, (int)[self.language length]];
}
@end
@implementation Api38_MessageEntity_messageEntityTextUrl
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x76a6d327 serializeBlock:^bool (Api38_MessageEntity_messageEntityTextUrl *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.offset data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.length data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.url data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(messageEntityTextUrl offset:%@ length:%@ url:%d)", self.offset, self.length, (int)[self.url length]];
}
@end
@interface Api38_InputPhoto ()
@end
@interface Api38_InputPhoto_inputPhotoEmpty ()
@end
@interface Api38_InputPhoto_inputPhoto ()
@property (nonatomic, strong) NSNumber * pid;
@property (nonatomic, strong) NSNumber * accessHash;
@end
@implementation Api38_InputPhoto
+ (Api38_InputPhoto_inputPhotoEmpty *)inputPhotoEmpty
{
Api38_InputPhoto_inputPhotoEmpty *_object = [[Api38_InputPhoto_inputPhotoEmpty alloc] init];
return _object;
}
+ (Api38_InputPhoto_inputPhoto *)inputPhotoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash
{
Api38_InputPhoto_inputPhoto *_object = [[Api38_InputPhoto_inputPhoto alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_InputPhoto_inputPhotoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x1cd7bf0d serializeBlock:^bool (__unused Api38_InputPhoto_inputPhotoEmpty *object, __unused NSMutableData *data)
{
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhotoEmpty)"];
}
@end
@implementation Api38_InputPhoto_inputPhoto
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfb95c6c4 serializeBlock:^bool (Api38_InputPhoto_inputPhoto *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(inputPhoto id:%@ access_hash:%@)", self.pid, self.accessHash];
}
@end
@interface Api38_Video ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Video_videoEmpty ()
@end
@interface Api38_Video_video ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * duration;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSNumber * size;
@property (nonatomic, strong) Api38_PhotoSize * thumb;
@property (nonatomic, strong) NSNumber * dcId;
@property (nonatomic, strong) NSNumber * w;
@property (nonatomic, strong) NSNumber * h;
@end
@implementation Api38_Video
+ (Api38_Video_videoEmpty *)videoEmptyWithPid:(NSNumber *)pid
{
Api38_Video_videoEmpty *_object = [[Api38_Video_videoEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Video_video *)videoWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date duration:(NSNumber *)duration mimeType:(NSString *)mimeType size:(NSNumber *)size thumb:(Api38_PhotoSize *)thumb dcId:(NSNumber *)dcId w:(NSNumber *)w h:(NSNumber *)h
{
Api38_Video_video *_object = [[Api38_Video_video alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.duration = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:duration] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.size = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:size] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.thumb = thumb;
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.w = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:w] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.h = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:h] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
@end
@implementation Api38_Video_videoEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc10658a8 serializeBlock:^bool (Api38_Video_videoEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(videoEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Video_video
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf72887d3 serializeBlock:^bool (Api38_Video_video *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.duration data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.size data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.thumb data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.w data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.h data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(video id:%@ access_hash:%@ date:%@ duration:%@ mime_type:%d size:%@ thumb:%@ dc_id:%@ w:%@ h:%@)", self.pid, self.accessHash, self.date, self.duration, (int)[self.mimeType length], self.size, self.thumb, self.dcId, self.w, self.h];
}
@end
@interface Api38_EncryptedChat ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_EncryptedChat_encryptedChatEmpty ()
@end
@interface Api38_EncryptedChat_encryptedChatWaiting ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * adminId;
@property (nonatomic, strong) NSNumber * participantId;
@end
@interface Api38_EncryptedChat_encryptedChatDiscarded ()
@end
@interface Api38_EncryptedChat_encryptedChatRequested ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * adminId;
@property (nonatomic, strong) NSNumber * participantId;
@property (nonatomic, strong) NSData * gA;
@end
@interface Api38_EncryptedChat_encryptedChat ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSNumber * adminId;
@property (nonatomic, strong) NSNumber * participantId;
@property (nonatomic, strong) NSData * gAOrB;
@property (nonatomic, strong) NSNumber * keyFingerprint;
@end
@implementation Api38_EncryptedChat
+ (Api38_EncryptedChat_encryptedChatEmpty *)encryptedChatEmptyWithPid:(NSNumber *)pid
{
Api38_EncryptedChat_encryptedChatEmpty *_object = [[Api38_EncryptedChat_encryptedChatEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_EncryptedChat_encryptedChatWaiting *)encryptedChatWaitingWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId
{
Api38_EncryptedChat_encryptedChatWaiting *_object = [[Api38_EncryptedChat_encryptedChatWaiting alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.adminId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:adminId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participantId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:participantId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_EncryptedChat_encryptedChatDiscarded *)encryptedChatDiscardedWithPid:(NSNumber *)pid
{
Api38_EncryptedChat_encryptedChatDiscarded *_object = [[Api38_EncryptedChat_encryptedChatDiscarded alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
return _object;
}
+ (Api38_EncryptedChat_encryptedChatRequested *)encryptedChatRequestedWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId gA:(NSData *)gA
{
Api38_EncryptedChat_encryptedChatRequested *_object = [[Api38_EncryptedChat_encryptedChatRequested alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.adminId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:adminId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participantId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:participantId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.gA = [Api38__Serializer addSerializerToObject:[gA copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
return _object;
}
+ (Api38_EncryptedChat_encryptedChat *)encryptedChatWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date adminId:(NSNumber *)adminId participantId:(NSNumber *)participantId gAOrB:(NSData *)gAOrB keyFingerprint:(NSNumber *)keyFingerprint
{
Api38_EncryptedChat_encryptedChat *_object = [[Api38_EncryptedChat_encryptedChat alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.adminId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:adminId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.participantId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:participantId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.gAOrB = [Api38__Serializer addSerializerToObject:[gAOrB copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]];
_object.keyFingerprint = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_EncryptedChat_encryptedChatEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xab7ec0a0 serializeBlock:^bool (Api38_EncryptedChat_encryptedChatEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedChatEmpty id:%@)", self.pid];
}
@end
@implementation Api38_EncryptedChat_encryptedChatWaiting
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x3bf703dc serializeBlock:^bool (Api38_EncryptedChat_encryptedChatWaiting *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.adminId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participantId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedChatWaiting id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@)", self.pid, self.accessHash, self.date, self.adminId, self.participantId];
}
@end
@implementation Api38_EncryptedChat_encryptedChatDiscarded
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x13d6dd27 serializeBlock:^bool (Api38_EncryptedChat_encryptedChatDiscarded *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedChatDiscarded id:%@)", self.pid];
}
@end
@implementation Api38_EncryptedChat_encryptedChatRequested
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xc878527e serializeBlock:^bool (Api38_EncryptedChat_encryptedChatRequested *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.adminId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participantId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.gA data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedChatRequested id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@ g_a:%d)", self.pid, self.accessHash, self.date, self.adminId, self.participantId, (int)[self.gA length]];
}
@end
@implementation Api38_EncryptedChat_encryptedChat
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xfa56ce36 serializeBlock:^bool (Api38_EncryptedChat_encryptedChat *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.adminId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.participantId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.gAOrB data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.keyFingerprint data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(encryptedChat id:%@ access_hash:%@ date:%@ admin_id:%@ participant_id:%@ g_a_or_b:%d key_fingerprint:%@)", self.pid, self.accessHash, self.date, self.adminId, self.participantId, (int)[self.gAOrB length], self.keyFingerprint];
}
@end
@interface Api38_Document ()
@property (nonatomic, strong) NSNumber * pid;
@end
@interface Api38_Document_documentEmpty ()
@end
@interface Api38_Document_document ()
@property (nonatomic, strong) NSNumber * accessHash;
@property (nonatomic, strong) NSNumber * date;
@property (nonatomic, strong) NSString * mimeType;
@property (nonatomic, strong) NSNumber * size;
@property (nonatomic, strong) Api38_PhotoSize * thumb;
@property (nonatomic, strong) NSNumber * dcId;
@property (nonatomic, strong) NSArray * attributes;
@end
@implementation Api38_Document
+ (Api38_Document_documentEmpty *)documentEmptyWithPid:(NSNumber *)pid
{
Api38_Document_documentEmpty *_object = [[Api38_Document_documentEmpty alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
+ (Api38_Document_document *)documentWithPid:(NSNumber *)pid accessHash:(NSNumber *)accessHash date:(NSNumber *)date mimeType:(NSString *)mimeType size:(NSNumber *)size thumb:(Api38_PhotoSize *)thumb dcId:(NSNumber *)dcId attributes:(NSArray *)attributes
{
Api38_Document_document *_object = [[Api38_Document_document alloc] init];
_object.pid = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.accessHash = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:accessHash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
_object.date = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.mimeType = [Api38__Serializer addSerializerToObject:[mimeType copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]];
_object.size = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:size] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.thumb = thumb;
_object.dcId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.attributes =
({
NSMutableArray *attributes_copy = [[NSMutableArray alloc] initWithCapacity:attributes.count];
for (id attributes_item in attributes)
{
[attributes_copy addObject:attributes_item];
}
id attributes_result = [Api38__Serializer addSerializerToObject:attributes_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; attributes_result;});
return _object;
}
@end
@implementation Api38_Document_documentEmpty
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0x36f8c871 serializeBlock:^bool (Api38_Document_documentEmpty *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(documentEmpty id:%@)", self.pid];
}
@end
@implementation Api38_Document_document
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xf9a39f4f serializeBlock:^bool (Api38_Document_document *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.pid data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.accessHash data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.date data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.mimeType data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.size data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.thumb data:data addSignature:true])
return false;
if (![Api38__Environment serializeObject:object.dcId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.attributes data:data addSignature:true])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(document id:%@ access_hash:%@ date:%@ mime_type:%d size:%@ thumb:%@ dc_id:%@ attributes:%@)", self.pid, self.accessHash, self.date, (int)[self.mimeType length], self.size, self.thumb, self.dcId, self.attributes];
}
@end
@interface Api38_ImportedContact ()
@property (nonatomic, strong) NSNumber * userId;
@property (nonatomic, strong) NSNumber * clientId;
@end
@interface Api38_ImportedContact_importedContact ()
@end
@implementation Api38_ImportedContact
+ (Api38_ImportedContact_importedContact *)importedContactWithUserId:(NSNumber *)userId clientId:(NSNumber *)clientId
{
Api38_ImportedContact_importedContact *_object = [[Api38_ImportedContact_importedContact alloc] init];
_object.userId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:userId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]];
_object.clientId = [Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:clientId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]];
return _object;
}
@end
@implementation Api38_ImportedContact_importedContact
- (instancetype)init
{
self = [super init];
if (self != nil)
{
[Api38__Serializer addSerializerToObject:self withConstructorSignature:0xd0028438 serializeBlock:^bool (Api38_ImportedContact_importedContact *object, NSMutableData *data)
{
if (![Api38__Environment serializeObject:object.userId data:data addSignature:false])
return false;
if (![Api38__Environment serializeObject:object.clientId data:data addSignature:false])
return false;
return true;
}];
}
return self;
}
- (NSString *)description
{
return [[NSString alloc] initWithFormat:@"(importedContact user_id:%@ client_id:%@)", self.userId, self.clientId];
}
@end
@implementation Api38: NSObject
+ (Api38_FunctionContext *)messages_getMessagesWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1109588596;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getMessages"];
}
+ (Api38_FunctionContext *)messages_deleteHistoryWithPeer:(Api38_InputPeer *)peer offset:(NSNumber *)offset
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -185009311;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.deleteHistory"];
}
+ (Api38_FunctionContext *)messages_restoreMessagesWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 962567550;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return result;
} metadata:@"messages.restoreMessages"];
}
+ (Api38_FunctionContext *)messages_getChatsWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1013621127;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getChats"];
}
+ (Api38_FunctionContext *)messages_getFullChatWithChatId:(NSNumber *)chatId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 998448230;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getFullChat"];
}
+ (Api38_FunctionContext *)messages_getDhConfigWithVersion:(NSNumber *)version randomLength:(NSNumber *)randomLength
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 651135312;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomLength] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getDhConfig"];
}
+ (Api38_FunctionContext *)messages_requestEncryptionWithUserId:(Api38_InputUser *)userId randomId:(NSNumber *)randomId gA:(NSData *)gA
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -162681021;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[gA copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.requestEncryption"];
}
+ (Api38_FunctionContext *)messages_acceptEncryptionWithPeer:(Api38_InputEncryptedChat *)peer gB:(NSData *)gB keyFingerprint:(NSNumber *)keyFingerprint
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1035731989;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[gB copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:keyFingerprint] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.acceptEncryption"];
}
+ (Api38_FunctionContext *)messages_discardEncryptionWithChatId:(NSNumber *)chatId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -304536635;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.discardEncryption"];
}
+ (Api38_FunctionContext *)messages_setEncryptedTypingWithPeer:(Api38_InputEncryptedChat *)peer typing:(Api38_Bool *)typing
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 2031374829;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:typing data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.setEncryptedTyping"];
}
+ (Api38_FunctionContext *)messages_readEncryptedHistoryWithPeer:(Api38_InputEncryptedChat *)peer maxDate:(NSNumber *)maxDate
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 2135648522;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.readEncryptedHistory"];
}
+ (Api38_FunctionContext *)messages_sendEncryptedWithPeer:(Api38_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1451792525;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[data copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendEncrypted"];
}
+ (Api38_FunctionContext *)messages_sendEncryptedFileWithPeer:(Api38_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data file:(Api38_InputEncryptedFile *)file
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1701831834;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[data copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:file data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendEncryptedFile"];
}
+ (Api38_FunctionContext *)messages_sendEncryptedServiceWithPeer:(Api38_InputEncryptedChat *)peer randomId:(NSNumber *)randomId data:(NSData *)data
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 852769188;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[data copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendEncryptedService"];
}
+ (Api38_FunctionContext *)messages_receivedQueueWithMaxQts:(NSNumber *)maxQts
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1436924774;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxQts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil)
return nil;
return result;
} metadata:@"messages.receivedQueue"];
}
+ (Api38_FunctionContext *)messages_setTypingWithPeer:(Api38_InputPeer *)peer action:(Api38_SendMessageAction *)action
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1551737264;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:action data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.setTyping"];
}
+ (Api38_FunctionContext *)messages_getStickersWithEmoticon:(NSString *)emoticon phash:(NSString *)phash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1373446075;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[emoticon copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getStickers"];
}
+ (Api38_FunctionContext *)messages_getAllStickersWithPhash:(NSString *)phash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1438922648;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getAllStickers"];
}
+ (Api38_FunctionContext *)messages_readHistoryWithPeer:(Api38_InputPeer *)peer maxId:(NSNumber *)maxId offset:(NSNumber *)offset
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1336990448;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.readHistory"];
}
+ (Api38_FunctionContext *)messages_deleteMessagesWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1510897371;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.deleteMessages"];
}
+ (Api38_FunctionContext *)messages_readMessageContentsWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 916930423;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.readMessageContents"];
}
+ (Api38_FunctionContext *)messages_editChatTitleWithChatId:(NSNumber *)chatId title:(NSString *)title
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -599447467;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.editChatTitle"];
}
+ (Api38_FunctionContext *)messages_editChatPhotoWithChatId:(NSNumber *)chatId photo:(Api38_InputChatPhoto *)photo
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -900957736;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:photo data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.editChatPhoto"];
}
+ (Api38_FunctionContext *)messages_addChatUserWithChatId:(NSNumber *)chatId userId:(Api38_InputUser *)userId fwdLimit:(NSNumber *)fwdLimit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -106911223;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fwdLimit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.addChatUser"];
}
+ (Api38_FunctionContext *)messages_deleteChatUserWithChatId:(NSNumber *)chatId userId:(Api38_InputUser *)userId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -530505962;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.deleteChatUser"];
}
+ (Api38_FunctionContext *)messages_createChatWithUsers:(NSArray *)users title:(NSString *)title
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 164303470;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.createChat"];
}
+ (Api38_FunctionContext *)messages_sendBroadcastWithContacts:(NSArray *)contacts randomId:(NSArray *)randomId message:(NSString *)message media:(Api38_InputMedia *)media
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1082919718;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count];
for (id contacts_item in contacts)
{
[contacts_copy addObject:contacts_item];
}
id contacts_result = [Api38__Serializer addSerializerToObject:contacts_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; contacts_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *randomId_copy = [[NSMutableArray alloc] initWithCapacity:randomId.count];
for (id randomId_item in randomId)
{
[randomId_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId_item] serializer:[[Api38_BuiltinSerializer_Long alloc] init]]];
}
id randomId_result = [Api38__Serializer addSerializerToObject:randomId_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; randomId_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:media data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendBroadcast"];
}
+ (Api38_FunctionContext *)messages_getWebPagePreviewWithMessage:(NSString *)message
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 623001124;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getWebPagePreview"];
}
+ (Api38_FunctionContext *)messages_forwardMessageWithPeer:(Api38_InputPeer *)peer pid:(NSNumber *)pid randomId:(NSNumber *)randomId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 865483769;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.forwardMessage"];
}
+ (Api38_FunctionContext *)messages_receivedMessagesWithMaxId:(NSNumber *)maxId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 94983360;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return result;
} metadata:@"messages.receivedMessages"];
}
+ (Api38_FunctionContext *)messages_exportChatInviteWithChatId:(NSNumber *)chatId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 2106086025;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:chatId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.exportChatInvite"];
}
+ (Api38_FunctionContext *)messages_checkChatInviteWithPhash:(NSString *)phash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1051570619;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.checkChatInvite"];
}
+ (Api38_FunctionContext *)messages_importChatInviteWithPhash:(NSString *)phash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1817183516;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.importChatInvite"];
}
+ (Api38_FunctionContext *)messages_getStickerSetWithStickerset:(Api38_InputStickerSet *)stickerset
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 639215886;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:stickerset data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getStickerSet"];
}
+ (Api38_FunctionContext *)messages_uninstallStickerSetWithStickerset:(Api38_InputStickerSet *)stickerset
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -110209570;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:stickerset data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.uninstallStickerSet"];
}
+ (Api38_FunctionContext *)messages_sendMediaWithFlags:(NSNumber *)flags peer:(Api38_InputPeer *)peer replyToMsgId:(NSNumber *)replyToMsgId media:(Api38_InputMedia *)media randomId:(NSNumber *)randomId replyMarkup:(Api38_ReplyMarkup *)replyMarkup
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -923703407;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if ([flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:media data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if ([flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:replyMarkup data:_data addSignature:true])
return false;
}
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendMedia"];
}
+ (Api38_FunctionContext *)messages_installStickerSetWithStickerset:(Api38_InputStickerSet *)stickerset disabled:(Api38_Bool *)disabled
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 2066793382;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:stickerset data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:disabled data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.installStickerSet"];
}
+ (Api38_FunctionContext *)messages_sendMessageWithFlags:(NSNumber *)flags peer:(Api38_InputPeer *)peer replyToMsgId:(NSNumber *)replyToMsgId message:(NSString *)message randomId:(NSNumber *)randomId replyMarkup:(Api38_ReplyMarkup *)replyMarkup entities:(NSArray *)entities
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -91733382;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if ([flags intValue] & (1 << 0)) {
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:replyToMsgId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
}
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if ([flags intValue] & (1 << 2)) {
if (![Api38__Environment serializeObject:replyMarkup data:_data addSignature:true])
return false;
}
if ([flags intValue] & (1 << 3)) {
if (![Api38__Environment serializeObject:
({
NSMutableArray *entities_copy = [[NSMutableArray alloc] initWithCapacity:entities.count];
for (id entities_item in entities)
{
[entities_copy addObject:entities_item];
}
id entities_result = [Api38__Serializer addSerializerToObject:entities_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; entities_result;}) data:_data addSignature:true])
return false;
}
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.sendMessage"];
}
+ (Api38_FunctionContext *)messages_getDialogsWithOffset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -2053423812;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getDialogs"];
}
+ (Api38_FunctionContext *)messages_getHistoryWithPeer:(Api38_InputPeer *)peer offsetId:(NSNumber *)offsetId addOffset:(NSNumber *)addOffset limit:(NSNumber *)limit maxId:(NSNumber *)maxId minId:(NSNumber *)minId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1970355494;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offsetId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:addOffset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:minId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.getHistory"];
}
+ (Api38_FunctionContext *)messages_searchWithFlags:(NSNumber *)flags peer:(Api38_InputPeer *)peer q:(NSString *)q filter:(Api38_MessagesFilter *)filter minDate:(NSNumber *)minDate maxDate:(NSNumber *)maxDate offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -732523960;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[q copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:filter data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:minDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxDate] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.search"];
}
+ (Api38_FunctionContext *)messages_forwardMessagesWithFlags:(NSNumber *)flags fromPeer:(Api38_InputPeer *)fromPeer pid:(NSArray *)pid randomId:(NSArray *)randomId toPeer:(Api38_InputPeer *)toPeer
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1888354709;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:fromPeer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *randomId_copy = [[NSMutableArray alloc] initWithCapacity:randomId.count];
for (id randomId_item in randomId)
{
[randomId_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:randomId_item] serializer:[[Api38_BuiltinSerializer_Long alloc] init]]];
}
id randomId_result = [Api38__Serializer addSerializerToObject:randomId_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; randomId_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:toPeer data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"messages.forwardMessages"];
}
+ (Api38_FunctionContext *)messages_getMessagesViewsWithPeer:(Api38_InputPeer *)peer pid:(NSArray *)pid increment:(Api38_Bool *)increment
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -993483427;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:increment data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return result;
} metadata:@"messages.getMessagesViews"];
}
+ (Api38_FunctionContext *)channels_getDialogsWithOffset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1445735863;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getDialogs"];
}
+ (Api38_FunctionContext *)channels_getImportantHistoryWithChannel:(Api38_InputChannel *)channel offsetId:(NSNumber *)offsetId addOffset:(NSNumber *)addOffset limit:(NSNumber *)limit maxId:(NSNumber *)maxId minId:(NSNumber *)minId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -575067701;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offsetId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:addOffset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:minId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getImportantHistory"];
}
+ (Api38_FunctionContext *)channels_readHistoryWithChannel:(Api38_InputChannel *)channel maxId:(NSNumber *)maxId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -871347913;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.readHistory"];
}
+ (Api38_FunctionContext *)channels_deleteMessagesWithChannel:(Api38_InputChannel *)channel pid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -2067661490;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.deleteMessages"];
}
+ (Api38_FunctionContext *)channels_deleteUserHistoryWithChannel:(Api38_InputChannel *)channel userId:(Api38_InputUser *)userId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -787622117;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.deleteUserHistory"];
}
+ (Api38_FunctionContext *)channels_reportSpamWithChannel:(Api38_InputChannel *)channel userId:(Api38_InputUser *)userId pid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -32999408;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.reportSpam"];
}
+ (Api38_FunctionContext *)channels_getMessagesWithChannel:(Api38_InputChannel *)channel pid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1814580409;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid_item] serializer:[[Api38_BuiltinSerializer_Int alloc] init]]];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getMessages"];
}
+ (Api38_FunctionContext *)channels_getParticipantsWithChannel:(Api38_InputChannel *)channel filter:(Api38_ChannelParticipantsFilter *)filter offset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 618237842;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:filter data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getParticipants"];
}
+ (Api38_FunctionContext *)channels_getParticipantWithChannel:(Api38_InputChannel *)channel userId:(Api38_InputUser *)userId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1416484774;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getParticipant"];
}
+ (Api38_FunctionContext *)channels_getChannelsWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 176122811;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getChannels"];
}
+ (Api38_FunctionContext *)channels_getFullChannelWithChannel:(Api38_InputChannel *)channel
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 141781513;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.getFullChannel"];
}
+ (Api38_FunctionContext *)channels_createChannelWithFlags:(NSNumber *)flags title:(NSString *)title about:(NSString *)about users:(NSArray *)users
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1428281412;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:flags] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[about copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.createChannel"];
}
+ (Api38_FunctionContext *)channels_editAboutWithChannel:(Api38_InputChannel *)channel about:(NSString *)about
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 333610782;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[about copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.editAbout"];
}
+ (Api38_FunctionContext *)channels_editAdminWithChannel:(Api38_InputChannel *)channel userId:(Api38_InputUser *)userId role:(Api38_ChannelParticipantRole *)role
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1387358562;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:role data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.editAdmin"];
}
+ (Api38_FunctionContext *)channels_editTitleWithChannel:(Api38_InputChannel *)channel title:(NSString *)title
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1450044624;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[title copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.editTitle"];
}
+ (Api38_FunctionContext *)channels_editPhotoWithChannel:(Api38_InputChannel *)channel photo:(Api38_InputChatPhoto *)photo
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -248621111;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:photo data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.editPhoto"];
}
+ (Api38_FunctionContext *)channels_toggleCommentsWithChannel:(Api38_InputChannel *)channel enabled:(Api38_Bool *)enabled
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1432183160;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:enabled data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.toggleComments"];
}
+ (Api38_FunctionContext *)channels_checkUsernameWithChannel:(Api38_InputChannel *)channel username:(NSString *)username
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 283557164;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.checkUsername"];
}
+ (Api38_FunctionContext *)channels_updateUsernameWithChannel:(Api38_InputChannel *)channel username:(NSString *)username
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 890549214;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.updateUsername"];
}
+ (Api38_FunctionContext *)channels_joinChannelWithChannel:(Api38_InputChannel *)channel
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 615851205;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.joinChannel"];
}
+ (Api38_FunctionContext *)channels_leaveChannelWithChannel:(Api38_InputChannel *)channel
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -130635115;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.leaveChannel"];
}
+ (Api38_FunctionContext *)channels_inviteToChannelWithChannel:(Api38_InputChannel *)channel users:(NSArray *)users
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 429865580;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.inviteToChannel"];
}
+ (Api38_FunctionContext *)channels_kickFromChannelWithChannel:(Api38_InputChannel *)channel userId:(Api38_InputUser *)userId kicked:(Api38_Bool *)kicked
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1502421484;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:kicked data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.kickFromChannel"];
}
+ (Api38_FunctionContext *)channels_exportInviteWithChannel:(Api38_InputChannel *)channel
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -950663035;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.exportInvite"];
}
+ (Api38_FunctionContext *)channels_deleteChannelWithChannel:(Api38_InputChannel *)channel
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1072619549;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"channels.deleteChannel"];
}
+ (Api38_FunctionContext *)auth_checkPhoneWithPhoneNumber:(NSString *)phoneNumber
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1877286395;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.checkPhone"];
}
+ (Api38_FunctionContext *)auth_sendCallWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 63247716;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.sendCall"];
}
+ (Api38_FunctionContext *)auth_signUpWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode firstName:(NSString *)firstName lastName:(NSString *)lastName
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 453408308;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.signUp"];
}
+ (Api38_FunctionContext *)auth_signInWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1126886015;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.signIn"];
}
+ (Api38_FunctionContext *)auth_logOut
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1461180992;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.logOut"];
}
+ (Api38_FunctionContext *)auth_resetAuthorizations
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1616179942;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.resetAuthorizations"];
}
+ (Api38_FunctionContext *)auth_sendInvitesWithPhoneNumbers:(NSArray *)phoneNumbers message:(NSString *)message
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1998331287;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *phoneNumbers_copy = [[NSMutableArray alloc] initWithCapacity:phoneNumbers.count];
for (id phoneNumbers_item in phoneNumbers)
{
[phoneNumbers_copy addObject:[Api38__Serializer addSerializerToObject:[phoneNumbers_item copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]]];
}
id phoneNumbers_result = [Api38__Serializer addSerializerToObject:phoneNumbers_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:false])
return false;
}
return true;
}]]; phoneNumbers_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[message copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.sendInvites"];
}
+ (Api38_FunctionContext *)auth_exportAuthorizationWithDcId:(NSNumber *)dcId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -440401971;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:dcId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.exportAuthorization"];
}
+ (Api38_FunctionContext *)auth_importAuthorizationWithPid:(NSNumber *)pid bytes:(NSData *)bytes
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -470837741;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pid] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.importAuthorization"];
}
+ (Api38_FunctionContext *)auth_sendCodeWithPhoneNumber:(NSString *)phoneNumber smsType:(NSNumber *)smsType apiId:(NSNumber *)apiId apiHash:(NSString *)apiHash langCode:(NSString *)langCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1988976461;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:smsType] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:apiId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[apiHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.sendCode"];
}
+ (Api38_FunctionContext *)auth_sendSmsWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 229241832;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.sendSms"];
}
+ (Api38_FunctionContext *)auth_resetAccountPasswordWithFirstName:(NSString *)firstName lastName:(NSString *)lastName
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1232524865;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.resetAccountPassword"];
}
+ (Api38_FunctionContext *)auth_checkPasswordWithPasswordHash:(NSData *)passwordHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 174260510;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[passwordHash copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.checkPassword"];
}
+ (Api38_FunctionContext *)auth_requestPasswordRecovery
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -661144474;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.requestPasswordRecovery"];
}
+ (Api38_FunctionContext *)auth_recoverPasswordWithCode:(NSString *)code
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1319464594;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[code copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"auth.recoverPassword"];
}
+ (Api38_FunctionContext *)geo_saveGeoPlaceWithGeoPoint:(Api38_InputGeoPoint *)geoPoint langCode:(NSString *)langCode placeName:(Api38_InputGeoPlaceName *)placeName
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1896021556;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:geoPoint data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:placeName data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"geo.saveGeoPlace"];
}
+ (Api38_FunctionContext *)users_getUsersWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 227648840;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return result;
} metadata:@"users.getUsers"];
}
+ (Api38_FunctionContext *)users_getFullUserWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -902781519;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"users.getFullUser"];
}
+ (Api38_FunctionContext *)contacts_getContactIDs
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 333222173;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0xa8509bda]]) == nil)
return nil;
return result;
} metadata:@"contacts.getContactIDs"];
}
+ (Api38_FunctionContext *)contacts_getStatuses
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -995929106;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return result;
} metadata:@"contacts.getStatuses"];
}
+ (Api38_FunctionContext *)contacts_getContactsWithNHash:(NSString *)nHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 583445000;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[nHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getContacts"];
}
+ (Api38_FunctionContext *)contacts_getRequestsWithOffset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -250972370;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getRequests"];
}
+ (Api38_FunctionContext *)contacts_getLinkWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -451068847;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getLink"];
}
+ (Api38_FunctionContext *)contacts_importContactsWithContacts:(NSArray *)contacts replace:(Api38_Bool *)replace
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -634342611;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *contacts_copy = [[NSMutableArray alloc] initWithCapacity:contacts.count];
for (id contacts_item in contacts)
{
[contacts_copy addObject:contacts_item];
}
id contacts_result = [Api38__Serializer addSerializerToObject:contacts_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; contacts_result;}) data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:replace data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.importContacts"];
}
+ (Api38_FunctionContext *)contacts_getLocatedWithGeoPoint:(Api38_InputGeoPoint *)geoPoint hidden:(Api38_Bool *)hidden radius:(NSNumber *)radius limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1639285372;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:geoPoint data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:hidden data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:radius] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getLocated"];
}
+ (Api38_FunctionContext *)contacts_getSuggestedWithLimit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -847825880;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getSuggested"];
}
+ (Api38_FunctionContext *)contacts_sendRequestWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1923828526;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.sendRequest"];
}
+ (Api38_FunctionContext *)contacts_acceptRequestWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1804853359;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.acceptRequest"];
}
+ (Api38_FunctionContext *)contacts_declineRequestWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 308953976;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.declineRequest"];
}
+ (Api38_FunctionContext *)contacts_deleteContactWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1902823612;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.deleteContact"];
}
+ (Api38_FunctionContext *)contacts_clearContactWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -596855117;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.clearContact"];
}
+ (Api38_FunctionContext *)contacts_deleteContactsWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1504393374;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.deleteContacts"];
}
+ (Api38_FunctionContext *)contacts_blockWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 858475004;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.block"];
}
+ (Api38_FunctionContext *)contacts_unblockWithPid:(Api38_InputUser *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -448724803;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.unblock"];
}
+ (Api38_FunctionContext *)contacts_getBlockedWithOffset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -176409329;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.getBlocked"];
}
+ (Api38_FunctionContext *)contacts_searchWithQ:(NSString *)q limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 301470424;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[q copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.search"];
}
+ (Api38_FunctionContext *)contacts_resolveUsernameWithUsername:(NSString *)username
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -113456221;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contacts.resolveUsername"];
}
+ (Api38_FunctionContext *)contest_saveDeveloperInfoWithVkId:(NSNumber *)vkId name:(NSString *)name phoneNumber:(NSString *)phoneNumber age:(NSNumber *)age city:(NSString *)city
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1705021803;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:vkId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[name copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:age] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[city copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"contest.saveDeveloperInfo"];
}
+ (Api38_FunctionContext *)help_getConfig
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -990308245;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getConfig"];
}
+ (Api38_FunctionContext *)help_getNearestDc
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 531836966;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getNearestDc"];
}
+ (Api38_FunctionContext *)help_getSchemeWithVersion:(NSNumber *)version
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -608789858;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:version] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getScheme"];
}
+ (Api38_FunctionContext *)help_getAppUpdateWithDeviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -938300290;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getAppUpdate"];
}
+ (Api38_FunctionContext *)help_getInviteTextWithLangCode:(NSString *)langCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1532407418;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getInviteText"];
}
+ (Api38_FunctionContext *)help_getAppPrefsWithApiId:(NSNumber *)apiId apiHash:(NSString *)apiHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1883316387;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:apiId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[apiHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getAppPrefs"];
}
+ (Api38_FunctionContext *)help_saveNetworkStatsWithStats:(NSArray *)stats
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1113444435;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *stats_copy = [[NSMutableArray alloc] initWithCapacity:stats.count];
for (id stats_item in stats)
{
[stats_copy addObject:stats_item];
}
id stats_result = [Api38__Serializer addSerializerToObject:stats_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; stats_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.saveNetworkStats"];
}
+ (Api38_FunctionContext *)help_test
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1058929929;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.test"];
}
+ (Api38_FunctionContext *)help_getSupport
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1663104819;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getSupport"];
}
+ (Api38_FunctionContext *)help_getAppChangelogWithDeviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion langCode:(NSString *)langCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1537966002;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"help.getAppChangelog"];
}
+ (Api38_FunctionContext *)updates_getState
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -304838614;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"updates.getState"];
}
+ (Api38_FunctionContext *)updates_subscribeWithUsers:(NSArray *)users
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -72144472;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"updates.subscribe"];
}
+ (Api38_FunctionContext *)updates_unsubscribeWithUsers:(NSArray *)users
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 138751864;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *users_copy = [[NSMutableArray alloc] initWithCapacity:users.count];
for (id users_item in users)
{
[users_copy addObject:users_item];
}
id users_result = [Api38__Serializer addSerializerToObject:users_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; users_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"updates.unsubscribe"];
}
+ (Api38_FunctionContext *)updates_getDifferenceWithPts:(NSNumber *)pts date:(NSNumber *)date qts:(NSNumber *)qts
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 168039573;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:date] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:qts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"updates.getDifference"];
}
+ (Api38_FunctionContext *)updates_getChannelDifferenceWithChannel:(Api38_InputChannel *)channel filter:(Api38_ChannelMessagesFilter *)filter pts:(NSNumber *)pts limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1154295872;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:channel data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:filter data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:pts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"updates.getChannelDifference"];
}
+ (Api38_FunctionContext *)upload_saveFilePartWithFileId:(NSNumber *)fileId filePart:(NSNumber *)filePart bytes:(NSData *)bytes
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1291540959;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fileId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:filePart] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"upload.saveFilePart"];
}
+ (Api38_FunctionContext *)upload_getFileWithLocation:(Api38_InputFileLocation *)location offset:(NSNumber *)offset limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -475607115;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:location data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"upload.getFile"];
}
+ (Api38_FunctionContext *)upload_saveBigFilePartWithFileId:(NSNumber *)fileId filePart:(NSNumber *)filePart fileTotalParts:(NSNumber *)fileTotalParts bytes:(NSData *)bytes
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -562337987;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fileId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:filePart] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:fileTotalParts] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[bytes copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"upload.saveBigFilePart"];
}
+ (Api38_FunctionContext *)account_unregisterDeviceWithTokenType:(NSNumber *)tokenType token:(NSString *)token
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1707432768;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:tokenType] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[token copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.unregisterDevice"];
}
+ (Api38_FunctionContext *)account_updateNotifySettingsWithPeer:(Api38_InputNotifyPeer *)peer settings:(Api38_InputPeerNotifySettings *)settings
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -2067899501;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:settings data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updateNotifySettings"];
}
+ (Api38_FunctionContext *)account_getNotifySettingsWithPeer:(Api38_InputNotifyPeer *)peer
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 313765169;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:peer data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getNotifySettings"];
}
+ (Api38_FunctionContext *)account_resetNotifySettings
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -612493497;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.resetNotifySettings"];
}
+ (Api38_FunctionContext *)account_updateProfileWithFirstName:(NSString *)firstName lastName:(NSString *)lastName
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -259486360;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[firstName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[lastName copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updateProfile"];
}
+ (Api38_FunctionContext *)account_updateStatusWithOffline:(Api38_Bool *)offline
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1713919532;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:offline data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updateStatus"];
}
+ (Api38_FunctionContext *)account_getWallPapers
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1068696894;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[Api38__BoxedTypeMetaInfo boxedTypeMetaInfo]]) == nil)
return nil;
return result;
} metadata:@"account.getWallPapers"];
}
+ (Api38_FunctionContext *)account_registerDeviceWithTokenType:(NSNumber *)tokenType token:(NSString *)token deviceModel:(NSString *)deviceModel systemVersion:(NSString *)systemVersion appVersion:(NSString *)appVersion appSandbox:(Api38_Bool *)appSandbox langCode:(NSString *)langCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1147957548;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:tokenType] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[token copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[deviceModel copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[systemVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[appVersion copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:appSandbox data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[langCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.registerDevice"];
}
+ (Api38_FunctionContext *)account_checkUsernameWithUsername:(NSString *)username
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 655677548;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.checkUsername"];
}
+ (Api38_FunctionContext *)account_updateUsernameWithUsername:(NSString *)username
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1040964988;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[username copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updateUsername"];
}
+ (Api38_FunctionContext *)account_getPrivacyWithKey:(Api38_InputPrivacyKey *)key
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -623130288;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:key data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getPrivacy"];
}
+ (Api38_FunctionContext *)account_setPrivacyWithKey:(Api38_InputPrivacyKey *)key rules:(NSArray *)rules
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -906486552;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:key data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:
({
NSMutableArray *rules_copy = [[NSMutableArray alloc] initWithCapacity:rules.count];
for (id rules_item in rules)
{
[rules_copy addObject:rules_item];
}
id rules_result = [Api38__Serializer addSerializerToObject:rules_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; rules_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.setPrivacy"];
}
+ (Api38_FunctionContext *)account_deleteAccountWithReason:(NSString *)reason
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1099779595;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[reason copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.deleteAccount"];
}
+ (Api38_FunctionContext *)account_getAccountTTL
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 150761757;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getAccountTTL"];
}
+ (Api38_FunctionContext *)account_setAccountTTLWithTtl:(Api38_AccountDaysTTL *)ttl
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 608323678;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:ttl data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.setAccountTTL"];
}
+ (Api38_FunctionContext *)account_sendChangePhoneCodeWithPhoneNumber:(NSString *)phoneNumber
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1543001868;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.sendChangePhoneCode"];
}
+ (Api38_FunctionContext *)account_changePhoneWithPhoneNumber:(NSString *)phoneNumber phoneCodeHash:(NSString *)phoneCodeHash phoneCode:(NSString *)phoneCode
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1891839707;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneNumber copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCodeHash copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[phoneCode copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.changePhone"];
}
+ (Api38_FunctionContext *)account_setPasswordWithCurrentPasswordHash:(NSData *)currentPasswordHash pnewSalt:(NSData *)pnewSalt pnewPasswordHash:(NSData *)pnewPasswordHash hint:(NSString *)hint
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -584430193;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[pnewSalt copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[pnewPasswordHash copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[hint copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.setPassword"];
}
+ (Api38_FunctionContext *)account_updateDeviceLockedWithPeriod:(NSNumber *)period
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 954152242;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:period] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updateDeviceLocked"];
}
+ (Api38_FunctionContext *)account_getAuthorizations
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -484392616;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getAuthorizations"];
}
+ (Api38_FunctionContext *)account_resetAuthorizationWithPhash:(NSNumber *)phash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -545786948;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:phash] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.resetAuthorization"];
}
+ (Api38_FunctionContext *)account_getPassword
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1418342645;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getPassword"];
}
+ (Api38_FunctionContext *)account_getPasswordSettingsWithCurrentPasswordHash:(NSData *)currentPasswordHash
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1131605573;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.getPasswordSettings"];
}
+ (Api38_FunctionContext *)account_updatePasswordSettingsWithCurrentPasswordHash:(NSData *)currentPasswordHash pnewSettings:(Api38_account_PasswordInputSettings *)pnewSettings
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -92517498;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[currentPasswordHash copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:pnewSettings data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"account.updatePasswordSettings"];
}
+ (Api38_FunctionContext *)photos_getPhotosWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 20076782;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.getPhotos"];
}
+ (Api38_FunctionContext *)photos_getWallWithUserId:(Api38_InputUser *)userId offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 34033964;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.getWall"];
}
+ (Api38_FunctionContext *)photos_readWallWithUserId:(Api38_InputUser *)userId maxId:(NSNumber *)maxId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1170316907;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.readWall"];
}
+ (Api38_FunctionContext *)photos_editPhotoWithPid:(Api38_InputPhoto *)pid caption:(NSString *)caption geoPoint:(Api38_InputGeoPoint *)geoPoint
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1364846786;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:geoPoint data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.editPhoto"];
}
+ (Api38_FunctionContext *)photos_updateProfilePhotoWithPid:(Api38_InputPhoto *)pid crop:(Api38_InputPhotoCrop *)crop
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -285902432;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:crop data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.updateProfilePhoto"];
}
+ (Api38_FunctionContext *)photos_uploadPhotoWithFile:(Api38_InputFile *)file caption:(NSString *)caption geoPoint:(Api38_InputGeoPoint *)geoPoint
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1688640082;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:file data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:geoPoint data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.uploadPhoto"];
}
+ (Api38_FunctionContext *)photos_uploadProfilePhotoWithFile:(Api38_InputFile *)file caption:(NSString *)caption geoPoint:(Api38_InputGeoPoint *)geoPoint crop:(Api38_InputPhotoCrop *)crop
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -720397176;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:file data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[caption copy] serializer:[[Api38_BuiltinSerializer_String alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:geoPoint data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:crop data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.uploadProfilePhoto"];
}
+ (Api38_FunctionContext *)photos_deletePhotosWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -2016444625;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil)
return nil;
return result;
} metadata:@"photos.deletePhotos"];
}
+ (Api38_FunctionContext *)photos_restorePhotosWithPid:(NSArray *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 602134380;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:
({
NSMutableArray *pid_copy = [[NSMutableArray alloc] initWithCapacity:pid.count];
for (id pid_item in pid)
{
[pid_copy addObject:pid_item];
}
id pid_result = [Api38__Serializer addSerializerToObject:pid_copy serializer:[[Api38__Serializer alloc] initWithConstructorSignature:(int32_t)0x1cb5c415 serializeBlock:^bool (NSArray *object, NSMutableData *data)
{
int32_t count = (int32_t)object.count;
[data appendBytes:(void *)&count length:4];
for (id item in object)
{
if (![Api38__Environment serializeObject:item data:data addSignature:true])
return false;
}
return true;
}]]; pid_result;}) data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:[[Api38__UnboxedTypeMetaInfo alloc] initWithConstructorSignature:(int32_t)0x22076cba]]) == nil)
return nil;
return result;
} metadata:@"photos.restorePhotos"];
}
+ (Api38_FunctionContext *)photos_getUserPhotosWithUserId:(Api38_InputUser *)userId offset:(NSNumber *)offset maxId:(NSNumber *)maxId limit:(NSNumber *)limit
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -1848823128;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:offset] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:maxId] serializer:[[Api38_BuiltinSerializer_Long alloc] init]] data:_data addSignature:false])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[[Api38__Number alloc] initWithNumber:limit] serializer:[[Api38_BuiltinSerializer_Int alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"photos.getUserPhotos"];
}
+ (Api38_FunctionContext *)phone_getDhConfig
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = -999155058;
[_data appendBytes:&_functionSignature length:4];
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"phone.getDhConfig"];
}
+ (Api38_FunctionContext *)phone_requestCallWithUserId:(Api38_InputUser *)userId
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 270107117;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:userId data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"phone.requestCall"];
}
+ (Api38_FunctionContext *)phone_confirmCallWithPid:(Api38_InputPhoneCall *)pid aOrB:(NSData *)aOrB
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 1043872105;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
if (![Api38__Environment serializeObject:[Api38__Serializer addSerializerToObject:[aOrB copy] serializer:[[Api38_BuiltinSerializer_Bytes alloc] init]] data:_data addSignature:false])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"phone.confirmCall"];
}
+ (Api38_FunctionContext *)phone_declineCallWithPid:(Api38_InputPhoneCall *)pid
{
NSMutableData *_data = [[NSMutableData alloc] init];
int32_t _functionSignature = 983145256;
[_data appendBytes:&_functionSignature length:4];
if (![Api38__Environment serializeObject:pid data:_data addSignature:true])
return false;
return [[Api38_FunctionContext alloc] initWithPayload:_data responseParser:^id (NSData *data) {
id result = nil;
NSUInteger __offset = 0;
NSUInteger *_offset = &__offset;
int32_t result_signature = 0; [data getBytes:(void *)&result_signature range:NSMakeRange(*_offset, 4)]; *_offset += 4;
if ((result = [Api38__Environment parseObject:data offset:_offset implicitSignature:result_signature metaInfo:nil]) == nil)
return nil;
return result;
} metadata:@"phone.declineCall"];
}
@end