12345678910111213141516171819202122232425262728293031323334 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using System.IO;
- using Aliyun.OSS.Common.Communication;
- using Aliyun.OSS.Model;
- using Aliyun.OSS.Util;
- namespace Aliyun.OSS.Transform
- {
- internal class CompleteMultipartUploadResultDeserializer
- : ResponseDeserializer<CompleteMultipartUploadResult, CompleteMultipartUploadResultModel>
- {
- public CompleteMultipartUploadResultDeserializer(IDeserializer<Stream, CompleteMultipartUploadResultModel> contentDeserializer)
- : base(contentDeserializer)
- { }
-
- public override CompleteMultipartUploadResult Deserialize(ServiceResponse xmlStream)
- {
- var result = ContentDeserializer.Deserialize(xmlStream.Content);
- return new CompleteMultipartUploadResult
- {
- BucketName = result.Bucket,
- Key = result.Key,
- Location = result.Location,
- ETag = OssUtils.TrimQuotes(result.ETag)
- };
- }
- }
- }
|