Reacciones.java 498 Bytes
Newer Older
willgonzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

public class Reacciones {
    private Usuario u;
    private Tweet t;    
    private String reaccion[3];
    public void Like(Usuario u, Tweet t){
        for(Tweet tw: U.getTweets()){
            if(tw.equals(t)){
                tw.setNroLikes();
            }
        }
    }
    public void reTweet(Usuario u, Tweet t){
        for(Tweet tw: u.getTweets()){
            if(tw.equals(t)){
                tw.setNroRtw();
                this.u.setreTweets(t);
            }
        }
    }
}