aboutsummaryrefslogtreecommitdiff
path: root/src/background/domains/CompletionItem.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/domains/CompletionItem.js')
-rw-r--r--src/background/domains/CompletionItem.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/background/domains/CompletionItem.js b/src/background/domains/CompletionItem.js
new file mode 100644
index 0000000..c7ad8a1
--- /dev/null
+++ b/src/background/domains/CompletionItem.js
@@ -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;
+ }
+}