mirror of
https://github.com/sphildreth/roadie
synced 2024-11-23 12:43:13 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Roadie.Library.Models.Releases;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Roadie.Library.Models
|
|
{
|
|
[Serializable]
|
|
public class LabelList : EntityInfoModelBase
|
|
{
|
|
public DataToken Label { get; set; }
|
|
public Image Thumbnail { get; set; }
|
|
public int? ArtistCount { get; set; }
|
|
public int? ReleaseCount { get; set; }
|
|
public int? TrackCount { get; set; }
|
|
|
|
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
|
|
};
|
|
}
|
|
}
|
|
}
|