Esempio n. 1
0
        /// <summary>
        ///     Returns all of the available market orders, including prices, stations, order IDs, volumes, etc.
        /// </summary>
        /// <param name="options">Valid options; Types, HourLimit, MinQuantity, Regions, Systems</param>
        /// <returns></returns>
        public QuicklookResponse GetQuicklook(EveCentralOptions options)
        {
            Contract.Requires(options != null, "Options cannot be null");
            Contract.Requires(options.Types.Count != 0, "You need to specify atleast one type.");
            const string relUri      = "/api/quicklook";
            string       queryString = options.TypeQuery("typeid") + options.HourQuery("sethours") +
                                       options.MinQuantityQuery("setminQ") +
                                       options.RegionQuery("regionlimit") + options.SystemQuery("usesystem");

            return(request <QuicklookResponse>(relUri, queryString));
        }
Esempio n. 2
0
        /// <summary>
        /// </summary>
        /// <param name="startSystem">SystemID or System name</param>
        /// <param name="endSystem">SystemID or System name</param>
        /// <param name="typeId">Type ID</param>
        /// <param name="options">Optional; Valid options: HourLimit, MinQuantity.</param>
        /// <returns></returns>
        public QuicklookResponse GetQuicklookPath(object startSystem, object endSystem, long typeId,
                                                  EveCentralOptions options)
        {
            Contract.Requires(options != null, "Options cannot be null.");
            Contract.Requires(startSystem != null, "Start system cannot be null.");
            Contract.Requires(endSystem != null, "End system cannot be null.");
            string relUri = "/api/quicklook/onpath";

            relUri += "/from/" + startSystem + "/to/" + endSystem + "/fortype/" + typeId;
            string queryString = "";

            queryString  = options.HourQuery("sethours");
            queryString += options.MinQuantityQuery("setminQ");
            return(request <QuicklookResponse>(relUri, queryString));
        }