package eu.dnetlib.data.claims.entity;

import java.util.Date;

public class Notification implements OpenaireEntity {
    private String openaireId;
    private String openaireName;
    private String userMail;
    private int frequency;
    private boolean notify;
    private Date last_interaction_date;

    public Notification() {}

    public Notification(String openaireId, String openaireName, String userMail, int frequency, boolean notify) {
        this.openaireId = openaireId;
        this.openaireName = openaireName;
        this.userMail = userMail;
        this.frequency = frequency;
        this.notify = notify;
    }

    public String getOpenaireId() {
        return openaireId;
    }

    public void setOpenaireId(String openaireId) {
        this.openaireId = openaireId;
    }

    public String getOpenaireName() {
        return openaireName;
    }

    public void setOpenaireName(String openaireName) {
        this.openaireName = openaireName;
    }

    public String getUserMail() { return userMail; }

    public void setUserMail(String userMail) { this.userMail = userMail; }

    public int getFrequency() { return frequency; }

    public void setFrequency(int frequency) { this.frequency = frequency; }

    public boolean isNotify() { return notify; }

    public void setNotify(boolean notify) { this.notify = notify; }

    public Date getDate() {
        return last_interaction_date;
    }

    public void setDate(Date last_interaction_date) {
        this.last_interaction_date = last_interaction_date;
    }

    @Override
    public String toString() {
        return "Notification{" +
                "openaireId='" + openaireId + '\'' +
                ", openaireName='" + openaireName + '\'' +
                ", userMail='" + userMail + '\'' +
                ", frequency=" + frequency +
                ", notify=" + notify +
                ", last_interaction_date=" + last_interaction_date +
                '}';
    }
}