1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/legacy/TL/TLDestroySessionsRes_manual.mm
2015-10-01 19:19:52 +03:00

27 lines
894 B
Plaintext

#import "TLDestroySessionsRes_manual.h"
@implementation TLDestroySessionsRes_manual
- (id<TLObject>)TLdeserialize:(NSInputStream *)__unused is signature:(int32_t)signature environment:(id<TLSerializationEnvironment>)__unused environment context:(TLSerializationContext *)__unused context error:(NSError *__autoreleasing *)error
{
if (signature != (int32_t)0xfb95abcd)
{
if (error)
{
NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init];
[userInfo setValue:[NSString stringWithFormat:@"Invalid signature %.8x (should be 0x73f1f8dc)", signature] forKey:NSLocalizedDescriptionKey];
*error = [[NSError alloc] initWithDomain:@"TL" code:-1 userInfo:userInfo];
}
return nil;
}
TLDestroySessionsRes *object = [[TLDestroySessionsRes alloc] init];
return object;
}
@end