| Required role: | Consumer |
| GET | /searches/GetSavedSearches |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class ConsumerApi
{
public static enum Parking
{
StreetParking,
ParkingGarageNearby;
}
public static enum PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps;
}
public static enum PriceMainDish
{
Value,
Medium,
High,
FineDining;
}
public static class OpenAtTimeDto
{
public DayOfWeek weekDay = null;
public Integer hour = null;
public Integer minute = null;
public DayOfWeek getWeekDay() { return weekDay; }
public OpenAtTimeDto setWeekDay(DayOfWeek value) { this.weekDay = value; return this; }
public Integer getHour() { return hour; }
public OpenAtTimeDto setHour(Integer value) { this.hour = value; return this; }
public Integer getMinute() { return minute; }
public OpenAtTimeDto setMinute(Integer value) { this.minute = value; return this; }
}
public static enum DayOfWeek
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday;
}
public static class CategoryDto
{
public String name = null;
public String slug = null;
public String absoluteSlug = null;
public String imageUrl = null;
public String allImageUrl = null;
public String iconImageUrl = null;
public Integer position = null;
public String getName() { return name; }
public CategoryDto setName(String value) { this.name = value; return this; }
public String getSlug() { return slug; }
public CategoryDto setSlug(String value) { this.slug = value; return this; }
public String getAbsoluteSlug() { return absoluteSlug; }
public CategoryDto setAbsoluteSlug(String value) { this.absoluteSlug = value; return this; }
public String getImageUrl() { return imageUrl; }
public CategoryDto setImageUrl(String value) { this.imageUrl = value; return this; }
public String getAllImageUrl() { return allImageUrl; }
public CategoryDto setAllImageUrl(String value) { this.allImageUrl = value; return this; }
public String getIconImageUrl() { return iconImageUrl; }
public CategoryDto setIconImageUrl(String value) { this.iconImageUrl = value; return this; }
public Integer getPosition() { return position; }
public CategoryDto setPosition(Integer value) { this.position = value; return this; }
}
public static class BarSpecialityEsDto
{
public String slug = null;
public String title = null;
public String getSlug() { return slug; }
public BarSpecialityEsDto setSlug(String value) { this.slug = value; return this; }
public String getTitle() { return title; }
public BarSpecialityEsDto setTitle(String value) { this.title = value; return this; }
}
public static class BarTypeEsDto
{
public String slug = null;
public String title = null;
public String getSlug() { return slug; }
public BarTypeEsDto setSlug(String value) { this.slug = value; return this; }
public String getTitle() { return title; }
public BarTypeEsDto setTitle(String value) { this.title = value; return this; }
}
public static class BrandApiDto
{
public String name = null;
public String getName() { return name; }
public BrandApiDto setName(String value) { this.name = value; return this; }
}
public static class CuisineEsDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public CuisineEsDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public CuisineEsDto setSlug(String value) { this.slug = value; return this; }
}
public static class MealTypeApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public MealTypeApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public MealTypeApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class ParkingApiDto
{
public String label = null;
public Parking slug = null;
public String getLabel() { return label; }
public ParkingApiDto setLabel(String value) { this.label = value; return this; }
public Parking getSlug() { return slug; }
public ParkingApiDto setSlug(Parking value) { this.slug = value; return this; }
}
public static class PaymentOptionApiDto
{
public String label = null;
public PaymentOption slug = null;
public String getLabel() { return label; }
public PaymentOptionApiDto setLabel(String value) { this.label = value; return this; }
public PaymentOption getSlug() { return slug; }
public PaymentOptionApiDto setSlug(PaymentOption value) { this.slug = value; return this; }
}
public static class PriceMainDishApiDto
{
public String title = null;
public PriceMainDish slug = null;
public String getTitle() { return title; }
public PriceMainDishApiDto setTitle(String value) { this.title = value; return this; }
public PriceMainDish getSlug() { return slug; }
public PriceMainDishApiDto setSlug(PriceMainDish value) { this.slug = value; return this; }
}
public static class EatingSuitabilityApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public EatingSuitabilityApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public EatingSuitabilityApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class TakeAwayApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public TakeAwayApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public TakeAwayApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class WearPriceProfileEsDto
{
public String slug = null;
public String label = null;
public String getSlug() { return slug; }
public WearPriceProfileEsDto setSlug(String value) { this.slug = value; return this; }
public String getLabel() { return label; }
public WearPriceProfileEsDto setLabel(String value) { this.label = value; return this; }
}
}
Java GetSavedSearchesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /searches/GetSavedSearches HTTP/1.1 Host: consumer-api.brovs.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetSavedSearchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto">
<Searches>
<SavedSearchDto>
<CreatedAt xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
<d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime>
<d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
</CreatedAt>
<Filter>
<AdMessageGuid>00000000-0000-0000-0000-000000000000</AdMessageGuid>
<BarSpecialitySlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</BarSpecialitySlugs>
<BarTypeSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</BarTypeSlugs>
<BrandNames xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</BrandNames>
<CategoryAbsoluteSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</CategoryAbsoluteSlugs>
<CuisineSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</CuisineSlugs>
<EatingSuitabilitySlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</EatingSuitabilitySlugs>
<MealTypeSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</MealTypeSlugs>
<OpenAt xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d5p1:Hour>0</d5p1:Hour>
<d5p1:Minute>0</d5p1:Minute>
<d5p1:WeekDay>Sunday</d5p1:WeekDay>
</OpenAt>
<OutdoorSeating>false</OutdoorSeating>
<Parking xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d5p1:Parking>StreetParking</d5p1:Parking>
</Parking>
<PaymentOptions xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d5p1:PaymentOption>Visa</d5p1:PaymentOption>
</PaymentOptions>
<PlaceGuid>00000000-0000-0000-0000-000000000000</PlaceGuid>
<PriceMainDishes xmlns:d5p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d5p1:PriceMainDish>Value</d5p1:PriceMainDish>
</PriceMainDishes>
<SaveFoodAndMoney>false</SaveFoodAndMoney>
<TakeAwaySlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</TakeAwaySlugs>
<Term>String</Term>
<WearPriceProfileSlugs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</WearPriceProfileSlugs>
<WheelChairAccessible>false</WheelChairAccessible>
<Wifi>false</Wifi>
</Filter>
<FilterDetails>
<BarSpecialities xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:BarSpecialityEsDto>
<d5p1:Slug>String</d5p1:Slug>
<d5p1:Title>String</d5p1:Title>
</d5p1:BarSpecialityEsDto>
</BarSpecialities>
<BarTypes xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:BarTypeEsDto>
<d5p1:Slug>String</d5p1:Slug>
<d5p1:Title>String</d5p1:Title>
</d5p1:BarTypeEsDto>
</BarTypes>
<Brands xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:BrandApiDto>
<d5p1:Name>String</d5p1:Name>
</d5p1:BrandApiDto>
</Brands>
<Categories xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:CategoryDto>
<d5p1:AbsoluteSlug>String</d5p1:AbsoluteSlug>
<d5p1:AllImageUrl>String</d5p1:AllImageUrl>
<d5p1:IconImageUrl>String</d5p1:IconImageUrl>
<d5p1:ImageUrl>String</d5p1:ImageUrl>
<d5p1:Name>String</d5p1:Name>
<d5p1:Position>0</d5p1:Position>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:CategoryDto>
</Categories>
<Cuisines xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:CuisineEsDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:CuisineEsDto>
</Cuisines>
<EatingSuitability xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:EatingSuitabilityApiDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:EatingSuitabilityApiDto>
</EatingSuitability>
<MealTypes xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:MealTypeApiDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:MealTypeApiDto>
</MealTypes>
<Parking xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:ParkingApiDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>StreetParking</d5p1:Slug>
</d5p1:ParkingApiDto>
</Parking>
<PaymentOptions xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:PaymentOptionApiDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>Visa</d5p1:Slug>
</d5p1:PaymentOptionApiDto>
</PaymentOptions>
<PriceMainDishes xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:PriceMainDishApiDto>
<d5p1:Slug>Value</d5p1:Slug>
<d5p1:Title>String</d5p1:Title>
</d5p1:PriceMainDishApiDto>
</PriceMainDishes>
<RootCategories xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:CategoryDto>
<d5p1:AbsoluteSlug>String</d5p1:AbsoluteSlug>
<d5p1:AllImageUrl>String</d5p1:AllImageUrl>
<d5p1:IconImageUrl>String</d5p1:IconImageUrl>
<d5p1:ImageUrl>String</d5p1:ImageUrl>
<d5p1:Name>String</d5p1:Name>
<d5p1:Position>0</d5p1:Position>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:CategoryDto>
</RootCategories>
<TakeAways xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:TakeAwayApiDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:TakeAwayApiDto>
</TakeAways>
<WearPriceProfiles xmlns:d5p1="http://schemas.datacontract.org/2004/07/Api.Dto">
<d5p1:WearPriceProfileEsDto>
<d5p1:Label>String</d5p1:Label>
<d5p1:Slug>String</d5p1:Slug>
</d5p1:WearPriceProfileEsDto>
</WearPriceProfiles>
</FilterDetails>
<Id>0</Id>
<Location>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<SearchRadiusInKm>0</SearchRadiusInKm>
</Location>
<Name>String</Name>
<UpdatedAt xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
<d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime>
<d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
</UpdatedAt>
</SavedSearchDto>
</Searches>
</GetSavedSearchesResponse>