public GetServerTimeResponseDto GetServerTime() { var coreResponse = Dispatcher.GetServerTime(); var response = GetApiResponse <GetServerTimeResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
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); }
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); }
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); }