mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
41 lines
No EOL
1.2 KiB
C#
41 lines
No EOL
1.2 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 string PlayedDate
|
|
{
|
|
get
|
|
{
|
|
return this.PlayedDateDateTime.HasValue ? this.PlayedDateDateTime.Value.ToString("s") : null;
|
|
}
|
|
}
|
|
|
|
[JsonIgnore]
|
|
public DateTime? PlayedDateDateTime { get; set; }
|
|
|
|
public int? Rating { get; set; }
|
|
public DataToken Release { get; set; }
|
|
public string ReleasePlayUrl { get; set; }
|
|
public Image ReleaseThumbnail { get; set; }
|
|
public DataToken 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 [{ this.User }], Artist [{ this.Artist }], Release [{ this.Release }], Track [{ this.Track}]";
|
|
}
|
|
}
|
|
} |