/// <summary>
 /// Create a new DarkSkyWeatherInteraction object
 /// </summary>
 /// <param name="_selfThrottlingMethod">The method to use to limit calls to the API to below the given threshold. Options: {None, InMemoryCallRecollection, AzureTableStorageCallRecollection}</param>
 /// <param name="maxNumberOfCallsPerMinute">Maximum number of calls to make to the API per minute</param>
 public DarkSkyWeatherInteraction(
     SelfThrottlingMethod _selfThrottlingMethod = SelfThrottlingMethod.None,
     int maxNumberOfCallsPerMinute = -1,
     int maxNumberOfCallsPerDay    = -1)
 {
     this.apiInteractionHelper = new ApiInteractionHelper(_selfThrottlingMethod, maxNumberOfCallsPerMinute, maxNumberOfCallsPerDay);
 }
Пример #2
0
 /// <summary>
 /// Create a new EmissionsApiInteraction object
 /// </summary>
 /// <param name="_selfThrottlingMethod">The method to use to limit calls to the API to below the given threshold. Options: {None, InMemoryCallRecollection, AzureTableStorageCallRecollection}</param>
 /// <param name="maxNumberOfCallsPerMinute">Maximum number of calls to make to the API per minute</param>
 public EmissionsApiInteraction(string _selfThrottlingMethod, int maxNumberOfCallsPerMinute = -1)
 {
     this.apiInteractionHelper = new ApiInteractionHelper(ApiInteractionHelper.parseSelfThrottlingMethodstring(_selfThrottlingMethod), maxNumberOfCallsPerMinute);
 }
 /// <summary>
 /// Create a new DarkSkyWeatherInteraction object
 /// </summary>
 /// <param name="_selfThrottlingMethod">The method to use to limit calls to the API to below the given threshold. Options: {None, InMemoryCallRecollection, AzureTableStorageCallRecollection}</param>
 /// <param name="maxNumberOfCallsPerMinute">Maximum number of calls to make to the API per minute</param>
 public DarkSkyWeatherInteraction(string _selfThrottlingMethod, int maxNumberOfCallsPerMinute = -1, int maxNumberOfCallsPerDay = -1)
 {
     this.apiInteractionHelper = new ApiInteractionHelper(ApiInteractionHelper.parseSelfThrottlingMethodstring(_selfThrottlingMethod), maxNumberOfCallsPerMinute, maxNumberOfCallsPerDay);
 }
 /// <summary>
 /// Create a new WundergroundWeatherInteraction object
 /// </summary>
 /// <param name="_selfThrottlingMethod">The method to use to limit calls to the API to below the given threshold. Options: {None, InMemoryCallRecollection, AzureTableStorageCallRecollection}</param>
 /// <param name="maxNumberOfCallsPerMinute">Maximum number of calls to make to the API per minute</param>
 public WundergroundWeatherInteraction(
     SelfThrottlingMethod _selfThrottlingMethod = SelfThrottlingMethod.None,
     int maxNumberOfCallsPerMinute = -1)
 {
     this.apiInteractionHelper = new ApiInteractionHelper(_selfThrottlingMethod, maxNumberOfCallsPerMinute);
 }