1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/common/entities/AutoCompleteItem.ts

17 lines
299 B
TypeScript
Raw Normal View History

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