ConsumerApi

<back to all web services

GetSavedSearchesRequest

Consumer
Requires Authentication
Required role:Consumer
The following routes are available for this service:
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 .csv suffix or ?format=csv

HTTP + CSV

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: unstable-consumer-api.brovs.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"searches":[{"id":0,"name":"String","filter":{"term":"String","placeGuid":"00000000-0000-0000-0000-000000000000","adMessageGuid":"00000000-0000-0000-0000-000000000000","categoryAbsoluteSlugs":["String"],"barSpecialitySlugs":["String"],"barTypeSlugs":["String"],"brandNames":["String"],"cuisineSlugs":["String"],"mealTypeSlugs":["String"],"parking":["StreetParking"],"paymentOptions":["Visa"],"priceMainDishes":["Value"],"eatingSuitabilitySlugs":["String"],"takeAwaySlugs":["String"],"wearPriceProfileSlugs":["String"],"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"openAt":{"weekDay":"Sunday","hour":0,"minute":0}},"location":{"longitude":0,"latitude":0,"searchRadiusInKm":0},"filterDetails":{"categories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}],"barSpecialities":[{"slug":"String","title":"String"}],"barTypes":[{"slug":"String","title":"String"}],"brands":[{"name":"String"}],"cuisines":[{"label":"String","slug":"String"}],"mealTypes":[{"label":"String","slug":"String"}],"parking":[{"label":"String","slug":"StreetParking"}],"paymentOptions":[{"label":"String","slug":"Visa"}],"priceMainDishes":[{"title":"String","slug":"Value"}],"eatingSuitability":[{"label":"String","slug":"String"}],"takeAways":[{"label":"String","slug":"String"}],"wearPriceProfiles":[{"slug":"String","label":"String"}],"rootCategories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}]},"createdAt":"0001-01-01T00:00:00.0000000+00:00","updatedAt":"0001-01-01T00:00:00.0000000+00:00"}]}