Esempio n. 1
0
        public override void Deserialize(IDataReader reader)
        {
            pageIndex = reader.ReadVarUhShort();
            totalPage = reader.ReadVarUhShort();
            var limit = (ushort)reader.ReadUShort();

            houseList = new Types.HouseInformationsForSell[limit];
            for (int i = 0; i < limit; i++)
            {
                houseList[i] = new Types.HouseInformationsForSell();
                houseList[i].Deserialize(reader);
            }
        }
 public override void Deserialize(IDataReader reader)
 {
     pageIndex = reader.ReadShort();
     if (pageIndex < 0)
         throw new Exception("Forbidden value on pageIndex = " + pageIndex + ", it doesn't respect the following condition : pageIndex < 0");
     totalPage = reader.ReadShort();
     if (totalPage < 0)
         throw new Exception("Forbidden value on totalPage = " + totalPage + ", it doesn't respect the following condition : totalPage < 0");
     var limit = reader.ReadUShort();
     houseList = new Types.HouseInformationsForSell[limit];
     for (int i = 0; i < limit; i++)
     {
          houseList[i] = new Types.HouseInformationsForSell();
          houseList[i].Deserialize(reader);
     }
 }
Esempio n. 3
0
        public void Deserialize(IDataReader reader)
        {
            pageIndex = reader.ReadVarUhShort();
            if (pageIndex < 0)
            {
                throw new System.Exception("Forbidden value on pageIndex = " + pageIndex + ", it doesn't respect the following condition : pageIndex < 0");
            }
            totalPage = reader.ReadVarUhShort();
            if (totalPage < 0)
            {
                throw new System.Exception("Forbidden value on totalPage = " + totalPage + ", it doesn't respect the following condition : totalPage < 0");
            }
            var limit = reader.ReadUShort();

            houseList = new Types.HouseInformationsForSell[limit];
            for (int i = 0; i < limit; i++)
            {
                houseList[i] = new Types.HouseInformationsForSell();
                houseList[i].Deserialize(reader);
            }
        }