//
//  MKRM3UListModel.h
//  MKRAVPlayer
//
//  Created by yyqxiaoyin on 2019/4/18.
//

#import <Foundation/Foundation.h>
#import "MKRRadioResorce.h"

@interface MKRM3UListModel : NSObject

+ (instancetype)tempChannelM3UModelWithSongs:(NSArray <id<MKRRadioResorce>> *)songs
                                  startIndex:(NSInteger)startIndex;

@property (nonatomic, strong) NSMutableArray *secondsList;
@property (nonatomic, strong) NSMutableArray *durationList;
@property (nonatomic, strong) NSMutableArray *artistList;
@property (nonatomic, strong) NSMutableArray *albumList;
@property (nonatomic, strong) NSMutableArray *albumArtUriList;
@property (nonatomic, strong) NSMutableArray *titleList;
@property (nonatomic, strong) NSMutableArray *urlList;
@property (nonatomic, strong) NSMutableArray *cueList;
@property (nonatomic, strong) NSMutableArray *protocolInfoList;
@property (nonatomic, strong) NSMutableArray *upnpclassList;
@property (nonatomic, strong) NSMutableArray *channelNumList;
@property (nonatomic, strong) NSMutableArray *songOrderList;
@property (nonatomic, strong) NSMutableArray *startTimeList;
@property (nonatomic, strong) NSMutableArray *endTimeList;
@property (nonatomic, strong) NSMutableArray *vipCanPlay;
@property (nonatomic, strong) NSMutableArray *songIDList;
@property (nonatomic, strong) NSMutableArray *songFromList;
@property (nonatomic, strong) NSMutableArray *songAlbumIDList;
//后台给回来的每个频道对应的唯一ID
@property (nonatomic, strong) NSString *channelID;
//频道号
@property (nonatomic, strong) NSString *channelNO;
@property (nonatomic, strong) NSString *playModeString;
@property (nonatomic, strong) NSString *userID;
@property (nonatomic, strong) NSString *timeString;
@property (nonatomic, strong) NSString *channelPure;
@property (nonatomic, strong) NSString *channelAlbumID;
@property (nonatomic, strong) NSString *channelInfoString;
@property (nonatomic, assign) int startIndex;
@property (nonatomic, assign) int endIndex;
@property (nonatomic, assign) int m3uSize;


/// 映射后台的资源类型到app的资源类型
+ (MKRSourceType)convertSorceTypeWithAudioType:(NSInteger)type;


/// 映射app的资源类型到后台的资源类型
+ (NSInteger)convertAudioTypeWithSorceType:(MKRSourceType)sourceType;

@end

