Class for stroring connection settings
コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Constructor for RovioWebClient
 /// </summary>
 /// <param name="settings"></param>
 public RovioWebClient(RovioSettings settings)
 {
     this.settings = settings;
 }
コード例 #3
0
 public RovioWebClient(RovioSettings settings)
 {
     this.wc             = new WebClient();
     this.wc.Credentials = settings.RovioCredentials;
     this.wc.BaseAddress = settings.RovioAddress;
 }
コード例 #4
0
 /// <summary>
 /// Constructor for RovioController object
 /// </summary>
 /// <param name="settings">RovioSettings object</param>
 public RovioController(RovioSettings settings)
 {
     this.rwc = new RovioWebClient(settings);
 }