Infinity.RequestResult¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Infinity.RequestResult¶
Infinity.RequestResult
is an opaque data type. You should only access it via the public API functions.- classmethod make_add_node(browser, iter, new_node)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node to which a node has been added.new_node (
Infinity.BrowserIter
) – An iterator pointing to the new node.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for an “add-node” request, seeInfinity.Browser.add_note
() orInfinity.Browser.add_subdirectory
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_create_acl_account(browser, account, certificate)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.account (
Infinity.AclAccount
) – The createdInfinity.AclAccount
.certificate (
Infinity.CertificateChain
) – The certificate which can be used to log into account.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “create-acl-account” request, seeInfinity.Browser.create_acl_account
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_explore_node(browser, iter)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node to which was explored.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for an “explore-node” request, seeInfinity.Browser.explore
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_join_user(proxy, user)¶
- Parameters:
proxy (
Infinity.SessionProxy
) – AInfinity.SessionProxy
.user (
Infinity.User
) – The joined user.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “join-user” request, seeInfinity.SessionProxy.join_user
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to proxy.
- classmethod make_lookup_acl_accounts(browser, accounts)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.accounts ([
Infinity.AclAccount
]) – The list of accounts.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “lookup-acl-accounts” request, seeInfinity.Browser.lookup_acl_accounts
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_query_acl(browser, iter, sheet_set)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node whose ACL was queried.sheet_set (
Infinity.AclSheetSet
) – The sheet set for the queried node.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “query-acl” request, seeInfinity.Browser.query_acl
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser and proxy.
- classmethod make_query_acl_account_list(browser, accounts, does_notifications)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.accounts ([
Infinity.AclAccount
]) – The list of accounts.does_notifications (
bool
) – Whether the server notifies the clients about added or removed accounts.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “query-acl-account-list” request, seeInfinity.Browser.query_acl_account_list
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_remove_acl_account(browser, account)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.account (
Infinity.AclAccount
) – The removedInfinity.AclAccount
.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “remove-acl-account” request, seeInfinity.Browser.remove_acl_account
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_remove_node(browser, iter)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node to which was removed.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for an “remove-node” request, seeInfinity.Browser.remove_node
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_save_session(browser, iter)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node to which was saved.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “save-session” request, see infc_browser_iter_save_session(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser.
- classmethod make_set_acl(browser, iter)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node whose ACL was set.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “set-acl” request, seeInfinity.Browser.set_acl
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser and proxy.
- classmethod make_subscribe_chat(browser, proxy)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.proxy (
Infinity.SessionProxy
) – TheInfinity.SessionProxy
for the subscribed session.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “subscribe-chat” request, see infc_browser_subscribe_chat(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser and proxy.
- classmethod make_subscribe_session(browser, iter, proxy)¶
- Parameters:
browser (
Infinity.Browser
) – AInfinity.Browser
.iter (
Infinity.BrowserIter
) – An iterator pointing to the node to which a subscription was made.proxy (
Infinity.SessionProxy
) – TheInfinity.SessionProxy
for the subscription.
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a new
Infinity.RequestResult
for a “subscribe-session” request, seeInfinity.Browser.subscribe
(). TheInfinity.RequestResult
object is only valid as long as the caller maintains a reference to browser and proxy.
- classmethod new(data, len)¶
- Parameters:
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
This function creates a new
Infinity.RequestResult
with the given data. The function takes ownership of the data which must have been allocated withGLib.malloc
(). The memory segment at data must not hold any object references or require deinitialization in a way other than withGLib.free
().Under normal circumstances, this function should not be used, and instead one of the inf_request_result_make_*() functions should be used.
- copy()¶
- Returns:
A new
Infinity.RequestResult
. Free withInfinity.RequestResult.free
().- Return type:
Creates a copy of self.
- free()¶
Releases all resources associated with self.
- get()¶
- Returns:
A pointer to the request data.
- Return type:
Returns the data of self, as given to
Infinity.RequestResult.new
(). The length of the data is stored in length. Normally this function does not need to be used and one of the inf_request_result_get_*() functions should be used instead.
- get_add_node()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
, new_node:Infinity.BrowserIter
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_add_node
().
- get_create_acl_account()¶
- Returns:
- browser:
Output value of the browser that made the request, or
None
.- account:
Output value for the created
Infinity.AclAccount
, orNone
.- certificate:
Output value for the certificate which can be used to log into the account, or
None
.
- Return type:
(browser:
Infinity.Browser
, account:Infinity.AclAccount
, certificate:Infinity.CertificateChain
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_create_acl_account
().
- get_explore_node()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_explore_node
().
- get_join_user()¶
- Returns:
- proxy:
Output value of the session proxy that made the request, or
None
.- user:
Output value for the joined user.
- Return type:
(proxy:
Infinity.SessionProxy
, user:Infinity.User
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_join_user
().
- get_lookup_acl_accounts()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, accounts: [Infinity.AclAccount
])
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_lookup_acl_accounts
().
- get_query_acl()¶
- Returns:
- browser:
Output value of the browser that made the request, or
None
.- iter:
Output value for the node whose ACL was queried.
- sheet_set:
Output value for the node’s ACL sheets.
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
, sheet_set:Infinity.AclSheetSet
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_query_acl
().
- get_query_acl_account_list(does_notifications)¶
- Parameters:
does_notifications (
bool
) – Output value for the flag whether the server notifies the client about added or removed accounts, orNone
.- Returns:
- Return type:
(browser:
Infinity.Browser
, accounts: [Infinity.AclAccount
])
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_query_acl_account_list
().
- get_remove_acl_account()¶
- Returns:
- browser:
Output value of the browser that made the request, or
None
.- account:
Output value for the removed
Infinity.AclAccount
, orNone
.
- Return type:
(browser:
Infinity.Browser
, account:Infinity.AclAccount
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_remove_acl_account
().
- get_remove_node()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_remove_node
().
- get_save_session()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_save_session
().
- get_set_acl()¶
- Returns:
- browser:
Output value of the browser that made the request, or
None
.- iter:
Output value for the node whose ACL was set.
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_set_acl
().
- get_subscribe_chat()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, proxy:Infinity.SessionProxy
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_subscribe_chat
().
- get_subscribe_session()¶
- Returns:
- Return type:
(browser:
Infinity.Browser
, iter:Infinity.BrowserIter
, proxy:Infinity.SessionProxy
)
Decomposes self into its components. The object must have been created with
Infinity.RequestResult.make_subscribe_session
().