Package com.streamreduce.core.model.messages

Examples of com.streamreduce.core.model.messages.SobaMessage.addComment()


    @Override
    public void addCommentToMessage(Account account, ObjectId messageId, MessageComment comment, Set<String> hashtags)
            throws MessageNotFoundException {
        SobaMessage message = getMessage(account, messageId);
        message.addComment(comment);
        if (hashtags != null && !hashtags.isEmpty()) {
            message.addHashtags(hashtags);
        }
        updateMessage(account, message);
        emailService.sendCommentAddedEmail(account, message, comment);
View Full Code Here


        int num = 0;
        SobaMessage sobaMessage = applicationManager.getMessageService().getMessage(getTestUser().getAccount(),
                userMessage.getMessageId());

        sobaMessage.addComment(new MessageComment(getTestUser(), "Some comment from test user"));
        num = sobaMessage.getComments().size();
        applicationManager.getMessageService().updateMessage(getTestUser().getAccount(), sobaMessage);

        String url = getUrl() + "/" + userMessage.getMessageId() + "/comment";
        String response = makeRequest(url, "GET", null, authToken);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.