-
Notifications
You must be signed in to change notification settings - Fork 2
SearchByGroups
alex-caroline edited this page Nov 9, 2018
·
4 revisions
var foodsByGroupRequest = new FoodsByGroupRequest
{
GroupName = "Vegan Foods"
};
var foodsListResponse = foodQueryServiceClient.SearchByGroup(foodsByGroupRequest);
var foodsByGroupRequest = new FoodsByGroupRequest
{
GroupName = "Vegan Foods",
FilterByPublicationStates = new [] {PublicationState.Draft, PublicationState.Published }
};
var foodsListResponse = foodQueryServiceClient.SearchByGroup(foodsByGroupRequest);
var foodsByGroupRequest = new FoodsByGroupRequest
{
GroupName = "Vegan Foods",
FilterByPublicationStates = new [] {PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new [] {FoodType.Recipe}
};
var foodsListResponse = foodQueryServiceClient.SearchByGroup(foodsByGroupRequest);
var foodsByGroupRequest = new FoodsByGroupRequest
{
GroupName = "Vegan Foods",
FilterByPublicationStates = new [] {PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new [] {FoodType.Recipe},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.SearchByGroup(foodsByGroupRequest);
var foodsByGroupRequest = new FoodsByGroupRequest
{
GroupName = "Vegan Foods",
FilterByPublicationStates = new [] {PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new [] {FoodType.Recipe},
DataSourceFilter = new [] {DataSources.UserFoods},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.SearchByGroup(foodsByGroupRequest);