Class UsersResource.SettingsResource.FiltersResource
The "filters" collection of methods.
public class UsersResource.SettingsResource.FiltersResource
- Inheritance
-
UsersResource.SettingsResource.FiltersResource
- Inherited Members
Constructors
FiltersResource(IClientService)
Constructs a new resource.
public FiltersResource(IClientService service)
Parameters
service
IClientService
Methods
Create(Filter, string)
Creates a filter. Note: you can only create a maximum of 1,000 filters.
public virtual UsersResource.SettingsResource.FiltersResource.CreateRequest Create(Filter body, string userId)
Parameters
body
FilterThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
Delete(string, string)
Deletes a filter.
public virtual UsersResource.SettingsResource.FiltersResource.DeleteRequest Delete(string userId, string id)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
id
stringThe ID of the filter to be deleted.
Returns
Get(string, string)
Gets a filter.
public virtual UsersResource.SettingsResource.FiltersResource.GetRequest Get(string userId, string id)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
id
stringThe ID of the filter to be fetched.
Returns
List(string)
Lists the message filters of a Gmail user.
public virtual UsersResource.SettingsResource.FiltersResource.ListRequest List(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.