1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/legacy/TL/TLMsgsAck$msgs_ack_manual.m
2015-10-01 19:19:52 +03:00

31 lines
939 B
Objective-C

#import "TLMsgsAck$msgs_ack_manual.h"
@implementation TLMsgsAck$msgs_ack_manual
- (void)TLserialize:(NSOutputStream *)__unused os
{
TGLog(@"***** TLResPQ_resPQ_manual serialization not supported");
}
- (id<TLObject>)TLdeserialize:(NSInputStream *)is signature:(int32_t)__unused signature environment:(id<TLSerializationEnvironment>)__unused environment context:(TLSerializationContext *)__unused context error:(__autoreleasing NSError **)__unused error
{
TLMsgsAck$msgs_ack_manual *result = [[TLMsgsAck$msgs_ack_manual alloc] init];
[is readInt32]; // Vector
int32_t count = [is readInt32];
NSMutableArray *vector = [[NSMutableArray alloc] initWithCapacity:(NSUInteger)count];
for (int i = 0; i < count; i++)
{
int64_t value = [is readInt64];
[vector addObject:[[NSNumber alloc] initWithLongLong:value]];
}
result.msg_ids = vector;
return result;
}
@end