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

Inheritance: JiveClient
Afficher le fichier Open project: jivesoftware/JiveDotNetSDK

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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)
Résultat void

GetVotes() public méthode

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
Résultat List

IdeaVotesClient() public méthode

public IdeaVotesClient ( string communityUrl, NetworkCredential credentials ) : System
communityUrl string
credentials System.Net.NetworkCredential
Résultat System