Show / Hide Table of Contents

Class UsersResource.ThreadsResource.ListRequest

Lists the threads in the user's mailbox.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<ListThreadsResponse>
GmailBaseServiceRequest<ListThreadsResponse>
UsersResource.ThreadsResource.ListRequest
Implements
IClientServiceRequest<ListThreadsResponse>
IClientServiceRequest
Inherited Members
GmailBaseServiceRequest<ListThreadsResponse>.Alt
GmailBaseServiceRequest<ListThreadsResponse>.Fields
GmailBaseServiceRequest<ListThreadsResponse>.Key
GmailBaseServiceRequest<ListThreadsResponse>.OauthToken
GmailBaseServiceRequest<ListThreadsResponse>.PrettyPrint
GmailBaseServiceRequest<ListThreadsResponse>.QuotaUser
GmailBaseServiceRequest<ListThreadsResponse>.UserIp
ClientServiceRequest<ListThreadsResponse>.Execute()
ClientServiceRequest<ListThreadsResponse>.ExecuteAsStream()
ClientServiceRequest<ListThreadsResponse>.ExecuteAsync()
ClientServiceRequest<ListThreadsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListThreadsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListThreadsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListThreadsResponse>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<ListThreadsResponse>.GenerateRequestUri()
ClientServiceRequest<ListThreadsResponse>.GetBody()
ClientServiceRequest<ListThreadsResponse>.GetDefaultETagAction(String)
ClientServiceRequest<ListThreadsResponse>.ETagAction
ClientServiceRequest<ListThreadsResponse>.ModifyRequest
ClientServiceRequest<ListThreadsResponse>.RequestParameters
ClientServiceRequest<ListThreadsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
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.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class ListRequest : GmailBaseServiceRequest<ListThreadsResponse>, IClientServiceRequest<ListThreadsResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService, String)

Constructs a new List request.

Declaration
public ListRequest(IClientService service, string userId)
Parameters
Type Name Description
IClientService service
System.String userId

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.ListThreadsResponse>.HttpMethod

IncludeSpamTrash

Include threads from SPAM and TRASH in the results.

Declaration
[RequestParameter("includeSpamTrash", RequestParameterType.Query)]
public virtual bool? IncludeSpamTrash { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

LabelIds

Only return threads with labels that match all of the specified label IDs.

Declaration
[RequestParameter("labelIds", RequestParameterType.Query)]
public virtual Repeatable<string> LabelIds { get; set; }
Property Value
Type Description
Repeatable<System.String>

MaxResults

Maximum number of threads to return.

Declaration
[RequestParameter("maxResults", RequestParameterType.Query)]
public virtual long? MaxResults { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.ListThreadsResponse>.MethodName

PageToken

Page token to retrieve a specific page of results in the list.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
System.String

Q

Only return threads matching the specified query. Supports the same query format as the Gmail search box. For example, &quot;from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.

Declaration
[RequestParameter("q", RequestParameterType.Query)]
public virtual string Q { get; set; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Gmail.v1.Data.ListThreadsResponse>.RestPath

UserId

The user's email address. The special value me can be used to indicate the authenticated user.

Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
Type Description
System.String

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Gmail.v1.GmailBaseServiceRequest<Google.Apis.Gmail.v1.Data.ListThreadsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top