Esempio n. 1
0
 /// <summary>
 /// Performs the query to the provider, passing the required arguments.
 /// </summary>
 /// <param name="provider">The API provider to use.</param>
 /// <param name="callback">The callback invoked on the UI thread after a result has been queried.</param>
 protected virtual void QueryAsyncCore(APIProvider provider, QueryCallback <T> callback)
 {
     provider.QueryMethodAsync <T>(m_method, callback);
 }
Esempio n. 2
0
        /// <summary>
        /// Performs the query to the provider, passing the required arguments.
        /// </summary>
        /// <param name="provider">The API provider to use.</param>
        /// <param name="callback">The callback invoked on the UI thread after a result has been queried.</param>
        protected override void QueryAsyncCore(APIProvider provider, QueryCallback <T> callback)
        {
            var account = m_character.Identity.Account;

            provider.QueryMethodAsync <T>(m_method, account.UserID, account.APIKey, m_character.CharacterID, callback);
        }
 /// <summary>
 /// Performs the query to the provider, passing the required arguments.
 /// </summary>
 /// <param name="provider">The API provider to use.</param>
 /// <param name="callback">The callback invoked on the UI thread after a result has been queried.</param>
 protected override void QueryAsyncCore(APIProvider provider, QueryCallback <T> callback)
 {
     provider.QueryMethodAsync <T>(m_method, m_account.UserID, m_account.APIKey, callback);
 }