Beispiel #1
0
        public List <Workplace> GetWorkplaceItems(bool justVault)
        {
            int depotId = _workerCache[GetCurrentUserWorkerIdAsync().Result].DepotId;
            var lst     = _workplaceCache.GetList();

            if (justVault)
            {
                return(lst.FindAll(x => x.DepotId == depotId && x.Name.Contains("金库")));
            }
            else
            {
                return(lst.FindAll(x => x.DepotId == depotId));
            }
        }
Beispiel #2
0
        public List <Workplace> GetDoors(int workerId)
        {
            var depotId = _workerCache[workerId].DepotId;

            return(_workplaceCache.GetList().FindAll(x => x.DepotId == depotId && !string.IsNullOrWhiteSpace(x.DoorIp)).ToList());
        }