/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * * 版权所有 (C)阿里云计算有限公司 */ using System.Xml.Serialization; using Aliyun.OSS.Util; namespace Aliyun.OSS { /// /// Description of DeleteObjectsResult. /// [XmlRoot("DeleteResult")] public class DeleteObjectsResult { private DeletedObject[] _keys; /// /// Deleted部分的解析和获取 /// [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; } } /// /// EncodingType值的解析和获取 /// [XmlElement("EncodingType")] public string EncodingType { get; set; } internal DeleteObjectsResult() { } /// /// Deleted部分的解析和获取 /// [XmlRoot("Deleted")] public class DeletedObject { /// /// Deleted Key的解析和获取 /// [XmlElement("Key")] public string Key { get; set; } } } }