/// <summary> /// Returns a dictionary of key/value pairs for which request options /// have been added to the existing set of filters. /// </summary> /// <param name="filter"> /// A <see cref="IEntityFilter"/> instance; an object which can be represented as a set of key/value pairs. /// </param> /// <param name="options"> /// A <see cref="RequestOptions"/> object for controlling the behavior of API calls. /// </param> /// <returns>The dictionary of concatenated key-value pairs.</returns> internal static Dictionary <string, string> GetFiltersWithOptions( this IEntityFilter filter, RequestOptions options) { options.ThrowIfNull(); Dictionary <string, string> filters = filter.GetFilters(); Dictionary <string, string> optionsFilters = options.GetFilters(); return(filters.Concat(optionsFilters).ToDictionary(s => s.Key, s => s.Value)); }
/// <summary> /// Initializes a new instance of the <see cref="ReportRequest"/> class. /// </summary> /// <param name="filter"> /// An instance of an <see cref="IEntityFilter"/>, for tuning the report results. /// </param> internal ReportRequest(IEntityFilter filter) { Data = filter?.GetFilters(); }