12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using System.IO;
- using Aliyun.OSS.Common.Communication;
- using Aliyun.OSS.Util;
- using Aliyun.OSS.Model;
- namespace Aliyun.OSS.Transform
- {
- internal class UploadPartCopyResultDeserializer : ResponseDeserializer<UploadPartCopyResult, UploadPartCopyRequestModel>
- {
- private readonly int _partNumber;
- public UploadPartCopyResultDeserializer(IDeserializer<Stream, UploadPartCopyRequestModel> contentDeserializer, int partNumber)
- : base(contentDeserializer)
- {
- _partNumber = partNumber;
- }
-
- public override UploadPartCopyResult Deserialize(ServiceResponse xmlStream)
- {
- var partCopyRequestModel = ContentDeserializer.Deserialize(xmlStream.Content);
- var result = new UploadPartCopyResult
- {
- ETag = OssUtils.TrimQuotes(partCopyRequestModel.ETag),
- PartNumber = _partNumber
- };
- return result;
- }
- }
- }
|