package com.dacrt.SBIABackend.dto;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class DrptestDto {
	private TestedDto tested;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
	private Date date;
	private TypeDto type;
	private ResultDto result;
	
	public DrptestDto() {
		super();
	}
	
	public DrptestDto(TestedDto tested, Date date, TypeDto type, ResultDto result) {
		super();
		this.tested = tested;
		this.date = date;
		this.type = type;
		this.result = result;
	}
	
	public TestedDto getTested() {
		return tested;
	}
	public void setTested(TestedDto tested) {
		this.tested = tested;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public TypeDto getType() {
		return type;
	}
	public void setType(TypeDto type) {
		this.type = type;
	}
	public ResultDto getResult() {
		return result;
	}
	public void setResult(ResultDto result) {
		this.result = result;
	}
}
