1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/legacy/TL/TLaccount_PasswordInputSettings_manual.m
2015-10-01 19:19:52 +03:00

41 lines
941 B
Objective-C

#import "TLaccount_PasswordInputSettings_manual.h"
#import "TGStringUtils.h"
@implementation TLaccount_PasswordInputSettings_manual
- (int32_t)TLconstructorName
{
return -1;
}
- (int32_t)TLconstructorSignature
{
return (int32_t)-1124314324;
}
- (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