Class UsersResource.SessionsResource.ListRequest
Lists sessions previously created.
Inheritance
Inherited Members
Namespace: Google.Apis.Fitness.v1
Assembly: Google.Apis.Fitness.v1.dll
Syntax
public class UsersResource.SessionsResource.ListRequest : FitnessBaseServiceRequest<ListSessionsResponse>, IClientServiceRequest<ListSessionsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | userId |
Properties
ActivityType
If non-empty, only sessions with these activity types should be returned.
Declaration
[RequestParameter("activityType", RequestParameterType.Query)]
public virtual Repeatable<string> ActivityType { get; set; }
Property Value
| Type | Description |
|---|---|
| Repeatable<string> |
EndTime
An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned.
Declaration
[RequestParameter("endTime", RequestParameterType.Query)]
public virtual string EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
IncludeDeleted
If true, and if both startTime and endTime are omitted, session deletions will be returned.
Declaration
[RequestParameter("includeDeleted", RequestParameterType.Query)]
public virtual bool? IncludeDeleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
PageToken
The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
StartTime
An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned.
Declaration
[RequestParameter("startTime", RequestParameterType.Query)]
public virtual string StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
List 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
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()