radiobrowser-api-client
Version:
Client for Radio Browser API
267 lines (197 loc) • 4.87 kB
text/typescript
import { JsonProperty, JsonObject } from 'typescript-json-serializer';
export class ISearchStation {
public name?: string;
public nameExact?: boolean;
public countryName?: string;
public countryExact?: boolean;
public countryCode?: string;
public state?: string;
public stateExact?: boolean;
public languageName?: string;
public languageExact?: boolean;
public tag?: string;
public tagExact?: string;
public tagList?: string[];
public codec?: string;
public bitrateMin?: number;
public bitrateMax?: number;
public hasGeoInfo?: boolean;
public hasExtendedInfo?: boolean;
public isHttps?: boolean;
public order?:
| 'name'
| 'url'
| 'homepage'
| 'favicon'
| 'tags'
| 'country'
| 'state'
| 'language'
| 'votes'
| 'codec'
| 'bitrate'
| 'lastcheckok'
| 'lastchecktime'
| 'clicktimestamp'
| 'clickcount'
| 'clicktrend'
| 'changetimestamp'
| 'random';
public reverse?: boolean;
public offset?: number;
public limit?: number;
public hideBroken?: boolean;
constructor(data: ISearchStation) {
Object.assign(this, data);
}
}
export class ICountries {
public order?: 'name' | 'stationcount';
public reverse?: boolean;
public hideBroken?: boolean;
public offset?: number;
public limit?: number;
constructor(data: ICountries) {
Object.assign(this, data);
}
}
export class ICodecs {
public order?: 'name' | 'stationcount';
public reverse?: boolean;
public hideBroken?: boolean;
public offset?: number;
public limit?: number;
constructor(data: ICodecs) {
Object.assign(this, data);
}
}
export class IStates {
public order?: 'name' | 'stationcount';
public reverse?: boolean;
public countryName?: string;
public hideBroken?: boolean;
public offset?: number;
public limit?: number;
constructor(data: IStates) {
Object.assign(this, data);
}
}
export class ILanguages {
public order?: 'name' | 'stationcount';
public reverse?: boolean;
public hideBroken?: boolean;
public offset?: number;
public limit?: number;
constructor(data: ILanguages) {
Object.assign(this, data);
}
}
export class ITags {
public order?: 'name' | 'stationcount';
public reverse?: boolean;
public hideBroken?: boolean;
public offset?: number;
public limit?: number;
constructor(data: ITags) {
Object.assign(this, data);
}
}
export class IStationChecks {
public stationUUID?: string;
public lastCheckUUID?: string;
public seconds?: number;
public limit?: number;
constructor(data: IStationChecks) {
Object.assign(this, data);
}
}
export class IStationClicks {
public stationUUID?: string;
public lastClickUUID?: string;
public seconds?: number;
constructor(data: IStationClicks) {
Object.assign(this, data);
}
}
export class IStationCheckSteps {
public UUIDs: string[];
constructor(data: IStationCheckSteps) {
Object.assign(this, data);
}
}
export class IStationOldVersion {
public lastChangeUUID?: string;
public limit?: number;
constructor(data: IStationOldVersion) {
Object.assign(this, data);
}
}