1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/Telegraph/TGMediaPickerAssetsGroup.m

57 lines
1005 B
Mathematica
Raw Normal View History

2014-07-10 16:11:09 +02:00
#import "TGMediaPickerAssetsGroup.h"
@interface TGMediaPickerAssetsGroup ()
{
NSArray *_latestAssets;
UIImage *_groupThumbnail;
NSString *_persistentId;
NSString *_title;
NSUInteger _assetCount;
}
@end
@implementation TGMediaPickerAssetsGroup
- (instancetype)initWithLatestAssets:(NSArray *)latestAssets groupThumbnail:(UIImage *)groupThumbnail persistentId:(NSString *)persistentId title:(NSString *)title assetCount:(NSUInteger)assetCount
{
self = [super init];
if (self != nil)
{
_latestAssets = latestAssets;
_groupThumbnail = groupThumbnail;
_persistentId = persistentId;
_title = title;
_assetCount = assetCount;
}
return self;
}
- (NSArray *)latestAssets
{
return _latestAssets;
}
- (UIImage *)groupThumbnail
{
return _groupThumbnail;
}
- (NSString *)persistentId
{
return _persistentId;
}
- (NSString *)title
{
return _title;
}
- (NSUInteger)assetCount
{
return _assetCount;
}
@end