mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-05 20:22:15 +00:00
32 lines
940 B
Objective-C
32 lines
940 B
Objective-C
#import "BITTelemetryObject.h"
|
|
#import "BITOrderedDictionary.h"
|
|
|
|
@implementation BITTelemetryObject
|
|
|
|
// empty implementation for the base class
|
|
- (BITOrderedDictionary *)serializeToDictionary{
|
|
BITOrderedDictionary *dict = [BITOrderedDictionary new];
|
|
return dict;
|
|
}
|
|
|
|
- (NSString *)serializeToString {
|
|
BITOrderedDictionary *dict = [self serializeToDictionary];
|
|
NSMutableString *jsonString;
|
|
NSError *error = nil;
|
|
NSData *json;
|
|
json = [NSJSONSerialization dataWithJSONObject:dict options:0 error:&error];
|
|
jsonString = [[NSMutableString alloc] initWithData:json encoding:NSUTF8StringEncoding];
|
|
NSString *returnString = [[jsonString stringByReplacingOccurrencesOfString:@"\"true\"" withString:@"true"] stringByReplacingOccurrencesOfString:@"\"false\"" withString:@"false"];
|
|
return returnString;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)coder {
|
|
}
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder {
|
|
return [super init];
|
|
}
|
|
|
|
|
|
@end
|