public Protocol.DeskInfo GetInfo() { Protocol.DeskInfo result = new Protocol.DeskInfo(); result.Seats = new List <Protocol.SeatInfo>(); result.DeskID = this.ID; result.Name = this.Name; for (int i = 0; i < Seats.Count; i++) { Interfaces.ISeat seat = Seats[i]; result.Seats.Add(seat.GetInfo()); } return(result); }
public Protocol.DeskInfo GetInfo() { Protocol.DeskInfo result = new Protocol.DeskInfo(); result.Seats = new List<Protocol.SeatInfo>(); result.DeskID = this.ID; result.Name = this.Name; for (int i = 0; i < Seats.Count; i++) { Interfaces.ISeat seat = Seats[i]; result.Seats.Add(seat.GetInfo()); } return result; }