public InventoryBasicDataController(IStoreTypes storeTypes, IBrands brands, IItemTypes itemTypes, IUnits units, ICompoundUnits compoundUnits) //, ICompoundUnits compoundUnits
 {
     _compoundUnits = compoundUnits;
     _itemTypes     = itemTypes;
     _brands        = brands;
     _units         = units;
     _storeTypes    = storeTypes;
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// Reference to the ZtherApiIntegration.API.IBrands.
 /// </param>
 /// <param name='code'>
 /// Required.
 /// </param>
 public static Brand GetBrandByCodeAsync(this IBrands operations, string code)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IBrands)s).GetBrandByCodeAsyncAsync(code);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 5
0
 public ProductInsertService(IBrands brands, IProducts products)
 {
     _brands   = brands;
     _products = products;
 }
Exemplo n.º 6
0
 public BrandsController(IBrands brands)
 {
     _brands = brands;
 }
Exemplo n.º 7
0
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.IBrands.
        /// </param>
        /// <param name='code'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Brand> GetBrandByCodeAsyncAsync(this IBrands operations, string code, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.Brand> result = await operations.GetBrandByCodeAsyncWithOperationResponseAsync(code, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }