mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Build ChatListUI
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#import "TGStaticBackdropImageData.h"
|
||||
|
||||
NSString *TGStaticBackdropMessageActionCircle = @"TGStaticBackdropMessageActionCircle";
|
||||
NSString *TGStaticBackdropMessageTimestamp = @"TGStaticBackdropMessageTimestamp";
|
||||
NSString *TGStaticBackdropMessageAdditionalData = @"TGStaticBackdropMessageAdditionalData";
|
||||
|
||||
@interface TGStaticBackdropImageData ()
|
||||
{
|
||||
NSMutableDictionary *_areas;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation TGStaticBackdropImageData
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
_areas = [[NSMutableDictionary alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (TGStaticBackdropAreaData *)backdropAreaForKey:(NSString *)key
|
||||
{
|
||||
if (key == nil)
|
||||
return nil;
|
||||
|
||||
return _areas[key];
|
||||
}
|
||||
|
||||
- (void)setBackdropArea:(TGStaticBackdropAreaData *)backdropArea forKey:(NSString *)key
|
||||
{
|
||||
if (key != nil)
|
||||
{
|
||||
if (backdropArea == nil)
|
||||
[_areas removeObjectForKey:key];
|
||||
else
|
||||
_areas[key] = backdropArea;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user