コード例 #1
0
ファイル: Program.cs プロジェクト: Sketch-Laboratory/Hetzer
        static void Main(string[] arguments)
        {
            ITwitterCredentials credentials = Login.Instance.getCredentials();

            if (credentials == null)
            {
                credentials = newCredentials();
            }
            ;
            if (credentials == null)
            {
                return;
            }
            Auth.SetCredentials(credentials);

            //AchiveClean.clean();

            while (true)
            {
                Eraser.CreateEraser(15).StartErase();
                Thread.Sleep(1000 * 60 * 10);
            }

            //var application = new Application
            //{
            //    StartupUri = new Uri("MainWindow.xaml", UriKind.RelativeOrAbsolute)
            //};
            //application.Run();
        }
コード例 #2
0
 public static Eraser CreateEraser(int leftTweet)
 {
     if (Auth.Credentials != null)
     {
         var o = new Eraser();
         o.safe_index = leftTweet;
         return(o);
     }
     else
     {
         return(null);
     }
 }