using System; using System.Collections.Generic; using System.ComponentModel; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "SyncPlatFriend2MSData")] [Serializable] public class SyncPlatFriend2MSData : IExtensible { [ProtoMember(1, Name = "friendInfo", DataFormat = DataFormat.Default)] public List friendInfo { get { return this._friendInfo; } } [ProtoMember(2, IsRequired = false, Name = "selfInfo", DataFormat = DataFormat.Default)] [DefaultValue(null)] public PlatFriend selfInfo { get { return this._selfInfo; } set { this._selfInfo = value; } } private readonly List _friendInfo = new List(); private PlatFriend _selfInfo = null; private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }