roadie/RoadieLibrary/Models/Statistics/CollectionStatistics.cs

32 lines
901 B
C#
Raw Normal View History

using Roadie.Library.Utility;
using System;
2018-11-05 20:41:51 -06:00
namespace Roadie.Library.Models.Statistics
{
[Serializable]
public class CollectionStatistics
{
public string FileSize { get; set; }
2018-11-06 15:55:31 -06:00
public int? MissingTrackCount { get; set; }
2018-11-05 20:41:51 -06:00
public int? ReleaseCount { get; set; }
2018-11-06 15:55:31 -06:00
public int? ReleaseMediaCount { get; set; }
2018-11-05 20:41:51 -06:00
public string ReleaseTrackTime { get; set; }
public int? TrackCount { get; set; }
2018-11-06 15:55:31 -06: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-05 20:41:51 -06:00
}
}