2015-10-01 18:19:52 +02:00
|
|
|
#import "TGMusicPlayerPlaylist.h"
|
|
|
|
|
|
|
|
@implementation TGMusicPlayerPlaylist
|
|
|
|
|
2016-02-25 01:03:51 +01:00
|
|
|
- (instancetype)initWithVoice:(bool)voice items:(NSArray *)items itemKeyAliases:(NSDictionary *)itemKeyAliases markItemAsViewed:(void (^)(TGMusicPlayerItem *item))markItemAsViewed
|
2015-10-01 18:19:52 +02:00
|
|
|
{
|
|
|
|
self = [super init];
|
|
|
|
if (self != nil)
|
|
|
|
{
|
2016-02-25 01:03:51 +01:00
|
|
|
_voice = voice;
|
2015-10-01 18:19:52 +02:00
|
|
|
_items = items;
|
|
|
|
_itemKeyAliases = itemKeyAliases;
|
2016-02-25 01:03:51 +01:00
|
|
|
_markItemAsViewed = [markItemAsViewed copy];
|
2015-10-01 18:19:52 +02:00
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|