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

17 lines
297 B
TypeScript
Raw Normal View History

2016-05-16 17:03:11 +08:00
export enum SearchTypes {
directory = 1,
keyword = 2,
position = 3,
image = 4
2016-05-04 23:20:21 +08:00
}
2016-05-09 23:04:56 +08:00
export class AutoCompleteItem {
constructor(public text: string, public type: SearchTypes) {
}
equals(other: AutoCompleteItem) {
return this.text === other.text && this.type === other.type;
}
2016-05-04 23:20:21 +08:00
}