public boolean isGroupDefaultMuted() { return (getMetadata() != null && getMetadata().get(ChannelMetadata.MUTE) != null && getMetadata().get(ChannelMetadata.MUTE).equalsIgnoreCase("true")); }
contentValues.put(MobiComDatabaseHelper.UNREAD_COUNT, channel.getUnreadCount()); if (channel.getMetadata() != null) { contentValues.put(MobiComDatabaseHelper.CHANNEL_META_DATA, GsonUtils.getJsonFromObject(channel.getMetadata(), Map.class)); if(channel.getMetadata().containsKey(Channel.AL_CATEGORY)){ contentValues.put(MobiComDatabaseHelper.AL_CATEGORY, channel.getMetadata().get(Channel.AL_CATEGORY));
public void updateContextBasedGroup() { if (channel != null) { Channel channelInfo = ChannelService.getInstance(getActivity()).getChannelInfo(channel.getKey()); if ((Channel.GroupType.GROUPOFTWO.getValue().equals(channelInfo.getType())) && channel.isContextBasedChat()) { Conversation conversation = new Conversation(); TopicDetail topic = new TopicDetail(); topic.setTitle(channelInfo.getMetadata().get(Channel.GroupMetaDataType.TITLE.getValue())); topic.setSubtitle(channelInfo.getMetadata().get(Channel.GroupMetaDataType.PRICE.getValue())); topic.setLink(channelInfo.getMetadata().get(Channel.GroupMetaDataType.LINK.getValue())); conversation.setTopicDetail(topic.getJson()); conversationList.get(0).setTopicDetail(topic.getJson()); applozicContextSpinnerAdapter.notifyDataSetChanged(); } } }
conversationList = conversations; if (channel != null && channel.getMetadata() != null && !channel.getMetadata().isEmpty()) { if (channel.isContextBasedChat()) { Conversation conversation = new Conversation(); TopicDetail topic = new TopicDetail(); topic.setTitle(channel.getMetadata().get(Channel.GroupMetaDataType.TITLE.getValue())); topic.setSubtitle(channel.getMetadata().get(Channel.GroupMetaDataType.PRICE.getValue())); topic.setLink(channel.getMetadata().get(Channel.GroupMetaDataType.LINK.getValue())); conversation.setTopicDetail(topic.getJson()); conversationList = new ArrayList<>();