package ukma.mm.questmaker.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Quest implements Serializable {
	
	enum Status {
		UPCOMING, IN_PROGRESS, COMPLETED
	}

	private static final long serialVersionUID = 7018628062864867741L;
	
	@NotNull
	private Long id;
	
	@NotNull
	private User organizer;
	
	@NotNull
	@Size(max = 50)
	private String title;
	
	@NotNull
	@Size(max = 200)
	private String description;
	
	@NotNull
	private Date start;
	
	@Size(min = 1)
	private List<Step> steps;
	
	@NotNull
	private Status status;
	
	private Set<User> participants;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getOrganizer() {
		return organizer;
	}

	public void setOrganizer(User organizer) {
		this.organizer = organizer;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public List<Step> getSteps() {
		return steps;
	}

	public void setSteps(List<Step> steps) {
		this.steps = steps;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Set<User> getParticipants() {
		return participants;
	}

	public void setParticipants(Set<User> participants) {
		this.participants = participants;
	}
	
	
}
