Files
GLEGram-iOS/submodules/LegacyComponents/Sources/TGMessageViewCountContentProperty.m
T
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

65 lines
1.5 KiB
Objective-C

#import <LegacyComponents/TGMessageViewCountContentProperty.h>
#import <LegacyComponents/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