I need to create java class which has 2 methods:
public class IPTPLogin extends IPTPCommand {
/** The email address */
private String login;
/** The password of email */
private String passcode;
/** Creates a new instance of IPTPLogin */
public IPTPLogin(String log, pass) {
setLogin(log, pass);
}
/** Set the login */
protected void setLogin(String log) {
login = new String(log);
}
/** Set the Passcode */
protected void setPasscode(String pass) {
passcode = new String(pass);
}
/** Get the sender address */
public String getLogin() {
return login;
}
/** Get the Passcode */
public String getPasscode() {
return passcode;
}
}
So, that I could create object of class
IPTPLogin c = (IPTPLogin)command;
And, use methods of the class:
c.getLogin(), c.getPasscode()