1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/AutoCompleteItem.ts
2018-11-24 14:21:46 +01:00

18 lines
310 B
TypeScript

export enum SearchTypes {
directory = 1,
keyword = 2,
position = 3,
photo = 4,
video = 5
}
export class AutoCompleteItem {
constructor(public text: string, public type: SearchTypes) {
}
equals(other: AutoCompleteItem) {
return this.text === other.text && this.type === other.type;
}
}