1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/legacy/TL/TLaccount_PasswordInputSettings_manual.m

41 lines
940 B
Mathematica
Raw Permalink Normal View History

2015-10-01 18:19:52 +02:00
#import "TLaccount_PasswordInputSettings_manual.h"
#import "TGStringUtils.h"
@implementation TLaccount_PasswordInputSettings_manual
- (int32_t)TLconstructorName
{
return -1;
}
- (int32_t)TLconstructorSignature
{
2016-02-25 01:03:51 +01:00
return (int32_t)0x86916DEB;
2015-10-01 18:19:52 +02:00
}
- (void)TLserialize:(NSOutputStream *)os
{
[os writeInt32:_flags];
if (_flags & (1 << 0))
{
[os writeBytes:_n_newSalt];
[os writeBytes:_n_newPasswordHash];
[os writeString:_hint];
}
if (_flags & (1 << 1))
{
[os writeString:_email];
}
}
- (id<TLObject>)TLdeserialize:(NSInputStream *)__unused is signature:(int32_t)__unused signature environment:(id<TLSerializationEnvironment>)__unused environment context:(TLSerializationContext *)__unused context error:(__autoreleasing NSError **)__unused error
{
TGLog(@"***** TLaccount_PasswordInputSettings_manual deserialization not supported");
return nil;
}
@end