awv-api
Version:
38 lines (37 loc) • 1.48 kB
TypeScript
import Event from '../models/Event';
import City from '../models/City';
import Street from '../models/Street';
/**
* FakeBackend class
*
* @class FakeBackend
*/
export default class FakeBackend {
static IS_ACTIVE: boolean;
static getFakeEvents(): Event[];
static getFakeEventsResult(url: string, year: number, cityId: any, streetId: any, abfuhrbezirkId: any, papier: any, abfuhrbezirkpapier: any): Event[];
static returnFakeEventsRequest(url: string, year: number, cityId: any, streetId: any, abfuhrbezirkId: any, papier: any, abfuhrbezirkpapier: any): Promise<{
text: () => string;
}>;
static getFakeCities(): City[];
static returnFakeCitySearchRequest(url: string, year: number, cityId: any, streetId: any, abfuhrbezirkId: any, papier: any, abfuhrbezirkpapier: any): {
json: () => {
id: string;
label: string;
value: string;
}[];
};
static getFakeStreets(): Street[];
static returnFakeStreetSearchRequest(url: string, year: number, cityId: any, streetId: any, abfuhrbezirkId: any, papier: any, abfuhrbezirkpapier: any): {
text: () => string;
};
static fakeFetch(url: string, year: number, cityId: any, streetId: any, abfuhrbezirkId: any, papier: any, abfuhrbezirkpapier: any): Promise<{
text: () => string;
} | {
json: () => {
id: string;
label: string;
value: string;
}[];
} | null>;
}