コード例 #1
0
        public GetServerTimeResponseDto GetServerTime()
        {
            var coreResponse = Dispatcher.GetServerTime();

            var response = GetApiResponse <GetServerTimeResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
コード例 #2
0
        public SendMetricResponseDto SendMetric(SendMetricRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.SendMetricRequest>(request);

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

            var coreResponse = Dispatcher.SendMetric(coreRequest);

            var response = GetApiResponse <SendMetricResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
コード例 #3
0
        public GetLogConfigResponseDto GetLogConfig(GetLogConfigRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.GetLogConfigRequest>(request);

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

            var coreResponse = Dispatcher.GetLogConfig(coreRequest);

            var response = GetApiResponse <GetLogConfigResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
コード例 #4
0
        public UpdateComponentTypeResponseDto UpdateComponentType(UpdateComponentTypeRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.UpdateComponentTypeRequest>(request);

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

            var coreResponse = Dispatcher.UpdateComponentType(coreRequest);

            var response = GetApiResponse <UpdateComponentTypeResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }