Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }