1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGMessageViewCountContentProperty.m

24 lines
541 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGMessageViewCountContentProperty.h"
#import "PSKeyValueCoder.h"
@implementation TGMessageViewCountContentProperty
- (instancetype)initWithViewCount:(int32_t)viewCount {
self = [super init];
if (self != nil) {
_viewCount = viewCount;
}
return self;
}
- (instancetype)initWithKeyValueCoder:(PSKeyValueCoder *)coder {
return [self initWithViewCount:[coder decodeInt32ForCKey:"vc"]];
}
- (void)encodeWithKeyValueCoder:(PSKeyValueCoder *)coder {
[coder encodeInt32:_viewCount forCKey:"vc"];
}
@end