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

            var response = GetApiResponse <GetServerTimeResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
        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);
        }