Пример #1
0
 private static void RemoveDMSink(AccountInfo info, long tweetId)
 {
     var tweet = ApiHelper.ExecApi(() => info.DestroyDirectMessage(tweetId.ToString()));
     if (tweet != null)
     {
         if (tweet.Id != tweetId)
         {
             NotifyStorage.Notify("削除には成功しましたが、ダイレクトメッセージIDが一致しません。(" + tweetId.ToString() + " -> " + tweet.Id.ToString() + ")");
         }
         else
         {
             TweetStorage.Remove(tweetId);
             NotifyStorage.Notify("削除しました:" + tweet.ToString());
         }
     }
     else
     {
         NotifyStorage.Notify("ダイレクトメッセージを削除できませんでした(@" + info.ScreenName + ")");
     }
 }