コード例 #1
0
ファイル: ApiService.cs プロジェクト: crazyants/ZidiumServer
        public GetComponentTotalStateResponse GetComponentTotalState(Guid componentId, bool recalc)
        {
            var dataDto = new GetComponentTotalStateRequestDtoData()
            {
                ComponentId = componentId,
                Recalc      = recalc
            };
            var request = new GetComponentTotalStateRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.GetComponentTotalState(request);
            var response    = CreateResponse <GetComponentTotalStateResponse>(responseDto);

            response.InternalData = DataConverter.GetStatusDataInfo(responseDto.Data);
            return(response);
        }