using Supercell.GUT.Logic.Message.Attributes; using Supercell.GUT.Titan.Logic.Message; using Supercell.GUT.Titan.Logic.Util; namespace Supercell.GUT.Logic.Message.Avatar; [VersionedMessage(10503)] public class AskForAddableFriendsMessage : VersionedMessage { public LogicArrayList FacebookIds { get; set; } public LogicArrayList GamecenterIds { get; set; } public AskForAddableFriendsMessage() : base(0) { this.FacebookIds = new LogicArrayList(); this.GamecenterIds = new LogicArrayList(); } public override void Destruct() { base.Destruct(); this.FacebookIds.Clear(); this.GamecenterIds.Clear(); } public override void Encode() { base.Encode(); int size = this.FacebookIds.Size(); this.ByteStream.WriteInt(size); for (int i = 0; i < size; i++) { this.ByteStream.WriteString(this.FacebookIds[i]); } size = this.GamecenterIds.Size(); this.ByteStream.WriteInt(size); for (int i = 0; i < size; i++) { this.ByteStream.WriteString(this.GamecenterIds[i]); } } public override void Decode() { base.Decode(); } public override int GetMessageType() { return 10503; } public override int GetServiceNodeType() { return 3; } }