예제 #1
0
        /// <summary>
        ///     Returns aggregate statistics for the items specified.
        /// </summary>
        /// <param name="options">Valid options; Items, HourLimit, MinQuantity, Regions, Systems</param>
        /// <returns></returns>
        public Task <MarketStatResponse> GetMarketStatAsync(Element43Options options)
        {
            Contract.Requires(options != null, "Options cannot be null");
            Contract.Requires(options.Items.Count != 0, "You need to specify atleast one type.");
            const string relUri           = "/market/api/marketstat";
            string       queryString      = options.GetRegionQuery("regionlimit") + options.GetItemQuery("typeid");
            Task <MarketStatResponse> res = requestAsync <MarketStatResponse>(relUri, queryString);

            return(res);
        }
예제 #2
0
 /// <summary>
 ///     Returns aggregate statistics for the items specified.
 /// </summary>
 /// <param name="options">Valid options; Items, HourLimit, MinQuantity, Regions, Systems</param>
 /// <returns></returns>
 public MarketStatResponse GetMarketStat(Element43Options options)
 {
     Contract.Requires(options != null);
     return(GetMarketStatAsync(options).Result);
 }
예제 #3
0
 public Element43Legacy_Tests() {
     _api = new Element43Legacy();
     _validOptions = new Element43Options();
     _validOptions.Items.Add(TypeId);
     _validOptions.Region = RegionId;
 }