mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
19 lines
324 B
TypeScript
19 lines
324 B
TypeScript
export enum SearchTypes {
|
|
directory = 1,
|
|
person = 2,
|
|
keyword = 3,
|
|
position = 5,
|
|
photo = 6,
|
|
video = 7
|
|
}
|
|
|
|
export class AutoCompleteItem {
|
|
constructor(public text: string, public type: SearchTypes) {
|
|
}
|
|
|
|
equals(other: AutoCompleteItem) {
|
|
return this.text === other.text && this.type === other.type;
|
|
}
|
|
}
|
|
|