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