<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>ui.like Client Message</title><link>https://community.telligent.com/community/11/w/api-documentation/67125/ui-like-client-message</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>ui.like Client Message</title><link>https://community.telligent.com/community/11/w/api-documentation/67125/ui-like-client-message</link><pubDate>Tue, 19 Nov 2019 20:27:39 GMT</pubDate><guid isPermaLink="false">a422af58-d043-4597-ad77-90f731d87c20</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67125/ui-like-client-message#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:27:39&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="ui_like_Message" name="ui_like_Message"&gt;&lt;/a&gt;ui.like Message&lt;/h3&gt;
&lt;p&gt;[[messaging JavaScript API Module|Client-side message]] raised and consumed by the [[evolutionLike jQuery Plugin|jQuery.evolutionLike plugin]], allowing multiple instances of the plugin to stay in synchronization. The message is raised when the user likes or unlikes a piece of content. Other scripts can also handle this event.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.messaging.subscribe(&amp;#39;ui.like&amp;#39;, function(data) {
    // handle the event
});
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;&lt;a id="Data" name="Data"&gt;&lt;/a&gt;Data&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;contentId&lt;/code&gt;: content id (string)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeId&lt;/code&gt;: content type id (string)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;typeId&lt;/code&gt;: content like type id (optional string)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;count&lt;/code&gt;: current count of likes for the item&lt;/li&gt;
&lt;li&gt;&lt;code&gt;liked&lt;/code&gt;: when true, message represents a like being added&lt;/li&gt;
&lt;li&gt;&lt;code&gt;message&lt;/code&gt;: text representation of current likes (e.g. X, Y, and Z others liked)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>