mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
96c2853d51
This reverts commit 461719f826
.
28 lines
No EOL
834 B
C#
28 lines
No EOL
834 B
C#
using System;
|
|
|
|
namespace Roadie.Library.Scrobble
|
|
{
|
|
[Serializable]
|
|
public class ScrobbleInfo
|
|
{
|
|
public string ArtistName { get; set; }
|
|
public bool IsRandomizedScrobble { get; set; }
|
|
|
|
public string ReleaseTitle { get; set; }
|
|
public DateTime TimePlayed { get; set; }
|
|
public Guid TrackId { get; set; }
|
|
public string TrackNumber { get; set; }
|
|
public string TrackTitle { get; set; }
|
|
public TimeSpan TrackDuration { get; set; }
|
|
|
|
public TimeSpan ElapsedTimeOfTrackPlayed
|
|
{
|
|
get
|
|
{
|
|
return DateTime.UtcNow.Subtract(TimePlayed);
|
|
}
|
|
}
|
|
|
|
public override string ToString() => $"Artist: [{ ArtistName }], Release: [{ ReleaseTitle}], Track# [{ TrackNumber }], Track [{ TrackTitle }]";
|
|
}
|
|
} |