C# Class PodioAPI.Services.RatingService

Afficher le fichier Open project: podio/podio-dotnet

Méthodes publiques

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

Method Details

AddRating() public méthode

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.
Résultat Task

GetAllRatings() public méthode

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

GetLikeCount() public méthode

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

GetRating() public méthode

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

GetRatingOwn() public méthode

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

GetRatings() public méthode

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

GetWhoLikedAnObject() public méthode

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

RatingService() public méthode

public RatingService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
Résultat System.Collections.Generic

RemoveRating() public méthode

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