Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     new Thread(() =>
     {
         try
         {
             log("Unliking all...");
             foreach (var item in listBox1.Items)
             {
                 var sc = new SoundCloud((string)item);
                 if (File.Exists(".\\liked\\" + sc.GetOAuth() + ".txt"))
                 {
                     foreach (var line in File.ReadAllLines(".\\liked\\" + sc.GetOAuth() + ".txt"))
                     {
                         if (line.Length < 3)
                         {
                             continue;
                         }
                         sc.UnLikeTrack(line);
                         log("Unliked " + line);
                     }
                     File.Delete(".\\liked\\" + sc.GetOAuth() + ".txt");
                 }
             }
         }
         catch
         {
         }
         log("Finished unliking");
     }).Start();
 }
Пример #2
0
 public FollowSession(SoundCloud sc) : base(sc, "user")
 {
 }
Пример #3
0
 public LikeSession(SoundCloud sc) : base(sc, "track")
 {
 }
Пример #4
0
 public Session(SoundCloud sc, string accepted)
 {
     this.sc       = sc;
     this.accepted = accepted;
     Count         = 0;
 }
Пример #5
0
 public CommentSession(SoundCloud sc) : base(sc, "track")
 {
 }