예제 #1
0
파일: account.cs 프로젝트: lanicon/EVESharp
        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));
        }
예제 #2
0
        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")
                       ));
        }
예제 #3
0
        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")
                       ));
        }
예제 #4
0
        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")
                       ));
        }
예제 #5
0
        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")
                       ));
        }
예제 #6
0
        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));
        }
예제 #7
0
파일: billMgr.cs 프로젝트: lanicon/EVESharp
        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));
        }
예제 #8
0
        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));
        }
예제 #9
0
        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")
                       ));
        }
예제 #10
0
        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}")
                       ));
        }
예제 #11
0
        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")
                       ));
        }