1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using Aliyun.OSS.Common.Communication;
- using Aliyun.OSS.Util;
- namespace Aliyun.OSS.Transform
- {
- internal class UploadPartResultDeserializer : ResponseDeserializer<UploadPartResult, UploadPartResult>
- {
- private readonly int _partNumber;
-
- public UploadPartResultDeserializer(int partNumber)
- : base(null)
- {
- _partNumber = partNumber;
- }
-
- public override UploadPartResult Deserialize(ServiceResponse xmlStream)
- {
- var result = new UploadPartResult();
- if (xmlStream.Headers.ContainsKey(HttpHeaders.ETag))
- {
- result.ETag = OssUtils.TrimQuotes(xmlStream.Headers[HttpHeaders.ETag]);
- }
- result.PartNumber = _partNumber;
-
- return result;
- }
- }
- }
|