using System; using System.Collections.Generic; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "WarningPackage")] [Serializable] public class WarningPackage : IExtensible { [ProtoMember(1, Name = "WarningPos", DataFormat = DataFormat.TwosComplement)] public List WarningPos { get { return this._WarningPos; } } [ProtoMember(2, IsRequired = true, Name = "ID", DataFormat = DataFormat.TwosComplement)] public ulong ID { get { return this._ID; } set { this._ID = value; } } private readonly List _WarningPos = new List(); private ulong _ID; private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }