mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/HockeySDK-iOS git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9 git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
46 lines
1.2 KiB
Objective-C
46 lines
1.2 KiB
Objective-C
#import "BITDomain.h"
|
|
/// Data contract class for type Domain.
|
|
@implementation BITDomain
|
|
@synthesize envelopeTypeName = _envelopeTypeName;
|
|
@synthesize dataTypeName = _dataTypeName;
|
|
@synthesize properties = _properties;
|
|
|
|
/// Initializes a new instance of the class.
|
|
- (instancetype)init {
|
|
if ((self = [super init])) {
|
|
_envelopeTypeName = @"Microsoft.ApplicationInsights.Domain";
|
|
_dataTypeName = @"Domain";
|
|
}
|
|
return self;
|
|
}
|
|
|
|
///
|
|
/// Adds all members of this class to a dictionary
|
|
/// @returns dictionary to which the members of this class will be added.
|
|
///
|
|
- (NSDictionary *)serializeToDictionary {
|
|
NSMutableDictionary *dict = [super serializeToDictionary].mutableCopy;
|
|
return dict;
|
|
}
|
|
|
|
#pragma mark - NSCoding
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder {
|
|
self = [super initWithCoder:coder];
|
|
if(self) {
|
|
_envelopeTypeName = (NSString *)[coder decodeObjectForKey:@"_envelopeTypeName"];
|
|
_dataTypeName = (NSString *)[coder decodeObjectForKey:@"_dataTypeName"];
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)coder {
|
|
[super encodeWithCoder:coder];
|
|
[coder encodeObject:self.envelopeTypeName forKey:@"_envelopeTypeName"];
|
|
[coder encodeObject:self.dataTypeName forKey:@"_dataTypeName"];
|
|
}
|
|
|
|
|
|
@end
|