roadie/Roadie.Api.Library/Models/PlayActivityList.cs
2019-07-03 11:21:29 -05:00

35 lines
No EOL
1.3 KiB
C#

using Newtonsoft.Json;
using Roadie.Library.Models.Users;
using System;
namespace Roadie.Library.Models
{
[Serializable]
public class PlayActivityList
{
public DataToken Artist { get; set; }
public Image ArtistThumbnail { get; set; }
public bool IsNowPlaying { get; set; }
public string PlayedDate => PlayedDateDateTime.HasValue ? PlayedDateDateTime.Value.ToString("s") : null;
[JsonIgnore] public DateTime? PlayedDateDateTime { get; set; }
public string PlayedDay => PlayedDateDateTime.HasValue ? PlayedDateDateTime.Value.ToString("MM/dd/yyyy") : null;
public int? Rating { get; set; }
public DataToken Release { get; set; }
public string ReleasePlayUrl { get; set; }
public Image ReleaseThumbnail { get; set; }
public TrackList Track { get; set; }
public DataToken TrackArtist { get; set; }
public string TrackPlayUrl { get; set; }
public DataToken User { get; set; }
public int? UserRating { get; set; }
public Image UserThumbnail { get; set; }
public UserTrack UserTrack { get; set; }
public override string ToString()
{
return $"User [{User}], Artist [{Artist}], Release [{Release}], Track [{Track}]";
}
}
}