Search in sources :

Example 6 with Reaction

use of com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.model.Reaction in project android-java-chat-push-notification-app by cometchat-pro.

the class Extensions method getInitialReactions.

public static List<Reaction> getInitialReactions(int i) {
    List<Reaction> randomReaction = new ArrayList<>();
    List<Reaction> fetchedReaction = ReactionUtils.getFeelList();
    for (int k = 0; k < i; k++) {
        Reaction reaction = fetchedReaction.get(k);
        randomReaction.add(reaction);
    }
    return randomReaction;
}
Also used : ArrayList(java.util.ArrayList) Reaction(com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.model.Reaction)

Example 7 with Reaction

use of com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.model.Reaction in project android-java-chat-push-notification-app by cometchat-pro.

the class ReactionUtils method getFeelList.

public static List<Reaction> getFeelList() {
    List<Reaction> resultList = new ArrayList<>();
    for (int i = 0; i < feel.length; i++) {
        Reaction reaction = new Reaction(feel[i], i);
        resultList.add(reaction);
    }
    return resultList;
}
Also used : ArrayList(java.util.ArrayList) Reaction(com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.model.Reaction)

Aggregations

Reaction (com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.model.Reaction)7 Intent (android.content.Intent)3 View (android.view.View)3 CometChatException (com.cometchat.pro.exceptions.CometChatException)3 CometChatReactionDialog (com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.CometChatReactionDialog)3 OnReactionClickListener (com.cometchat.pro.uikit.ui_components.shared.cometchatReaction.listener.OnReactionClickListener)3 ArrayList (java.util.ArrayList)3 JSONException (org.json.JSONException)3 JSONObject (org.json.JSONObject)3 ClipData (android.content.ClipData)2 ClipboardManager (android.content.ClipboardManager)2 ImageView (android.widget.ImageView)2 LinearLayout (android.widget.LinearLayout)2 TextView (android.widget.TextView)2 BaseMessage (com.cometchat.pro.models.BaseMessage)2 MediaMessage (com.cometchat.pro.models.MediaMessage)2 TextMessage (com.cometchat.pro.models.TextMessage)2 User (com.cometchat.pro.models.User)2 CometChatMessageActions (com.cometchat.pro.uikit.ui_components.messages.message_actions.CometChatMessageActions)2 CometChatMessageInfoScreenActivity (com.cometchat.pro.uikit.ui_components.messages.message_information.CometChatMessageInfoScreenActivity)2