/// <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); }
/// <summary> /// Create a new ApiInteractionHelper 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 ApiInteractionHelper(SelfThrottlingMethod _selfThrottlingMethod = SelfThrottlingMethod.None, int maxNumberOfCallsPerMinute = -1, int maxNumberOfCallsPerDay = -1) { this._selfThrottlingMethod = _selfThrottlingMethod; this.maxNumberOfCallsPerMinute = maxNumberOfCallsPerMinute; this.maxNumberOfCallsPerDay = 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); }