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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

    @JsonIgnore//////
    private String accountColor;

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

    public void setIntroduction(String i) {introduction = i;}
    public String getIntroduction() {return introduction;}
    @JsonIgnore
    public int getNewBookId() {
        bookcount += 1;
        return bookcount;
    }
    @JsonIgnore
    public int getBookCount() {return bookcount;}

    public void setId(String i) {accountId = i;}
    @JsonIgnore
    public String getId() {return accountId;}
    public void setPassword(String p) {password = p;}
    public String getPassword() {return password;}

    @JsonIgnore
    public void setAccountColor(String a) {accountColor = a;}
    public String getAccountColor() {return accountColor;}
}