public GetComponentInternalStateResponseDto GetComponentInternalState(GetComponentInternalStateRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.GetComponentInternalStateRequest>(request);

            coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data);

            var coreResponse = Dispatcher.GetComponentInternalState(coreRequest);

            var response = GetApiResponse <GetComponentInternalStateResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
Example #2
0
        public GetComponentInternalStateResponse GetComponentInternalState(Guid componentId, bool recalc)
        {
            var dataDto = new GetComponentInternalStateRequestDtoData()
            {
                ComponentId = componentId,
                Recalc      = recalc
            };
            var request = new GetComponentInternalStateRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.GetComponentInternalState(request);
            var response    = CreateResponse <GetComponentInternalStateResponse>(responseDto);

            response.InternalData = DataConverter.GetStatusDataInfo(responseDto.Data);
            return(response);
        }
 public GetComponentInternalStateResponseDto GetComponentInternalState(GetComponentInternalStateRequestDto request)
 {
     return(ExecuteAction <GetComponentInternalStateResponseDto>("GetComponentInternalState", request));
 }