Accounts.NotImplemented, Accounts.QueryRequest, Accounts.SuggestAccountsRequest
Constructor and Description |
---|
NotImplemented() |
Modifier and Type | Method and Description |
---|---|
AccountApi |
create(AccountInput input)
Create a new account.
|
AccountApi |
create(String username)
Create a new account with the given username and default options.
|
AccountApi |
id(int id) |
AccountApi |
id(String id)
Look up an account by ID.
|
Accounts.QueryRequest |
query()
Query users.
|
Accounts.QueryRequest |
query(String query)
Query users.
|
AccountApi |
self()
Look up the account of the current in-scope user.
|
Accounts.SuggestAccountsRequest |
suggestAccounts()
Suggest users for a given query.
|
Accounts.SuggestAccountsRequest |
suggestAccounts(String query)
Suggest users for a given query.
|
public AccountApi id(String id)
Accounts
Note: This method eagerly reads the account. Methods that mutate the
account do not necessarily re-read the account. Therefore, calling a getter method on an
instance after calling a mutation method on that same instance is not guaranteed to reflect the
mutation. It is not recommended to store references to AccountApi
instances.
public AccountApi id(int id)
id
in interface Accounts
Accounts.id(String)
public AccountApi self()
Accounts
self
in interface Accounts
Accounts.id(String)
public AccountApi create(String username)
Accounts
public AccountApi create(AccountInput input)
Accounts
public Accounts.SuggestAccountsRequest suggestAccounts()
Accounts
Example code: suggestAccounts().withQuery("Reviewer").withLimit(5).get()
suggestAccounts
in interface Accounts
public Accounts.SuggestAccountsRequest suggestAccounts(String query)
Accounts
Shortcut API for suggestAccounts().withQuery(String)
.
suggestAccounts
in interface Accounts
Accounts.suggestAccounts()
public Accounts.QueryRequest query()
Accounts
Example code: query().withQuery("name:John email:example.com").withLimit(5).get()
public Accounts.QueryRequest query(String query)
Accounts
Shortcut API for query().withQuery(String)
.
query
in interface Accounts
Accounts.query()