Class UsersResource.SessionsResource.UpdateRequest
Updates or insert a given session.
Inheritance
UsersResource.SessionsResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.Fitness.v1
Assembly: Google.Apis.Fitness.v1.dll
Syntax
public class UsersResource.SessionsResource.UpdateRequest : FitnessBaseServiceRequest<Session>, IClientServiceRequest<Session>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, Session, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, Session body, string userId, string sessionId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Session | body | |
string | userId | |
string | sessionId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Session>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Session>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Session>.RestPath
SessionId
The ID of the session to be created.
Declaration
[RequestParameter("sessionId", RequestParameterType.Path)]
public virtual string SessionId { get; }
Property Value
Type | Description |
---|---|
string |
UserId
Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Session>.GetBody()
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()