/// <summary> /// Constructor to RovioController object /// </summary> /// <param name="username">Username to access Rovio</param> /// <param name="password">Password to access Rovio</param> /// <param name="address">Address to acces Rovio</param> public RovioController(string username, string password, string address) { this.rovioSettings = new RovioSettings(username, password, address); this.rwc = new RovioWebClient(this.rovioSettings); }
/// <summary> /// Constructor for RovioWebClient /// </summary> /// <param name="settings"></param> public RovioWebClient(RovioSettings settings) { this.settings = settings; }
public RovioWebClient(RovioSettings settings) { this.wc = new WebClient(); this.wc.Credentials = settings.RovioCredentials; this.wc.BaseAddress = settings.RovioAddress; }
/// <summary> /// Constructor for RovioController object /// </summary> /// <param name="settings">RovioSettings object</param> public RovioController(RovioSettings settings) { this.rwc = new RovioWebClient(settings); }