public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            PartyType = reader.ReadByte();
            PartyName = reader.ReadUTF();
            FromId    = reader.ReadVarLong();
            FromName  = reader.ReadUTF();
            LeaderId  = reader.ReadVarLong();
            var countMembers = reader.ReadShort();

            Members = new List <PartyInvitationMemberInformations>();
            for (short i = 0; i < countMembers; i++)
            {
                var memberstypeId = reader.ReadShort();
                PartyInvitationMemberInformations type = new PartyInvitationMemberInformations();
                type.Deserialize(reader);
                Members.Add(type);
            }
            var countGuests = reader.ReadShort();

            Guests = new List <PartyGuestInformations>();
            for (short i = 0; i < countGuests; i++)
            {
                PartyGuestInformations type = new PartyGuestInformations();
                type.Deserialize(reader);
                Guests.Add(type);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            int membersCount = reader.ReadUShort();
            int membersIndex;

            m_members = new System.Collections.Generic.List <PartyInvitationMemberInformations>();
            for (membersIndex = 0; (membersIndex < membersCount); membersIndex = (membersIndex + 1))
            {
                PartyInvitationMemberInformations objectToAdd = new PartyInvitationMemberInformations();
                objectToAdd.Deserialize(reader);
                m_members.Add(objectToAdd);
            }
            int guestsCount = reader.ReadUShort();
            int guestsIndex;

            m_guests = new System.Collections.Generic.List <PartyGuestInformations>();
            for (guestsIndex = 0; (guestsIndex < guestsCount); guestsIndex = (guestsIndex + 1))
            {
                PartyGuestInformations objectToAdd = new PartyGuestInformations();
                objectToAdd.Deserialize(reader);
                m_guests.Add(objectToAdd);
            }
            m_partyType = reader.ReadByte();
            m_partyName = reader.ReadUTF();
            m_fromId    = reader.ReadVarUhLong();
            m_fromName  = reader.ReadUTF();
            m_leaderId  = reader.ReadVarUhLong();
        }
예제 #3
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            PartyType = reader.ReadSByte();
            PartyName = reader.ReadUTF();
            FromId    = reader.ReadVarUhLong();
            FromName  = reader.ReadUTF();
            LeaderId  = reader.ReadVarUhLong();
            var MembersCount = reader.ReadShort();

            Members = new List <PartyInvitationMemberInformations>();
            for (var i = 0; i < MembersCount; i++)
            {
                PartyInvitationMemberInformations objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Members.Add(objectToAdd);
            }
            var GuestsCount = reader.ReadShort();

            Guests = new List <PartyGuestInformations>();
            for (var i = 0; i < GuestsCount; i++)
            {
                var objectToAdd = new PartyGuestInformations();
                objectToAdd.Deserialize(reader);
                Guests.Add(objectToAdd);
            }
        }
예제 #4
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            PartyType = reader.ReadByte();
            PartyName = reader.ReadUTF();
            FromId    = reader.ReadVarUhLong();
            FromName  = reader.ReadUTF();
            LeaderId  = reader.ReadVarUhLong();
            var membersCount = reader.ReadUShort();

            Members = new List <PartyInvitationMemberInformations>();
            for (var membersIndex = 0; membersIndex < membersCount; membersIndex++)
            {
                var objectToAdd = new PartyInvitationMemberInformations();
                objectToAdd.Deserialize(reader);
                Members.Add(objectToAdd);
            }
            var guestsCount = reader.ReadUShort();

            Guests = new List <PartyGuestInformations>();
            for (var guestsIndex = 0; guestsIndex < guestsCount; guestsIndex++)
            {
                var objectToAdd = new PartyGuestInformations();
                objectToAdd.Deserialize(reader);
                Guests.Add(objectToAdd);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            this.partyType = (uint)reader.ReadByte();
            if (this.partyType < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.partyType + ") on element of PartyInvitationDetailsMessage.partyType.");
            }
            this.partyName = reader.ReadUTF();
            this.fromId    = (double)reader.ReadVarUhLong();
            if (this.fromId < 0.0 || this.fromId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.fromId + ") on element of PartyInvitationDetailsMessage.fromId.");
            }
            this.fromName = reader.ReadUTF();
            this.leaderId = (double)reader.ReadVarUhLong();
            if (this.leaderId < 0.0 || this.leaderId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.leaderId + ") on element of PartyInvitationDetailsMessage.leaderId.");
            }
            uint num1 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num1; ++index)
            {
                PartyInvitationMemberInformations instance = ProtocolTypeManager.GetInstance <PartyInvitationMemberInformations>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.members.Add(instance);
            }
            uint num2 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num2; ++index)
            {
                PartyGuestInformations guestInformations = new PartyGuestInformations();
                guestInformations.Deserialize(reader);
                this.guests.Add(guestInformations);
            }
        }