roadie/Roadie.Api.Library/Models/Statistics/CollectionStatistics.cs

33 lines
947 B
C#
Raw Normal View History

using Roadie.Library.Utility;
using System;
2018-11-06 02:41:51 +00:00
namespace Roadie.Library.Models.Statistics
{
[Serializable]
public class CollectionStatistics
{
2018-12-11 14:08:34 +00:00
public int? ArtistCount { get; set; }
2018-11-06 02:41:51 +00:00
public string FileSize { get; set; }
2018-11-06 21:55:31 +00:00
public int? MissingTrackCount { get; set; }
2018-11-06 02:41:51 +00:00
public int? ReleaseCount { get; set; }
2018-11-06 21:55:31 +00:00
public int? ReleaseMediaCount { get; set; }
2018-11-06 02:41:51 +00:00
public string ReleaseTrackTime { get; set; }
public int? TrackCount { get; set; }
2018-11-06 21:55:31 +00:00
public int? TrackPlayedCount { get; set; }
public string TrackTime { get; set; }
public decimal? Duration { get; set; }
public string DurationTime
{
get
{
if (!this.Duration.HasValue)
{
return "--:--";
}
return new TimeInfo(this.Duration.Value).ToFullFormattedString();
}
}
2018-11-06 02:41:51 +00:00
}
}