mirror of
https://github.com/danog/Telegram.git
synced 2024-12-11 17:09:46 +01:00
28 lines
764 B
Objective-C
28 lines
764 B
Objective-C
#import "TGBridgeChatMessageListView.h"
|
|
#import "TGBridgeMessage.h"
|
|
|
|
NSString *const TGBridgeChatMessageListViewMessagesKey = @"messages";
|
|
NSString *const TGBridgeChatMessageListViewEarlierMessageIdKey = @"earlier";
|
|
NSString *const TGBridgeChatMessageListViewLaterMessageIdKey = @"later";
|
|
|
|
NSString *const TGBridgeChatMessageListViewKey = @"messageListView";
|
|
|
|
@implementation TGBridgeChatMessageListView
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
|
{
|
|
self = [super init];
|
|
if (self != nil)
|
|
{
|
|
_messages = [aDecoder decodeObjectForKey:TGBridgeChatMessageListViewMessagesKey];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)aCoder
|
|
{
|
|
[aCoder encodeObject:self.messages forKey:TGBridgeChatMessageListViewMessagesKey];
|
|
}
|
|
|
|
@end
|