//
// © 2018-2020 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.
//

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

NS_ASSUME_NONNULL_BEGIN

/**
 @brief A representation of a playlist item.
 @discussion There is a public initializer for IoTMediaItem.
 */
@interface IoTMediaItem : NSObject

/**
 @brief Is the media item "empty"
 @discussion A media item is empty if it doesn't refer to a real media item. It's a placeholder item.
*/
@property (nonatomic, readonly) BOOL isEmpty;

/**
 @brief The URL at which the audio data can be found.
 */
@property (nonatomic, copy) NSString * streamURL;

/**
 @brief The URL at which the track artwork can be found.
 */
@property (nonatomic, copy) NSString * thumbnailURL;

/**
 @brief The track title.
 */
@property (nonatomic, copy) NSString * title;

/**
 @brief The track artist.
 */
@property (nonatomic, copy) NSString * artist;

/**
 @brief The track album.
 */
@property (nonatomic, copy) NSString * album;

/**
 @brief The track genre.
 */
@property (nonatomic, copy) NSString * genre;

/**
 @brief The track country.
 */
@property (nonatomic, copy) NSString * country;

/**
 @brief The track duration in milliseconds.
 */
@property (nonatomic) int duration;

/**
 @brief User defined data.
 */
@property (nonatomic, copy) NSString * userData;

@end

NS_ASSUME_NONNULL_END
