IF.Lastfm/IF.Lastfm.Core/Api/Scrobble.cs
Rikki Tooley 600814d09f Scrobble method!
Also making all ParseJToken methods internal, but using
[assembly:InternalsVisibleTo("IF.Lastfm.Core.Tests")] to make them
testable
2013-06-14 16:19:26 +01:00

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;
}
}
}