All Downloads are FREE. Search and download functionalities are using the official Maven repository.

website.automate.teamcity.server.io.model.AccountSerializable Maven / Gradle / Ivy

The newest version!
package website.automate.teamcity.server.io.model;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("account")
public class AccountSerializable extends AbstractSerializable {

    private static final long serialVersionUID = -1340244196417263060L;

    private String username;
    
    private String password;

    @XStreamImplicit(itemFieldName="project")
    private List projects = new ArrayList();
    
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
    public List getProjects() {
        return projects;
    }

    public void setProjects(List projects) {
        this.projects = projects;
    }
    
    public void addProject(ProjectSerializable project){
        this.projects.add(project);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy