示例#1
0
 public static void StartSubreddit(string sub, string order, int count)
 {
     if (order.ToLower().Equals("top") || order.ToLower().Equals("hot") || order.ToLower().Equals("new"))
     {
         try
         {
             RedditConsumer.AddTask(new RedditTask(sub, order, count));
             RedditConsumer.Consume();
         }
         catch (Exception ex) { }
     }
 }
示例#2
0
 public static void StartMacro(int macro)
 {
     if (macro == 1)
     {
         RedditConsumer.Macro1();
     }
     if (macro == 0)
     {
         RedditConsumer.Macro0();
     }
     if (macro == 23)
     {
         RedditConsumer.Macro23();
     }
 }