12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
-
- using System;
- using System.Globalization;
- using System.Xml.Serialization;
- namespace Aliyun.OSS
- {
-
-
-
- [XmlRoot("Owner")]
- public class Owner : ICloneable
- {
-
-
-
- [XmlElement("ID")]
- public string Id { get; set; }
-
-
-
-
- [XmlElement("DisplayName")]
- public string DisplayName { get; set; }
-
-
-
-
- internal Owner()
- { }
-
-
-
-
-
-
- internal Owner(string id, string displayName)
- {
- Id = id;
- DisplayName = displayName;
- }
-
-
-
-
- public override string ToString()
- {
- return string.Format(CultureInfo.InvariantCulture,
- "[Owner Id={0}, DisplayName={1}]",
- Id ?? string.Empty,
- DisplayName ?? string.Empty);
- }
-
-
-
-
- public object Clone()
- {
- return new Owner(Id, DisplayName);
- }
- }
- }
|