1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using System.Xml.Serialization;
- using Aliyun.OSS.Util;
- namespace Aliyun.OSS
- {
- /// <summary>
- /// Description of DeleteObjectsResult.
- /// </summary>
- [XmlRoot("DeleteResult")]
- public class DeleteObjectsResult
- {
- private DeletedObject[] _keys;
- /// <summary>
- /// Deleted部分的解析和获取
- /// </summary>
- [XmlElement("Deleted")]
- public DeletedObject[] Keys
- {
- get
- {
- if (EncodingType == null)
- return _keys;
- bool isUrlEncoding = EncodingType.ToLowerInvariant().Equals(HttpUtils.UrlEncodingType);
- foreach (var key in _keys)
- {
- key.Key = isUrlEncoding ? HttpUtils.DecodeUri(key.Key) : key.Key;
- }
- return _keys;
- }
- set
- {
- this._keys = value;
- }
- }
- /// <summary>
- /// EncodingType值的解析和获取
- /// </summary>
- [XmlElement("EncodingType")]
- public string EncodingType { get; set; }
- internal DeleteObjectsResult()
- {
- }
- /// <summary>
- /// Deleted部分的解析和获取
- /// </summary>
- [XmlRoot("Deleted")]
- public class DeletedObject
- {
- /// <summary>
- /// Deleted Key的解析和获取
- /// </summary>
- [XmlElement("Key")]
- public string Key { get; set; }
- }
- }
- }
|