初始化

This commit is contained in:
2025-12-11 11:39:02 +08:00
commit 156d6ccb06
1708 changed files with 1162911 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using Aliyun.Api.LOG;
using Aliyun.Api.LOG.Response;
using Aliyun.Api.LOG.Utilities;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Aliyun.Api.LOG.Response
{
public class BatchGetLogsResponse : LogResponse
{
private String _nextCursor;
private int _logCount;
private int _rawSize;
private LogGroupList _logGroupList;
public BatchGetLogsResponse(IDictionary<String, String> headers, Stream body)
: base(headers)
{
headers.TryGetValue(LogConsts.NAME_HEADER_NEXT_CURSOR, out _nextCursor);
String tmpLogCount, tmpRawSize, tmpContentLength ;
if (headers.TryGetValue(LogConsts.NAME_HEADER_LOG_COUNT, out tmpLogCount))
{
int.TryParse(tmpLogCount, out _logCount);
}
if (headers.TryGetValue(LogConsts.NAME_HEADER_LOG_BODY_RAW_SIZE, out tmpRawSize))
{
int.TryParse(tmpRawSize, out _rawSize);
}
int contentLength = 0;
if (headers.TryGetValue("Content-Length", out tmpContentLength))
{
int.TryParse(tmpContentLength, out contentLength);
}
_logGroupList = LogGroupList.ParseFrom(LogClientTools.DecompressFromLZ4(body, _rawSize));
}
public String NextCursor
{
get { return _nextCursor; }
}
public int LogCount
{
get { return _logCount; }
}
public int RawSize
{
get { return _rawSize; }
}
public LogGroupList LogGroupList
{
get { return _logGroupList; }
}
}
}