/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uk.co.ignesco.teb.api;

/**
 *
 * @author craig
 */
public class TebProject {
    public String repoLocation;
    public String branch;
    public String workingDirectory;
    public String authGroup;
    public ProjectStatus status;
    public String id;
    
    public TebProject() {
    }
    
    public TebProject(String id, String repoLocation, String branch, String workingDirectory, String authGroup, ProjectStatus status) {
        this.id = id;
        this.repoLocation = repoLocation;
        this.branch = branch;
        this.workingDirectory = workingDirectory;
        this.authGroup = authGroup;
        this.status = status;
    }

    public String getStatusString() {
        switch(status) {
            case active: {
                return "active";
            }
            case inactive: {
                return "inactive";
            }
            default: {
                return "";
            }
        }
    }
}