/** * The number of reactions on this post. * * @return The number of reactions on this post. */ public Long getReactionsCount() { if (getReactions() != null) { return getReactions().getTotalCount(); } return 0L; }
/** * Post-JSON-mapping operation that populates the {@code messageTags} field "by hand". * <p> * This is a temporary hack until we have formal public support for it/improved {@code JsonMapper} capabilities so it * can handle arbitrary Map types. * * @param jsonMapper * The {@code JsonMapper} that was used to map to this type. * @since 1.6.11 */ @JsonMappingCompleted protected void jsonMappingCompleted(JsonMapper jsonMapper) { if (rawMessageTags != null) { messageTags = createTags(rawMessageTags, jsonMapper); } if (rawStoryTags != null) { storyTags = createTags(rawStoryTags, jsonMapper); } }