public override void Deserialize(BigEndianReader reader) { PageIndex = reader.ReadShort(); TotalPage = reader.ReadShort(); var limit = reader.ReadUShort(); PaddockList = new PaddockInformationsForSell[limit]; for (int i = 0; i < limit; i++) { PaddockList[i] = new PaddockInformationsForSell(); PaddockList[i].Deserialize(reader); } }
public PaddockToSellListMessage(short pageIndex, short totalPage, PaddockInformationsForSell[] paddockList) { PageIndex = pageIndex; TotalPage = totalPage; PaddockList = paddockList; }