roadie/Roadie.Api.Library/Models/Statistics/CollectionStatistics.cs
2018-12-26 13:39:13 -06:00

33 lines
No EOL
947 B
C#

using Roadie.Library.Utility;
using System;
namespace Roadie.Library.Models.Statistics
{
[Serializable]
public class CollectionStatistics
{
public int? ArtistCount { get; set; }
public string FileSize { get; set; }
public int? MissingTrackCount { get; set; }
public int? ReleaseCount { get; set; }
public int? ReleaseMediaCount { get; set; }
public string ReleaseTrackTime { get; set; }
public int? TrackCount { get; set; }
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();
}
}
}
}