// For retrieving my orders public MarketOrder(MyOrder isxEveOrderObject) : base(isxEveOrderObject) { Type = isxEveOrderObject.Name; Station = isxEveOrderObject.Station; SolarSystem = isxEveOrderObject.SolarSystem; Region = isxEveOrderObject.Region; Duration = isxEveOrderObject.Duration; DateWhenLastModified = isxEveOrderObject.DateWhenIssued; TimeWhenLastModified = isxEveOrderObject.TimeWhenIssued; TimeStampWhenLastModified = isxEveOrderObject.TimeStampWhenIssued; IsContraband = isxEveOrderObject.IsContraband; }
public MyMarketOrder(MyOrder isxEveOrderObject, List<MyMarketOrder> orderList, Config config) : base(isxEveOrderObject) { _orderList = orderList; _config = config; EvaluateCoolDownEndTime = System.DateTime.UtcNow; DateTime lastModifiedTime = new System.DateTime(1601, 1, 1).AddSeconds(isxEveOrderObject.TimeStampWhenIssued / 10000000); ModifyCoolDownEndTime = lastModifiedTime.AddMilliseconds(_config.RandomizedOrderModifyIntervalInMilliSec); Status = OrderStatus.Unknown; ID = isxEveOrderObject.ID; _skip = false; foreach (long id in _config.OrderIDsToSkip) { // When we load orders for first time, we need to retrive the saved "Skip" mark from config file. if (ID == id) { _skip = true; } } }
// For retrieving my orders public MarketOrderBase(MyOrder isxEveOrderObject) { ID = isxEveOrderObject.ID; TypeID = isxEveOrderObject.TypeID; OrderType = isxEveOrderObject.IsBuyOrder ? OrderType.Buy : OrderType.Sell; QuantityRemaining = isxEveOrderObject.QuantityRemaining; InitialQuantity = isxEveOrderObject.InitialQuantity; Price = isxEveOrderObject.Price; StationID = isxEveOrderObject.StationID; SolarSystemID = isxEveOrderObject.SolarSystemID; RegionID = isxEveOrderObject.RegionID; MinQuantityToBuy = isxEveOrderObject.MinQuantityToBuy; Range = isxEveOrderObject.Range; }