// Path: main/java/com/biscuit/ColorCodes.java
// public class ColorCodes {
// 
// 	// with normal background
// 	public static final String RESET = "\u001B[0m";
// 	public static final String BLACK = "\u001B[30;1m";
// 	public static final String RED = "\u001B[31;1m";
// 	public static final String GREEN = "\u001B[32;1m";
// 	public static final String YELLOW = "\u001B[33;1m";
// 	public static final String BLUE = "\u001B[34;1m";
// 	public static final String PURPLE = "\u001B[35;1m";
// 	public static final String CYAN = "\u001B[36;1m";
// 	public static final String WHITE = "\u001B[37;1m";
// 
// 	// with black background
// 	public static final String B_RESET = "\u001B[0m";
// 	public static final String B_BLACK = "\u001B[30;40;1m";
// 	public static final String B_RED = "\u001B[31;40;1m";
// 	public static final String B_GREEN = "\u001B[32;40;1m";
// 	public static final String B_YELLOW = "\u001B[33;40;1m";
// 	public static final String B_BLUE = "\u001B[34;40;1m";
// 	public static final String B_PURPLE = "\u001B[35;40;1m";
// 	public static final String B_CYAN = "\u001B[36;40;1m";
// 	public static final String B_WHITE = "\u001B[37;40;1m";
// 
// }
// 
// Path: main/java/com/biscuit/commands/Command.java
// public interface Command {
// 
// 	boolean execute() throws IOException;
// }
// 
// Path: main/java/com/biscuit/models/UserStory.java
// public class UserStory {
// 
// 	public transient Project project;
// 
// 	public String title;
// 	public String description;
// 	public Status state;
// 	public BusinessValue businessValue;
// 	public Date initiatedDate = null;
// 	public Date plannedDate = null;
// 	public Date dueDate = null;
// 	public int points;
// 
// 	public static String[] fields;
// 
// 	public List<Task> tasks = new ArrayList<>();
// 	public List<Bug> bugs = new ArrayList<>();
// 	public List<Test> tests = new ArrayList<>();
// 
// 	static {
// 		fields = new String[] { "title", "description", "state", "business_value", "initiated_date", "planned_date", "due_date", "tasks", "points" };
// 	}
// 
// 
// 	public void save() {
// 		project.save();
// 	}
// 
// }
// 
// Path: main/java/com/biscuit/models/enums/Status.java
// public enum Status {
// 
// 	CREATED(0), OPEN(1), PLANNED(2), UNPLANNED(3), IN_PROGRESS(4), IN_TESTING(5), DONE(6), OVERDUE(7), REMOVED(8);
// 
// 	private final int value;
// 	public static List<String> values = new ArrayList<>(
// 			Arrays.asList("created", "open", "planned", "unplanned", "in_progress", "in_testing", "done", "overdue", "removed"));
// 
// 
// 	private Status(int value) {
// 		this.value = value;
// 	}
// 
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// 
// 	public static String allStatus() {
// 		StringBuilder sb = new StringBuilder();
// 
// 		for (String s : values) {
// 			sb.append(s).append(", ");
// 		}
// 
// 		return sb.substring(0, sb.length() - 2);
// 	}
// 
// }


import java.io.IOException;
import com.biscuit.ColorCodes;
import com.biscuit.commands.Command;
import com.biscuit.models.UserStory;
import com.biscuit.models.enums.Status;
package com.biscuit.commands.userStory;



public class ChangeStatusUserStory implements Command {

	UserStory us = null;
	Status state = null;


	public ChangeStatusUserStory(UserStory us, Status state) {
		super();
		this.us = us;
		this.state = state;
	}


	@Override
	public boolean execute() throws IOException {

// Path: main/java/com/biscuit/ColorCodes.java
// public class ColorCodes {
// 
// 	// with normal background
// 	public static final String RESET = "\u001B[0m";
// 	public static final String BLACK = "\u001B[30;1m";
// 	public static final String RED = "\u001B[31;1m";
// 	public static final String GREEN = "\u001B[32;1m";
// 	public static final String YELLOW = "\u001B[33;1m";
// 	public static final String BLUE = "\u001B[34;1m";
// 	public static final String PURPLE = "\u001B[35;1m";
// 	public static final String CYAN = "\u001B[36;1m";
// 	public static final String WHITE = "\u001B[37;1m";
// 
// 	// with black background
// 	public static final String B_RESET = "\u001B[0m";
// 	public static final String B_BLACK = "\u001B[30;40;1m";
// 	public static final String B_RED = "\u001B[31;40;1m";
// 	public static final String B_GREEN = "\u001B[32;40;1m";
// 	public static final String B_YELLOW = "\u001B[33;40;1m";
// 	public static final String B_BLUE = "\u001B[34;40;1m";
// 	public static final String B_PURPLE = "\u001B[35;40;1m";
// 	public static final String B_CYAN = "\u001B[36;40;1m";
// 	public static final String B_WHITE = "\u001B[37;40;1m";
// 
// }
// 
// Path: main/java/com/biscuit/commands/Command.java
// public interface Command {
// 
// 	boolean execute() throws IOException;
// }
// 
// Path: main/java/com/biscuit/models/UserStory.java
// public class UserStory {
// 
// 	public transient Project project;
// 
// 	public String title;
// 	public String description;
// 	public Status state;
// 	public BusinessValue businessValue;
// 	public Date initiatedDate = null;
// 	public Date plannedDate = null;
// 	public Date dueDate = null;
// 	public int points;
// 
// 	public static String[] fields;
// 
// 	public List<Task> tasks = new ArrayList<>();
// 	public List<Bug> bugs = new ArrayList<>();
// 	public List<Test> tests = new ArrayList<>();
// 
// 	static {
// 		fields = new String[] { "title", "description", "state", "business_value", "initiated_date", "planned_date", "due_date", "tasks", "points" };
// 	}
// 
// 
// 	public void save() {
// 		project.save();
// 	}
// 
// }
// 
// Path: main/java/com/biscuit/models/enums/Status.java
// public enum Status {
// 
// 	CREATED(0), OPEN(1), PLANNED(2), UNPLANNED(3), IN_PROGRESS(4), IN_TESTING(5), DONE(6), OVERDUE(7), REMOVED(8);
// 
// 	private final int value;
// 	public static List<String> values = new ArrayList<>(
// 			Arrays.asList("created", "open", "planned", "unplanned", "in_progress", "in_testing", "done", "overdue", "removed"));
// 
// 
// 	private Status(int value) {
// 		this.value = value;
// 	}
// 
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// 
// 	public static String allStatus() {
// 		StringBuilder sb = new StringBuilder();
// 
// 		for (String s : values) {
// 			sb.append(s).append(", ");
// 		}
// 
// 		return sb.substring(0, sb.length() - 2);
// 	}
// 
// }


// Path: main/java/com/biscuit/commands/userStory/ChangeStatusUserStory.java
import java.io.IOException;
import com.biscuit.ColorCodes;
import com.biscuit.commands.Command;
import com.biscuit.models.UserStory;
import com.biscuit.models.enums.Status;

package com.biscuit.commands.userStory;



public class ChangeStatusUserStory implements Command {

	UserStory us = null;
	Status state = null;


	public ChangeStatusUserStory(UserStory us, Status state) {
		super();
		this.us = us;
		this.state = state;
	}


	@Override
	public boolean execute() throws IOException {

		Status oldState = us.state;