Search in sources :

Example 6 with ReactionTypes

use of com.fastaccess.data.dao.types.ReactionTypes in project FastHub by k0shk0sh.

the class ReactionsProvider method isCallingApi.

public boolean isCallingApi(long id, int vId) {
    ReactionsModel reactionsModel = getReactionsMap().get(id);
    if (reactionsModel == null || InputHelper.isEmpty(reactionsModel.getContent())) {
        return false;
    }
    ReactionTypes type = ReactionTypes.get(vId);
    return type != null && type.getContent().equals(reactionsModel.getContent()) && reactionsModel.isCallingApi();
}
Also used : ReactionTypes(com.fastaccess.data.dao.types.ReactionTypes) ReactionsModel(com.fastaccess.data.dao.ReactionsModel)

Aggregations

ReactionTypes (com.fastaccess.data.dao.types.ReactionTypes)6 ReactionsModel (com.fastaccess.data.dao.ReactionsModel)2 Comment (com.fastaccess.data.dao.model.Comment)2 PullRequest (com.fastaccess.data.dao.model.PullRequest)2 Bundle (android.os.Bundle)1 Issue (com.fastaccess.data.dao.model.Issue)1