mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
fix get_provider_info docs
This commit is contained in:
@@ -128,9 +128,7 @@ impl CommandApi {
|
|||||||
|
|
||||||
/// Returns provider for the given domain.
|
/// Returns provider for the given domain.
|
||||||
///
|
///
|
||||||
/// This function looks up domain in offline database first. If not
|
/// This function looks up domain in offline database.
|
||||||
/// found, it queries MX record for the domain and looks up offline
|
|
||||||
/// database for MX domains.
|
|
||||||
///
|
///
|
||||||
/// For compatibility, email address can be passed to this function
|
/// For compatibility, email address can be passed to this function
|
||||||
/// instead of the domain.
|
/// instead of the domain.
|
||||||
@@ -156,7 +154,7 @@ impl CommandApi {
|
|||||||
ctx.is_configured().await
|
ctx.is_configured().await
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get system info for an account.
|
/// Get system info for an account.
|
||||||
async fn get_info(&self, account_id: u32) -> Result<BTreeMap<&'static str, String>> {
|
async fn get_info(&self, account_id: u32) -> Result<BTreeMap<&'static str, String>> {
|
||||||
let ctx = self.get_context(account_id).await?;
|
let ctx = self.get_context(account_id).await?;
|
||||||
ctx.get_info().await
|
ctx.get_info().await
|
||||||
|
|||||||
@@ -76,9 +76,7 @@ export class RawClient {
|
|||||||
/**
|
/**
|
||||||
* Returns provider for the given domain.
|
* Returns provider for the given domain.
|
||||||
*
|
*
|
||||||
* This function looks up domain in offline database first. If not
|
* This function looks up domain in offline database.
|
||||||
* found, it queries MX record for the domain and looks up offline
|
|
||||||
* database for MX domains.
|
|
||||||
*
|
*
|
||||||
* For compatibility, email address can be passed to this function
|
* For compatibility, email address can be passed to this function
|
||||||
* instead of the domain.
|
* instead of the domain.
|
||||||
@@ -94,7 +92,9 @@ export class RawClient {
|
|||||||
return (this._transport.request('is_configured', [accountId] as RPC.Params)) as Promise<boolean>;
|
return (this._transport.request('is_configured', [accountId] as RPC.Params)) as Promise<boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get system info for an account.
|
||||||
|
*/
|
||||||
public getInfo(accountId: T.U32): Promise<Record<string,string>> {
|
public getInfo(accountId: T.U32): Promise<Record<string,string>> {
|
||||||
return (this._transport.request('get_info', [accountId] as RPC.Params)) as Promise<Record<string,string>>;
|
return (this._transport.request('get_info', [accountId] as RPC.Params)) as Promise<Record<string,string>>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user