aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/miz_hi/smileessence/command/status/impl/StatusCommandFavAndRetweet.java
blob: c8d5bbba2cc16109c0351a3daef1b2ed044e58fb (plain)
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
33
34
package net.miz_hi.smileessence.command.status.impl;

import net.miz_hi.smileessence.command.IConfirmable;
import net.miz_hi.smileessence.command.IHideable;
import net.miz_hi.smileessence.command.status.StatusCommand;
import net.miz_hi.smileessence.model.status.tweet.TweetModel;

public class StatusCommandFavAndRetweet extends StatusCommand implements IHideable, IConfirmable
{

    public StatusCommandFavAndRetweet(TweetModel model)
    {
        super(model);
    }

    @Override
    public String getName()
    {
        return "ふぁぼってリツイート";
    }

    @Override
    public void workOnUiThread()
    {
        status.favorite();
        status.retweet();
    }

    @Override
    public boolean getDefaultVisibility()
    {
        return !status.user.isProtected && !status.user.isMe() && !status.getOriginal().user.isMe();
    }
}