package com.matteozajac.mobileapp;

public class Question implements Comparable<Question> {
	private String text;
	private int likes;
	private String author;

	public Question(String text, int likes) {
		this.text = text;
		this.likes = likes;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getLikes() {
		return likes;
	}

	public void setLikes(int likes) {
		this.likes = likes;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Override
	public int compareTo(Question another) {
		if (this.likes > another.getLikes())
			return 1;
		return 0;
	}

}
