package eu.dnetlib.espas.gui.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Date;

/**
 * Created by stefania on 10/14/15.
 */
public class Question implements IsSerializable {

    private int id;
    private String question;
    private String answer;
    private Date date;
    private boolean isActive;
    private float weight;
    private int hitCount;
    private Topic topic;

    public Question() {
    }

    public Question(int id, String question, String answer, Date date, boolean isActive, float weight, int hitCount, Topic topic) {
        this.id = id;
        this.question = question;
        this.answer = answer;
        this.date = date;
        this.isActive = isActive;
        this.weight = weight;
        this.hitCount = hitCount;
        this.topic = topic;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Date getDate() {
        return date;
    }

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

    public boolean isActive() {
        return isActive;
    }

    public void setIsActive(boolean isActive) {
        this.isActive = isActive;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public int getHitCount() {
        return hitCount;
    }

    public void setHitCount(int hitCount) {
        this.hitCount = hitCount;
    }
}
