예제 #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));
        }
예제 #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);
 }
예제 #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);
 }