public PyDataType GetEntryTypes(CallInformation call) { this.CacheStorage.Load( "account", "GetEntryTypes", "SELECT refTypeID AS entryTypeID, refTypeText AS entryTypeName, description FROM mktRefTypes", CacheStorage.CacheObjectType.Rowset ); PyDataType cacheHint = this.CacheStorage.GetHint("account", "GetEntryTypes"); return(CachedMethodCallResult.FromCacheHint(cacheHint)); }
public PyDataType GetNPCNPCStandings(CallInformation call) { this.CacheStorage.Load( "standing2", "GetNPCNPCStandings", "SELECT fromID, toID, standing FROM npcStandings", CacheStorage.CacheObjectType.Rowset ); return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("standing2", "GetNPCNPCStandings") )); }
public PyDataType GetAllShipCertificateRecommendations(CallInformation call) { this.CacheStorage.Load( "certificateMgr", "GetAllShipCertificateRecommendations", "SELECT shipTypeID, certificateID, recommendationLevel, recommendationID FROM crtRecommendations", CacheStorage.CacheObjectType.Rowset ); return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("certificateMgr", "GetAllShipCertificateRecommendations") )); }
public PyDataType GetCertificateClasses(CallInformation call) { this.CacheStorage.Load( "certificateMgr", "GetCertificateClasses", "SELECT classID, className, description, 0 AS dataID FROM crtClasses", CacheStorage.CacheObjectType.IndexRowset ); return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("certificateMgr", "GetCertificateClasses") )); }
public PyDataType GetWarFactions(CallInformation call) { this.CacheStorage.Load( "facWarMgr", "GetWarFactions", "SELECT factionID, militiaCorporationID FROM chrFactions WHERE militiaCorporationID IS NOT NULL", CacheStorage.CacheObjectType.IntIntDict ); return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("facWarMgr", "GetWarFactions") )); }
public PyDataType GetSolarSystemPseudoSecurities(CallInformation call) { this.CacheStorage.Load( "map", "GetSolarSystemPseudoSecurities", "SELECT solarSystemID, security FROM mapSolarSystems", CacheStorage.CacheObjectType.Rowset ); PyDataType cacheHint = this.CacheStorage.GetHint("map", "GetSolarSystemPseudoSecurities"); return(CachedMethodCallResult.FromCacheHint(cacheHint)); }
public PyDataType GetBillTypes(CallInformation call) { this.CacheStorage.Load( "billMgr", "GetBillTypes", "SELECT billTypeID, billTypeName, description FROM billTypes", CacheStorage.CacheObjectType.Rowset ); PyDataType cacheHint = this.CacheStorage.GetHint("billMgr", "GetBillTypes"); return(CachedMethodCallResult.FromCacheHint(cacheHint)); }
public PyDataType GetOrders(PyInteger typeID, CallInformation call) { call.Client.EnsureCharacterIsSelected(); // dirty little hack, but should do the trick this.CacheStorage.StoreCall( "marketProxy", "GetOrders_" + typeID, this.DB.GetOrders(call.Client.RegionID, call.Client.SolarSystemID2, typeID), DateTime.UtcNow.ToFileTimeUtc() ); PyDataType cacheHint = this.CacheStorage.GetHint("marketProxy", "GetOrders_" + typeID); return(CachedMethodCallResult.FromCacheHint(cacheHint)); }
public PyDataType GetMarketGroups(CallInformation call) { // check if the cache already exits if (this.CacheStorage.Exists("marketProxy", "GetMarketGroups") == false) { this.CacheStorage.StoreCall( "marketProxy", "GetMarketGroups", this.DB.GetMarketGroups(), DateTime.UtcNow.ToFileTimeUtc() ); } return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("marketProxy", "GetMarketGroups") )); }
public PyDataType GetStation(PyInteger stationID, CallInformation call) { // generate cache for this call, why is this being called for every item in the assets window // when a list is expanded?! if (this.CacheStorage.Exists("stationSvc", $"GetStation_{stationID}") == false) { this.CacheStorage.StoreCall( "stationSvc", $"GetStation_{stationID}", this.ItemFactory.Stations[stationID].GetStationInfo(), DateTime.UtcNow.ToFileTimeUtc() ); } return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("stationSvc", $"GetStation_{stationID}") )); }
public PyDataType GetFacWarSystems(CallInformation call) { /* * The data is an integer dict (indicating solar system) with these as entries: * ["occupierID"] = Faction ID - I guess faction ID that controls the system * ["factionID"] = Faction ID - I guess original faction ID that controled the system? */ if (this.CacheStorage.Exists("facWarMgr", "GetFacWarSystems") == false) { this.CacheStorage.StoreCall( "facWarMgr", "GetFacWarSystems", new PyDictionary(), DateTime.UtcNow.ToFileTimeUtc() ); } return(CachedMethodCallResult.FromCacheHint( this.CacheStorage.GetHint("facWarMgr", "GetFacWarSystems") )); }