Home telegram - mtSocksProxySettings
Post
Cancel

telegram - mtSocksProxySettings

MTSocksProxySettings

class MTSocksProxySettings

@property (nonatomic, strong, readonly) NSString *ip;
@property (nonatomic, readonly) uint16_t port;
@property (nonatomic, strong, readonly) NSString *username;
@property (nonatomic, strong, readonly) NSString *password;
@property (nonatomic, strong, readonly) NSData *secret;

MTProxySecret

class MTProxySecret

@property (nonatomic, strong, readonly) NSData * _Nonnull secret;

+ (MTProxySecret * _Nullable)parse:(NSString * _Nonnull)string;
+ (MTProxySecret * _Nullable)parseData:(NSData * _Nonnull)data;

- (NSData * _Nonnull)serialize;
- (NSString * _Nonnull)serializeToString;

class MTProxySecretType0: *MTProxySecret

- (instancetype _Nullable)initWithSecret:(NSData * _Nonnull)secret;

class MTProxySecretType1:MTProxySecret

- (instancetype _Nullable)initWithSecret:(NSData * _Nonnull)secret;

class MTProxySecretType2:MTProxySecret

@property (nonatomic, strong, readonly) NSString * _Nonnull domain;

- (instancetype _Nullable)initWithSecret:(NSData * _Nonnull)secret domain:(NSString * _Nonnull)domain;
This post is licensed under CC BY 4.0 by the author.