// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package test;

import java.io.Serializable;

public class Login implements Serializable {
    private String un = "";
    private String pw = "";
    private String res = "";
    private String msg = "";
    public String getUn() {
        return un;
    }
    public void setUn(String un) {
        this.un = un;
    }
    public String getPw() {
        return pw;
    }
    public void setPw(String pw) {
        this.pw = pw;
    }
    public String getRes() {
        return res;
    }
    public void setRes(String res) {
        this.res = res;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String login() {
        if(un.equals("test") && pw.equals("test")) {
            res = "Success";
            msg = "";
        } else {
            res = "Failure";
            msg = "If you are a hacker then fuckoff !";
        }
        return res;
    }
}
