mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
600814d09f
Also making all ParseJToken methods internal, but using [assembly:InternalsVisibleTo("IF.Lastfm.Core.Tests")] to make them testable
28 lines
865 B
C#
28 lines
865 B
C#
using System;
|
|
|
|
namespace IF.Lastfm.Core.Api
|
|
{
|
|
public class Scrobble
|
|
{
|
|
#region Properties
|
|
|
|
public string Artist { get; private set; }
|
|
public string AlbumArtist { get; private set; }
|
|
public string Album { get; private set; }
|
|
public string Track { get; private set; }
|
|
public DateTime TimePlayed { get; private set; }
|
|
public bool ChosenByUser { get; private set; }
|
|
|
|
#endregion
|
|
|
|
public Scrobble(string artist, string album, string track, DateTime timeplayed, string albumartist = "", bool chosenByUser = true)
|
|
{
|
|
Artist = artist;
|
|
Album = album;
|
|
Track = track;
|
|
TimePlayed = timeplayed;
|
|
AlbumArtist = string.IsNullOrWhiteSpace(albumartist) ? artist : albumartist;
|
|
ChosenByUser = chosenByUser;
|
|
}
|
|
}
|
|
} |