public Attendee addAttendeeRest2Model(AttendeeRequest attendeeRequest) { Attendee attendee = new Attendee(); attendee.setUserId(attendeeRequest.getUserId()); attendee.setGwIp(attendeeRequest.getGwIp()); attendee.setConfRoom(attendeeRequest.getConfRoom()); attendee.setAttendeeNumber(attendeeRequest.getAttendeeNumber()); attendee.setAttribute(attendeeRequest.getAttribute()); return attendee; }
public Attendee getModifyAttendeeAuthorityRest2Model(UpdateAttendeeRequest request) { Attendee attendee = new Attendee(); attendee.setUserId(request.getUserId()); attendee.setIsRegister(request.getIsRegister()); attendee.setGwIp(request.getGwIp()); attendee.setConfRoom(request.getConfRoom()); attendee.setAttribute(request.getAttribute()); attendee.setAttendeeNumber(request.getAttendeeNumber()); return attendee; }