public bool Buy(int StationId, int TypeId, double Price, int quantity, DirectOrderRange range, int minVolume, int duration) //, bool useCorp) { //if (!HasSupportInstances()) //{ // Log("DirectEve: Error: This method requires a support instance."); // return false; //} var pyRange = GetRange(range); //def BuyStuff(self, stationID, typeID, price, quantity, orderRange = None, minVolume = 1, duration = 0, useCorp = False): return(ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange, minVolume, duration)); //, useCorp); }
internal PyObject GetRange(DirectOrderRange range) { switch (range) { case DirectOrderRange.SolarSystem: return(Const.RangeSolarSystem); case DirectOrderRange.Constellation: return(Const.RangeConstellation); case DirectOrderRange.Region: return(Const.RangeRegion); default: return(Const.RangeStation); } }
//, bool useCorp) public bool Buy(int StationId, int TypeId, double Price, int quantity, DirectOrderRange range, int minVolume, int duration) { //if (!HasSupportInstances()) //{ // Log("DirectEve: Error: This method requires a support instance."); // return false; //} var pyRange = GetRange(range); //def BuyStuff(self, stationID, typeID, price, quantity, orderRange = None, minVolume = 1, duration = 0, useCorp = False): return ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange, minVolume, duration); //, useCorp); }
internal PyObject GetRange(DirectOrderRange range) { switch (range) { case DirectOrderRange.SolarSystem: return Const.RangeSolarSystem; case DirectOrderRange.Constellation: return Const.RangeConstellation; case DirectOrderRange.Region: return Const.RangeRegion; default: return Const.RangeStation; } }
public bool Buy(int quantity, DirectOrderRange range) { var pyRange = DirectEve.GetRange(range); return DirectEve.ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange); }
public bool Buy(int quantity, DirectOrderRange range) { var pyRange = DirectEve.GetRange(range); return(DirectEve.ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange)); }