package kr.co.tobby48.medihand.payload.request.appointment; 

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import kr.co.tobby48.medihand.models.Appointment;

/**
 * <pre>
 * kr.co.tobby48.medihand.payload.form 
 * UpdatePatientForm.java
 *
 * 설명 :
 * </pre>
 * 
 * @since : 2022. 10. 22.
 * @author : tobby48
 * @version : v1.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UpdateAppointmentRequest extends AddAppointmentRequest implements Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@NotNull(message = "{validation.id.required}")
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Appointment update(Appointment appointment) {
		appointment.setCondition1(getCondition1());
		appointment.setCondition2(getCondition2());
		appointment.setCondition3(getCondition3());
        
		appointment.setCondition4(getCondition4());
		appointment.setCondition5(getCondition5());
		appointment.setCondition6(getCondition6());
		appointment.setCondition7(getCondition7());
        
		appointment.setCondition8(getCondition8());
		appointment.setCondition9(getCondition9());
		appointment.setCondition10(getCondition10());
        
		appointment.setCondition11(getCondition11());
		appointment.setCondition12(getCondition12());
		appointment.setCondition13(getCondition13());
//		appointment.setManagements(getManagement());
		
		return appointment;
	}
}