mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 23:33:08 +01:00
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|