C# Класс Net.Pokeshot.JiveSdk.Clients.IdeaVotesClient

Наследование: JiveClient
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

CreateVote() публичный Метод

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)
Результат void

GetVotes() публичный Метод

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
Результат List

IdeaVotesClient() публичный Метод

public IdeaVotesClient ( string communityUrl, NetworkCredential credentials ) : System
communityUrl string
credentials System.Net.NetworkCredential
Результат System