mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
18 lines
683 B
Objective-C
18 lines
683 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@class MTDatacenterAddress;
|
|
|
|
@interface MTTransportSchemeStats : NSObject<NSCoding>
|
|
|
|
@property (nonatomic, readonly) int32_t lastFailureTimestamp;
|
|
@property (nonatomic, readonly) int32_t lastResponseTimestamp;
|
|
|
|
- (instancetype)initWithLastFailureTimestamp:(int32_t)lastFailureTimestamp lastResponseTimestamp:(int32_t)lastResponseTimestamp;
|
|
|
|
- (instancetype)withUpdatedLastFailureTimestamp:(int32_t)lastFailureTimestamp;
|
|
- (instancetype)withUpdatedLastResponseTimestamp:(int32_t)lastResponseTimestamp;
|
|
|
|
+ (NSString *)formatStats:(NSMutableDictionary<NSNumber *, NSMutableDictionary<MTDatacenterAddress *, MTTransportSchemeStats *> *> *)stats;
|
|
|
|
@end
|