2019-08-03 22:59:20 +00:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
2018-11-06 03:26:46 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Models
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
2019-11-24 21:58:38 +00:00
|
|
|
|
public sealed class LabelList : EntityInfoModelBase
|
2018-11-06 03:26:46 +00:00
|
|
|
|
{
|
|
|
|
|
public int? ArtistCount { get; set; }
|
2019-07-03 16:21:29 +00:00
|
|
|
|
public DataToken Label { get; set; }
|
2018-11-06 03:26:46 +00:00
|
|
|
|
public int? ReleaseCount { get; set; }
|
2019-07-03 16:21:29 +00:00
|
|
|
|
public Image Thumbnail { get; set; }
|
2018-11-06 03:26:46 +00:00
|
|
|
|
public int? TrackCount { get; set; }
|
2018-12-11 23:09:52 +00:00
|
|
|
|
|
|
|
|
|
public static LabelList FromDataLabel(Data.Label label, Image labelThumbnail)
|
|
|
|
|
{
|
|
|
|
|
return new LabelList
|
|
|
|
|
{
|
|
|
|
|
Id = label.RoadieId,
|
|
|
|
|
Label = new DataToken
|
|
|
|
|
{
|
|
|
|
|
Text = label.Name,
|
|
|
|
|
Value = label.RoadieId.ToString()
|
|
|
|
|
},
|
|
|
|
|
SortName = label.SortName,
|
|
|
|
|
CreatedDate = label.CreatedDate,
|
|
|
|
|
LastUpdated = label.LastUpdated,
|
|
|
|
|
ArtistCount = label.ArtistCount,
|
|
|
|
|
ReleaseCount = label.ReleaseCount,
|
|
|
|
|
TrackCount = label.TrackCount,
|
|
|
|
|
Thumbnail = labelThumbnail
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-11-06 03:26:46 +00:00
|
|
|
|
}
|
2019-07-03 16:21:29 +00:00
|
|
|
|
}
|