C# Class Net.Pokeshot.JiveSdk.Clients.IdeaVotesClient

Inheritance: JiveClient
ファイルを表示 Open project: jivesoftware/JiveDotNetSDK

Private Properties

Property Type Description

Public Methods

Method Description
CreateVote ( int contentID, IdeaVote idea_vote ) : void

Cast a vote on the specified idea, replacing any previous vote by the requesting person. The incoming JSON must include a boolean "promote" field that is true if the requestor is promoting this idea, or false if the requestor is demoting it.

GetVotes ( int contentID, int count = 25, int startIndex, List fields = null ) : List

Return a paginated list of votes on the specified idea.

IdeaVotesClient ( string communityUrl, NetworkCredential credentials ) : System

Method Details

CreateVote() public method

Cast a vote on the specified idea, replacing any previous vote by the requesting person. The incoming JSON must include a boolean "promote" field that is true if the requestor is promoting this idea, or false if the requestor is demoting it.
public CreateVote ( int contentID, IdeaVote idea_vote ) : void
contentID int The ID of the content object for which to cast a "promote" vote
idea_vote Net.Pokeshot.JiveSdk.Models.IdeaVote The vote entity containing the promote field (assumed to be true if not present)
return void

GetVotes() public method

Return a paginated list of votes on the specified idea.
public GetVotes ( int contentID, int count = 25, int startIndex, List fields = null ) : List
contentID int The ID of the idea content object for which to retrieve votes
count int The number of votes to be retrieved per Jive HTTP request
startIndex int The zero-relative index of the first vote to be retrieved
fields List The names of the fields to be returned
return List

IdeaVotesClient() public method

public IdeaVotesClient ( string communityUrl, NetworkCredential credentials ) : System
communityUrl string
credentials System.Net.NetworkCredential
return System