Exemple #1
0
        /// <summary>
        /// Query for Managed Accounts
        /// </summary>
        /// <param name="accountId">the account Id intended on the request</param>
        /// <returns>the retrieved ManagedAccountsFeed</returns>
        public ManagedAccountsFeed QueryManagedAccounts(string accountId)
        {
            ManagedAccountsQuery query = new ManagedAccountsQuery();

            query.AccountId = accountId;
            return(QueryManagedAccounts(query));
        }
Exemple #2
0
        /// <summary>
        /// Query for Managed Accounts
        /// </summary>
        /// <param name="feedQuery">The FeedQuery to use</param>
        /// <returns>the retrieved ManagedAccountsFeed</returns>
        public ManagedAccountsFeed QueryManagedAccounts(ManagedAccountsQuery feedQuery)
        {
            if (feedQuery.AccountId == null)
            {
                feedQuery.AccountId = AccountId;
            }

            return(base.Query(feedQuery) as ManagedAccountsFeed);
        }