Connectster.Shopify.ShopifyCommunicator.GetProduct C# (CSharp) Метод

GetProduct() публичный Метод

public GetProduct ( ShopifyStoreAuth storeAuth, int productId ) : ShopifyResponse
storeAuth ShopifyStoreAuth
productId int
Результат ShopifyResponse
        public ShopifyResponse<ShopifyProduct> GetProduct(ShopifyStoreAuth storeAuth, int productId)
        {
            if (productId < 0)
            {
                Logger.ErrorFormat(
                    "ShopifyCommunicator::GetProduct() was passed a negative productId ({0}), returning null.",
                    productId);
                return null;
            }

            XmlDocument xDoc =
                ShopifyGet(
                    (_protocol + storeAuth.StoreSubDomain + _domain + "/admin/products/" + productId + ".xml"),
                    HashString(_appAuth.Secret + storeAuth.StoreAuthToken));

            return new ShopifyResponse<ShopifyProduct>(xDoc);
        }