public static googleModel.ProductsCustomBatchRequestEntry ToBatchEntryModel(this googleModel.Product product, string method = _insertMethod)
        {
            var retVal = new googleModel.ProductsCustomBatchRequestEntry();
            if (method.Equals(_insertMethod))
                retVal.Product = product;
            else
                retVal.ProductId = product.Id;

            retVal.Method = method;

            return retVal;
        }
Beispiel #2
0
        public static googleModel.ProductsCustomBatchRequestEntry ToBatchEntryModel(this googleModel.Product product, string method = _insertMethod)
        {
            var retVal = new googleModel.ProductsCustomBatchRequestEntry();

            if (method.Equals(_insertMethod))
            {
                retVal.Product = product;
            }
            else
            {
                retVal.ProductId = product.Id;
            }

            retVal.Method = method;

            return(retVal);
        }