示例#1
0
 /// <summary>
 /// Creates the Rachio Smart Sprinkler Controller communications service
 /// </summary>
 /// <param name="options">Options for the RachioService</param>
 /// <returns>The RachioService</returns>
 /// <code>
 ///     var service = RachioService.Create(new ServiceOptions { AccessToken = "{Your Access Token}" });
 /// </code>
 public static RachioService Create(ServiceOptions options)
 {
     return(new RachioService(options));
 }
示例#2
0
 public RachioService(ServiceOptions serviceOptions)
 {
     _serviceProvider = new RachioServiceProvider(serviceOptions);
 }