mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Build ChatListUI
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
#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
|
||||
|
||||
|
||||
@implementation TGMessageEditDateContentProperty
|
||||
|
||||
- (instancetype)initWithEditDate:(NSTimeInterval)editDate {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_editDate = editDate;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithKeyValueCoder:(PSKeyValueCoder *)coder {
|
||||
return [self initWithEditDate:[coder decodeDoubleForCKey:"ed"]];
|
||||
}
|
||||
|
||||
- (void)encodeWithKeyValueCoder:(PSKeyValueCoder *)coder {
|
||||
[coder encodeDouble:_editDate forCKey:"ed"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation TGMessageGroupedIdContentProperty
|
||||
|
||||
- (instancetype)initWithGroupedId:(int64_t)groupedId {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_groupedId = groupedId;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithKeyValueCoder:(PSKeyValueCoder *)coder {
|
||||
return [self initWithGroupedId:[coder decodeInt64ForCKey:"gi"]];
|
||||
}
|
||||
|
||||
- (void)encodeWithKeyValueCoder:(PSKeyValueCoder *)coder {
|
||||
[coder encodeInt64:_groupedId forCKey:"gi"];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user