using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "GiftIbItem")] [Serializable] public class GiftIbItem : IExtensible { [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] public string openid { get { return this._openid ?? ""; } set { this._openid = value; } } [XmlIgnore] [Browsable(false)] public bool openidSpecified { get { return this._openid != null; } set { bool flag = value == (this._openid == null); if (flag) { this._openid = (value ? this.openid : null); } } } [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] public string name { get { return this._name ?? ""; } set { this._name = value; } } [XmlIgnore] [Browsable(false)] public bool nameSpecified { get { return this._name != null; } set { bool flag = value == (this._name == null); if (flag) { this._name = (value ? this.name : null); } } } [ProtoMember(3, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] [DefaultValue(null)] public ItemBrief item { get { return this._item; } set { this._item = value; } } [ProtoMember(4, IsRequired = false, Name = "text", DataFormat = DataFormat.Default)] public string text { get { return this._text ?? ""; } set { this._text = value; } } [XmlIgnore] [Browsable(false)] public bool textSpecified { get { return this._text != null; } set { bool flag = value == (this._text == null); if (flag) { this._text = (value ? this.text : null); } } } [ProtoMember(5, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)] public string orderid { get { return this._orderid ?? ""; } set { this._orderid = value; } } [XmlIgnore] [Browsable(false)] public bool orderidSpecified { get { return this._orderid != null; } set { bool flag = value == (this._orderid == null); if (flag) { this._orderid = (value ? this.orderid : null); } } } private string _openid; private string _name; private ItemBrief _item = null; private string _text; private string _orderid; private IExtension extensionObject; private bool ShouldSerializeopenid() { return this.openidSpecified; } private void Resetopenid() { this.openidSpecified = false; } private bool ShouldSerializename() { return this.nameSpecified; } private void Resetname() { this.nameSpecified = false; } private bool ShouldSerializetext() { return this.textSpecified; } private void Resettext() { this.textSpecified = false; } private bool ShouldSerializeorderid() { return this.orderidSpecified; } private void Resetorderid() { this.orderidSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }