Newer
Older
CitrusServer / src / main / java / org / ntlab / citrusserver / entities / Account.java
package org.ntlab.citrusserver.entities;

public class Account {
    private String introduction;
    private int bookcount = 0;
    private String accountId;
    private String password;

    public Account(String aid, String pass) {
        accountId = aid;
        password = pass;
    }

    public void setIntroduction(String i) {introduction = i;}
    public String getIntroduction() {return introduction;}
    public int getNewBookId() {
        bookcount += 1;
        return bookcount;
    }
    public int getBookCount() {return bookcount;}
    public void setId(String i) {accountId = i;}
    public String getId() {return accountId;}
    public void setPassword(String p) {password = p;}
    public String getPassword() {return password;}

}