예제 #1
0
            /// <param name='operations'>
            /// The operations group for this extension method.
            /// </param>
            /// <param name='q'>
            /// </param>
            /// <param name='unique'>
            /// Possible values include: 'cards', 'art', 'prints'
            /// </param>
            /// <param name='order'>
            /// Possible values include: 'name', 'set', 'released', 'rarity', 'color',
            /// 'usd', 'tix', 'eur', 'cmc', 'power', 'toughness', 'edhrec', 'artist'
            /// </param>
            /// <param name='dir'>
            /// Possible values include: 'auto', 'asc', 'desc'
            /// </param>
            /// <param name='includeExtras'>
            /// </param>
            /// <param name='page'>
            /// </param>
            public static CardList Search(this ICards operations, string q, UniqueStrategy? unique = default(UniqueStrategy?), SortOrder? order = default(SortOrder?), SortDirection? dir = default(SortDirection?), bool? includeExtras = default(bool?), int? page = default(int?))
            {
				try {
				return operations.SearchAsync(q, unique, order, dir, includeExtras, page).GetAwaiter().GetResult();
				} catch {

				}
				return new CardList();
            }