My First Clean Architecture
This commit is contained in:
parent
4d4aaa2c4b
commit
bf7c125fb2
8 changed files with 185 additions and 3 deletions
24
src/background/domains/completion-item.js
Normal file
24
src/background/domains/completion-item.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
export default class CompletionItem {
|
||||
constructor({ caption, content, url, icon }) {
|
||||
this.caption0 = caption;
|
||||
this.content0 = content;
|
||||
this.url0 = url;
|
||||
this.icon0 = icon;
|
||||
}
|
||||
|
||||
get caption() {
|
||||
return this.caption0;
|
||||
}
|
||||
|
||||
get content() {
|
||||
return this.content0;
|
||||
}
|
||||
|
||||
get url() {
|
||||
return this.url0;
|
||||
}
|
||||
|
||||
get icon() {
|
||||
return this.icon0;
|
||||
}
|
||||
}
|
Reference in a new issue