Show / Hide Table of Contents

Class UsersResource.SessionsResource

The "sessions" collection of methods.

Inheritance
object
UsersResource.SessionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Fitness.v1
Assembly: Google.Apis.Fitness.v1.dll
Syntax
public class UsersResource.SessionsResource

Constructors

SessionsResource(IClientService)

Constructs a new resource.

Declaration
public SessionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string, string)

Deletes a session specified by the given session ID.

Declaration
public virtual UsersResource.SessionsResource.DeleteRequest Delete(string userId, string sessionId)
Parameters
Type Name Description
string userId

Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

string sessionId

The ID of the session to be deleted.

Returns
Type Description
UsersResource.SessionsResource.DeleteRequest

List(string)

Lists sessions previously created.

Declaration
public virtual UsersResource.SessionsResource.ListRequest List(string userId)
Parameters
Type Name Description
string userId

List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

Returns
Type Description
UsersResource.SessionsResource.ListRequest

Update(Session, string, string)

Updates or insert a given session.

Declaration
public virtual UsersResource.SessionsResource.UpdateRequest Update(Session body, string userId, string sessionId)
Parameters
Type Name Description
Session body

The body of the request.

string userId

Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

string sessionId

The ID of the session to be created.

Returns
Type Description
UsersResource.SessionsResource.UpdateRequest
In this article
Back to top Generated by DocFX