34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
using COSXML.Model.Tag;
|
|
using COSXML.Transfer;
|
|
|
|
namespace COSXML.Model.Bucket
|
|
{
|
|
/// <summary>
|
|
/// 查询 Bucket 地域信息返回的结果
|
|
/// <see cref="https://cloud.tencent.com/document/product/436/8275"/>
|
|
/// </summary>
|
|
public sealed class GetBucketLocationResult : CosResult
|
|
{
|
|
/// <summary>
|
|
/// 地域信息
|
|
/// <see cref="COSXML.Model.Tag.LocationConstraint"/>
|
|
/// </summary>
|
|
public LocationConstraint locationConstraint;
|
|
|
|
internal override void ParseResponseBody(System.IO.Stream inputStream, string contentType, long contentLength)
|
|
{
|
|
locationConstraint = new LocationConstraint();
|
|
XmlParse.ParseLocationConstraint(inputStream, locationConstraint);
|
|
}
|
|
|
|
public override string GetResultInfo()
|
|
{
|
|
return base.GetResultInfo() + (locationConstraint == null ? "" : "\n" + locationConstraint.GetInfo());
|
|
}
|
|
}
|
|
}
|