Reaccion.java 697 Bytes
Newer Older
Joel Florentin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
package twitter;

public class Reaccion {
    private TipoReaccion tipo;
    private Tweet tweet;
    private Usuario owner;

    public Reaccion(Tweet tweet, TipoReaccion tipo, Usuario owner) {
        this.tipo = tipo;
        this.owner = owner;
        this.tweet = tweet;
    }
    
    public Usuario getOwner() {
        return owner;
    }
    public TipoReaccion getTipo() {
        return tipo;
    }
    public Tweet getTweet() {
        return tweet;
    }
    public void setOwner(Usuario owner) {
        this.owner = owner;
    }
    public void setTipo(TipoReaccion tipo) {
        this.tipo = tipo;
    }
    public void setTweet(Tweet tweet) {
        this.tweet = tweet;
    }
}