Difference between revisions of "SocialVote"

From LongJump Support Wiki
imported>Aeric
m (moved SocialVotes to SocialVote)
imported>Aeric
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:__apiName__}}
{{DISPLAYTITLE:socialVote}}
Description...
Vote on a post ("like").


;Syntax:
;Syntax:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
Result result = Functions.__apiName__(String objectName, String fields, String criteria);
void Functions.socialVote(String id, String action);  
Result result = Functions.__apiName__(String objectName, String fields, String criteria
                            [, Parameters params] );
Result result = Functions.__apiName__(String objectName, String fields, String criteria);
Result result = Functions.__apiName__(String objectName, String fields, String criteria,
                            String sortBy, String sortOrder,
                            String sortBy2, String sortOrder2,
                            int offset, int numberOfRows);
</syntaxhighlight>
</syntaxhighlight>


;Parameters:
;Parameters:
:;objectName:The object name or identifier
:;id:The ID of the posted message you're voting on.
:;fields:A comma-separated list of names of the fields to retrieve
:;action:A string containing the voting action:
:;criteria:A [[JAVA API:Filter Expressions in JAVA APIs|filter expression]] that specifies records to select.
:::* "like"
:;params: An optional [[Parameters Class|Parameters]] object that contains additional parameters:
:::*''' param -''' ...
 
;Returns:
:[[Result Class|<tt>Result</tt>]] object<br/>
--or--
:An integer containing ...
:A string containing ...


;Throws:
;Throws:
:Exception
:Exception
;Example:This example ....
:<syntaxhighlight lang="java" enclose="div">
...
</syntaxhighlight>
<!--ACTIVATE THE CATEGORY BELOW FOR MAIN "COLLECTION" PAGES (not for individual methods)
<noinclude>
[[Category:Java API | __apiName__]]
</noinclude>
-->

Latest revision as of 02:28, 3 December 2011

Vote on a post ("like").

Syntax
void Functions.socialVote(String id, String action);
Parameters
id
The ID of the posted message you're voting on.
action
A string containing the voting action:
  • "like"
Throws
Exception