/// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IRetailers.
 /// </param>
 public static BaseModelRetailer GetAllPremier(this IRetailers operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).GetAllPremierAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IRetailers.
 /// </param>
 /// <param name='brand'>
 /// Required.
 /// </param>
 /// <param name='country'>
 /// Required.
 /// </param>
 /// <param name='page'>
 /// Optional.
 /// </param>
 /// <param name='pagesize'>
 /// Optional.
 /// </param>
 public static RetailerList FindByCountry(this IRetailers operations, string brand, string country, int?page = null, int?pagesize = null)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).FindByCountryAsync(brand, country, page, pagesize);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IRetailers.
 /// </param>
 /// <param name='city'>
 /// Required.
 /// </param>
 /// <param name='state'>
 /// Required.
 /// </param>
 /// <param name='diamond'>
 /// Optional.
 /// </param>
 /// <param name='radius'>
 /// Optional.
 /// </param>
 /// <param name='page'>
 /// Optional.
 /// </param>
 /// <param name='pagesize'>
 /// Optional.
 /// </param>
 public static RetailerList FindByCityAndState(this IRetailers operations, string city, string state, bool?diamond = null, double?radius = null, int?page = null, int?pagesize = null)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).FindByCityAndStateAsync(city, state, diamond, radius, page, pagesize);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the ConsoleApp.IRetailers.
 /// </param>
 /// <param name='brand'>
 /// Required.
 /// </param>
 public static BaseModelRetailerLink GetAllWhereToBuy(this IRetailers operations, string brand)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).GetAllWhereToBuyAsync(brand);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IRetailers.
 /// </param>
 /// <param name='account'>
 /// Required.
 /// </param>
 /// <param name='country'>
 /// Optional.
 /// </param>
 public static Retailer GetByAccount(this IRetailers operations, string account, string country = null)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).GetByAccountAsync(account, country);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IRetailers.
 /// </param>
 /// <param name='code'>
 /// Required.
 /// </param>
 /// <param name='partial'>
 /// Optional.
 /// </param>
 public static BaseModelRetailer GetAllOnlineByBrand(this IRetailers operations, string code, bool?partial = null)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRetailers)s).GetAllOnlineByBrandAsync(code, partial);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the LandauWebAPI class.
 /// </summary>
 /// <param name='rootHandler'>
 /// Optional. The http client handler used to handle http transport.
 /// </param>
 /// <param name='handlers'>
 /// Optional. The set of delegating handlers to insert in the http
 /// client pipeline.
 /// </param>
 public LandauWebAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers)
     : base(rootHandler, handlers)
 {
     this._banners        = new Banners(this);
     this._brands         = new Brands(this);
     this._catalogs       = new Catalogs(this);
     this._colors         = new Colors(this);
     this._contactUs      = new ContactUsOperations(this);
     this._countries      = new Countries(this);
     this._groupOrders    = new GroupOrders(this);
     this._images         = new Images(this);
     this._productImages  = new ProductImages(this);
     this._productReviews = new ProductReviews(this);
     this._products       = new Products(this);
     this._questions      = new Questions(this);
     this._retailers      = new Retailers(this);
     this._seo            = new SeoOperations(this);
     this._signUps        = new SignUps(this);
     this._states         = new States(this);
     this._swatches       = new Swatches(this);
     this._baseUri        = new Uri("http://microsoft-apiapp5dcb282abbf74b72ad1667c2-staging.azurewebsites.net:80");
 }
 /// <summary>
 /// Initializes a new instance of the LandauPortalWebAPI class.
 /// </summary>
 /// <param name='rootHandler'>
 /// Optional. The http client handler used to handle http transport.
 /// </param>
 /// <param name='handlers'>
 /// Optional. The set of delegating handlers to insert in the http
 /// client pipeline.
 /// </param>
 public LandauPortalWebAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers)
     : base(rootHandler, handlers)
 {
     this._banners        = new Banners(this);
     this._brands         = new Brands(this);
     this._cache          = new Cache(this);
     this._catalogs       = new Catalogs(this);
     this._colors         = new Colors(this);
     this._contactUs      = new ContactUsOperations(this);
     this._countries      = new Countries(this);
     this._emailFavorites = new EmailFavorites(this);
     this._groupOrders    = new GroupOrders(this);
     this._images         = new Images(this);
     this._productImages  = new ProductImages(this);
     this._productReviews = new ProductReviews(this);
     this._products       = new Products(this);
     this._questions      = new Questions(this);
     this._retailers      = new Retailers(this);
     this._seo            = new SeoOperations(this);
     this._signUps        = new SignUps(this);
     this._states         = new States(this);
     this._swatches       = new Swatches(this);
     this._baseUri        = new Uri(API_ENDPOINT);
 }
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.IRetailers.
        /// </param>
        /// <param name='city'>
        /// Required.
        /// </param>
        /// <param name='state'>
        /// Required.
        /// </param>
        /// <param name='diamond'>
        /// Optional.
        /// </param>
        /// <param name='radius'>
        /// Optional.
        /// </param>
        /// <param name='page'>
        /// Optional.
        /// </param>
        /// <param name='pagesize'>
        /// Optional.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <RetailerList> FindByCityAndStateAsync(this IRetailers operations, string city, string state, bool?diamond = null, double?radius = null, int?page = null, int?pagesize = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.RetailerList> result = await operations.FindByCityAndStateWithOperationResponseAsync(city, state, diamond, radius, page, pagesize, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the ConsoleApp.IRetailers.
        /// </param>
        /// <param name='brand'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <BaseModelRetailerLink> GetAllWhereToBuyAsync(this IRetailers operations, string brand, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.BaseModelRetailerLink> result = await operations.GetAllWhereToBuyWithOperationResponseAsync(brand, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.IRetailers.
        /// </param>
        /// <param name='account'>
        /// Required.
        /// </param>
        /// <param name='country'>
        /// Optional.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Retailer> GetByAccountAsync(this IRetailers operations, string account, string country = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.Retailer> result = await operations.GetByAccountWithOperationResponseAsync(account, country, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.IRetailers.
        /// </param>
        /// <param name='code'>
        /// Required.
        /// </param>
        /// <param name='partial'>
        /// Optional.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <BaseModelRetailer> GetAllOnlineByBrandAsync(this IRetailers operations, string code, bool?partial = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.BaseModelRetailer> result = await operations.GetAllOnlineByBrandWithOperationResponseAsync(code, partial, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.IRetailers.
        /// </param>
        /// <param name='brand'>
        /// Required.
        /// </param>
        /// <param name='country'>
        /// Required.
        /// </param>
        /// <param name='page'>
        /// Optional.
        /// </param>
        /// <param name='pagesize'>
        /// Optional.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <RetailerList> FindByCountryAsync(this IRetailers operations, string brand, string country, int?page = null, int?pagesize = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.RetailerList> result = await operations.FindByCountryWithOperationResponseAsync(brand, country, page, pagesize, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }