/* * 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 { public CompleteMultipartUploadResultDeserializer(IDeserializer 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) }; } } }