public ScrobbleManager(Connection connection, string cacheDir) { Connection = connection; CacheDir = cacheDir; init(); }
public ScrobbleManager(Connection connection) { Connection = connection; // Set the default value for the CacheDir and cacheFileName CacheDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/.lastfm-sharp/" + Connection.ClientID + "/"; init(); }
public bool Login(string username, string password) { this.username = username; this.password = password; Session.Authenticate(this.username, Lastfm.Utilities.MD5(this.password)); if (Session.Authenticated) { connection = new Lastfm.Scrobbling.Connection("mpm", Assembly.GetEntryAssembly().GetName().Version.ToString(), this.username, Session); manager = new Lastfm.Scrobbling.ScrobbleManager(connection); IsLoged = true; return true; } return false; }
public bool Login(string username, string password) { this.username = username; this.password = password; Session.Authenticate(this.username, Lastfm.Utilities.MD5(this.password)); if (Session.Authenticated) { connection = new Lastfm.Scrobbling.Connection("mpm", Assembly.GetEntryAssembly().GetName().Version.ToString(), this.username, Session); manager = new Lastfm.Scrobbling.ScrobbleManager(connection); IsLoged = true; return(true); } return(false); }