protected CreateBatchFeed ( List |
||
products | List |
the list of products to add to a feed |
operation | GDataBatchOperationType | |
Результат | Google.GData.ContentForShopping.ProductFeed |
protected ProductFeed CreateBatchFeed(List<ProductEntry> products, GDataBatchOperationType operation) {
ProductFeed feed = new ProductFeed(null, this);
foreach(ProductEntry product in products)
{
if (product.BatchData != null) {
product.BatchData.Type = operation;
}
else {
product.BatchData = new GDataBatchEntryData(operation);
}
feed.Entries.Add(product);
}
return feed;
}