-
Notifications
You must be signed in to change notification settings - Fork 2
ListFoods
alex-caroline edited this page Nov 9, 2018
·
5 revisions
var foodsListResponse = foodQueryServiceClient.ListFoods(new FoodsListRequest());
var foodsListRequest = new FoodsListRequest
{
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published }
};
var foodsListResponse = foodQueryServiceClient.ListFoods(foodsListRequest);
var foodsListRequest = new FoodsListRequest
{
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] {FoodType.Ingredient}
};
var foodsListResponse = foodQueryServiceClient.ListFoods(foodsListRequest);
var foodsListRequest = new FoodsListRequest
{
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] {FoodType.Ingredient},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.ListFoods(foodsListRequest);
var foodsListRequest = new FoodsListRequest
{
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] {FoodType.Ingredient},
DataSourceFilter = new[] {DataSources.UserFoods}
};
var foodsListResponse = foodQueryServiceClient.ListFoods(foodsListRequest);