public GetServerTimeResponseDto GetServerTime() { var coreResponse = Dispatcher.GetServerTime(); var response = GetApiResponse <GetServerTimeResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
protected TRequest GetCoreRequest <TRequest>(Request request) where TRequest : Zidium.Core.Api.Request, new() { var coreRequest = new TRequest(); if (request != null) { coreRequest.Token = AdapterDataConverter.ConvertToCore(request.Token); } SetRequestContextData(coreRequest); return(coreRequest); }
public GetEchoResponseDto GetEcho(GetEchoRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetEchoRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.GetEcho(coreRequest); var response = GetApiResponse <GetEchoResponseDto>(coreResponse); response.Data = coreResponse.InternalData; return(response); }
public SendLogsResponseDto SendLogs(SendLogsRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.SendLogsRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.SendLogs(coreRequest); var response = GetApiResponse <SendLogsResponseDto>(coreResponse); response.Data = coreResponse.InternalData; return(response); }
public GetOrCreateUnitTestTypeResponseDto GetOrCreateUnitTestType(GetOrCreateUnitTestTypeRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetOrCreateUnitTestTypeRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.GetOrCreateUnitTestType(coreRequest); var response = GetApiResponse <GetOrCreateUnitTestTypeResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
public JoinEventsResponseDto JoinEvents(JoinEventsRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.JoinEventsRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.JoinEvents(coreRequest); var response = GetApiResponse <JoinEventsResponseDto>(coreResponse); response.Data = 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); }
public DeleteComponentResponseDto DeleteComponent(DeleteComponentRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.DeleteComponentRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.DeleteComponent(coreRequest); var response = GetApiResponse <DeleteComponentResponseDto>(coreResponse); response.Data = coreResponse.InternalData; return(response); }
public GetComponentBySystemNameResponseDto GetComponentBySystemName(GetComponentBySystemNameRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetComponentBySystemNameRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.GetComponentBySystemName(coreRequest); var response = GetApiResponse <GetComponentBySystemNameResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
public GetRootControlDataResponseDto GetRootControlData(GetRootControlDataRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetRootControlDataRequest>(request); coreRequest.Data = request.Data; var coreResponse = Dispatcher.GetRootControlData(coreRequest); var response = GetApiResponse <GetRootControlDataResponseDto>(coreResponse); response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData); return(response); }
public GetChangedWebLogConfigsResponseDto GetChangedWebLogConfigs(GetChangedWebLogConfigsRequestDto request) { var coreRequest = GetCoreRequest <Zidium.Core.Api.GetChangedWebLogConfigsRequest>(request); coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data); var coreResponse = Dispatcher.GetChangedWebLogConfigs(coreRequest); var response = GetApiResponse <GetChangedWebLogConfigsResponseDto>(coreResponse); var coreResponseData = coreResponse.InternalData; response.Data = ConvertList(coreResponseData, AdapterDataConverter.ConvertToApi); return(response); }