Exemplo n.º 1
0
		public ScrobbleManager(Connection connection, string cacheDir)
		{
			Connection = connection;
			
			CacheDir = cacheDir;
			
			init();
		}
Exemplo n.º 2
0
		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;
 }
Exemplo n.º 4
0
 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);
 }