public virtual void Initialize(Account.Account account, WebClient refClient) { this.Account = account; this.RefClient = refClient; random = new Random(System.Environment.TickCount); LastSendRequestTimeStamp = DateTime.Now; }
public Bot(Account.Account account) { this.Account = account; this.CurrentThread = new Thread(new ThreadStart(PerformAction)); this.Client = new WebClient(); Client.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"); Client.Headers.Add(HttpRequestHeader.AcceptLanguage, "de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4"); Client.Headers.Add(HttpRequestHeader.AcceptCharset, "ISO-8859-1,utf-8;q=0.7,*;q=0.3"); Menus = new List <IMenuArea>(); random = new Random(System.Environment.TickCount); }