Class VideosResource.RateRequest
Adds a like or dislike rating to a video or removes a rating from a video.
Inheritance
VideosResource.RateRequest
  Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class VideosResource.RateRequest : YouTubeBaseServiceRequest<string>, IClientServiceRequest<string>, IClientServiceRequestConstructors
RateRequest(IClientService, string, RatingEnum)
Constructs a new Rate request.
Declaration
public RateRequest(IClientService service, string id, VideosResource.RateRequest.RatingEnum rating)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | |
| string | id | |
| VideosResource.RateRequest.RatingEnum | rating | 
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Id
Declaration
[RequestParameter("id", RequestParameterType.Query)]
public virtual string Id { get; }Property Value
| Type | Description | 
|---|---|
| string | 
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Rating
Declaration
[RequestParameter("rating", RequestParameterType.Query)]
public virtual VideosResource.RateRequest.RatingEnum Rating { get; }Property Value
| Type | Description | 
|---|---|
| VideosResource.RateRequest.RatingEnum | 
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Methods
InitParameters()
Initializes Rate parameter list.
Declaration
protected override void InitParameters()