C# Класс PodioAPI.Services.RatingService

Показать файл Открыть проект

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

Метод Описание
AddRating ( string refType, int refId, string ratingType, int value ) : Task

Add a new rating of the user to the object. The rating can be one of many different types. For more details see the area.

Podio API Reference: https://developers.podio.com/doc/ratings/add-rating-22377

GetAllRatings ( string refType, int refId ) : Task

Returns all the ratings for the given object. It will only return the ratings that are enabled for the object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-all-ratings-22376

GetLikeCount ( string refType, int refId ) : Task

Get the number of users who liked the given object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-like-count-32161225

GetRating ( string refType, int refId, string ratingType, int userId ) : Task

Returns the rating value for the given rating type, object and user.

Podio API Reference: https://developers.podio.com/doc/ratings/get-rating-22407

GetRatingOwn ( string refType, int refId, string ratingType ) : Task

Returns the active users rating value for the given rating type and object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-rating-own-84128

GetRatings ( string refType, int refId, string ratingType ) : Task

Get the rating average (for fivestar) and totals for the given rating type on the specified object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-ratings-22375

GetWhoLikedAnObject ( string refType, int refId, int limit = 10 ) : Task>

Get a list of profiles of everyone that liked the given object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-who-liked-an-object-29007011

RatingService ( Podio currentInstance ) : System.Collections.Generic
RemoveRating ( string refType, int refId, string ratingType ) : Task

Removes a previous rating of the given type by the user of the specified object.

Podio API Reference: https://developers.podio.com/doc/ratings/remove-rating-22342

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

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

Add a new rating of the user to the object. The rating can be one of many different types. For more details see the area.

Podio API Reference: https://developers.podio.com/doc/ratings/add-rating-22377

public AddRating ( string refType, int refId, string ratingType, int value ) : Task
refType string
refId int
ratingType string
value int The value of the rating, see the area for information on the value to use.
Результат Task

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

Returns all the ratings for the given object. It will only return the ratings that are enabled for the object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-all-ratings-22376

public GetAllRatings ( string refType, int refId ) : Task
refType string
refId int
Результат Task

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

Get the number of users who liked the given object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-like-count-32161225

public GetLikeCount ( string refType, int refId ) : Task
refType string
refId int
Результат Task

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

Returns the rating value for the given rating type, object and user.

Podio API Reference: https://developers.podio.com/doc/ratings/get-rating-22407

public GetRating ( string refType, int refId, string ratingType, int userId ) : Task
refType string
refId int
ratingType string
userId int
Результат Task

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

Returns the active users rating value for the given rating type and object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-rating-own-84128

public GetRatingOwn ( string refType, int refId, string ratingType ) : Task
refType string
refId int
ratingType string
Результат Task

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

Get the rating average (for fivestar) and totals for the given rating type on the specified object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-ratings-22375

public GetRatings ( string refType, int refId, string ratingType ) : Task
refType string
refId int
ratingType string
Результат Task

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

Get a list of profiles of everyone that liked the given object.

Podio API Reference: https://developers.podio.com/doc/ratings/get-who-liked-an-object-29007011

public GetWhoLikedAnObject ( string refType, int refId, int limit = 10 ) : Task>
refType string
refId int
limit int How many profiles that liked something to return. Default value: 10
Результат Task>

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

public RatingService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
Результат System.Collections.Generic

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

Removes a previous rating of the given type by the user of the specified object.

Podio API Reference: https://developers.podio.com/doc/ratings/remove-rating-22342

public RemoveRating ( string refType, int refId, string ratingType ) : Task
refType string
refId int
ratingType string
Результат Task