C# 클래스 Net.Pokeshot.JiveSdk.Clients.IdeaVotesClient

상속: JiveClient
파일 보기 프로젝트 열기: jivesoftware/JiveDotNetSDK

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