/// <summary> /// Query balance /// </summary> /// <param name="account">Sms account</param> /// <param name="queryBalanceOptions">Query balance options</param> /// <returns>Return query balance result</returns> public static async Task <QuerySmsBalanceResult> QueryBalanceAsync(SmsAccount account, QueryBalanceOptions queryBalanceOptions) { var smsProvider = GetSmsProvider(); return(await ExecuteAsync(account, queryBalanceOptions, smsProvider.QueryBalanceAsync).ConfigureAwait(false)); }
/// <summary> /// Query balance /// </summary> /// <param name="account">Sms account</param> /// <param name="queryBalanceOptions">Query balance options</param> /// <returns>Return query balance result</returns> public static QuerySmsBalanceResult QueryBalance(SmsAccount account, QueryBalanceOptions queryBalanceOptions) { return(QueryBalanceAsync(account, queryBalanceOptions).Result); }
/// <summary> /// Query balance /// </summary> /// <param name="queryBalanceOptions">Query balance options</param> /// <returns>Return query balance result</returns> public static QuerySmsBalanceResult QueryBalance(QueryBalanceOptions queryBalanceOptions) { return(QueryBalanceAsync(queryBalanceOptions).Result); }