コード例 #1
0
        public BasicResponse <List <StationUpdateItem> > GetAllStationItems(GetAllStationItemsRequest getAllStationItemsRequest)
        {
            var result      = StationUpdateCache.GetAllStationItems();
            var stationItem = new BasicResponse <List <StationUpdateItem> >();

            stationItem.Data = result;
            return(stationItem);
        }
コード例 #2
0
        public BasicResponse <StationUpdateItem> GetStationItem(GetStationItemRequest getStationItemRequest)
        {
            var result      = StationUpdateCache.GetStationItem(getStationItemRequest.fzh);
            var stationItem = new BasicResponse <StationUpdateItem>();

            stationItem.Data = result;
            return(stationItem);
        }
コード例 #3
0
        public BasicResponse UpdateStationItemForUser(UpdateOrderForUserRequest updateOrderRequest)
        {
            BasicResponse response = new BasicResponse();
            string        errorMsg = "";

            StationUpdateCache.UpdateStationItemForUser(updateOrderRequest.order, updateOrderRequest.fzh, ref errorMsg);
            response.Message = errorMsg;
            return(response);
        }
コード例 #4
0
        public BasicResponse LoadUpdateBuffer(LoadUpdateBufferRequest loadUpdateBufferRequest)
        {
            BasicResponse Result = new BasicResponse();

            try
            {
                StationUpdateCache.LoadUpdateBuffer(loadUpdateBufferRequest.updateBufferItems
                                                    , loadUpdateBufferRequest.updatetTypeid
                                                    , loadUpdateBufferRequest.updateHardVersion
                                                    , loadUpdateBufferRequest.updateFileVersion
                                                    , loadUpdateBufferRequest.updateMaxVersion
                                                    , loadUpdateBufferRequest.updateMinVersion
                                                    , loadUpdateBufferRequest.updateCount
                                                    , loadUpdateBufferRequest.crcValue);
            }
            catch (Exception ex)
            {
                Result.Code    = 1;
                Result.Message = ex.Message;
            }
            return(Result);
        }