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);
        }
Esempio n. 2
0
        public SendLogsResponse SendLogs(SendLogData[] data)
        {
            var dataDto = DataConverter.GetSendLogDtoList(data);
            var request = new SendLogsRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.SendLogs(request);
            var response    = CreateResponse <SendLogsResponse>(responseDto);

            response.InternalData = responseDto.Data;
            return(response);
        }
Esempio n. 3
0
 public SendLogsResponseDto SendLogs(SendLogsRequestDto request)
 {
     return(ExecuteAction <SendLogsResponseDto>("SendLogs", request));
 }