aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-21 11:13:21 +0000
committerr <r@freesoftwareextremist.com>2019-12-21 11:13:21 +0000
commit3af4361927d65b896ac3f9e2f0170cbbef63c0c0 (patch)
tree68bfb1d6caa44ee3f98b8b66c20f9a41f0cc1477 /model
parente73eb1162ab4ecdb6bbf1337c8c0ef95dbe0e2bf (diff)
downloadbloat-3af4361927d65b896ac3f9e2f0170cbbef63c0c0.tar.gz
bloat-3af4361927d65b896ac3f9e2f0170cbbef63c0c0.zip
Use a custom client for settings
Diffstat (limited to 'model')
-rw-r--r--model/client.go8
-rw-r--r--model/session.go7
-rw-r--r--model/settings.go4
3 files changed, 16 insertions, 3 deletions
diff --git a/model/client.go b/model/client.go
new file mode 100644
index 0000000..ae7270e
--- /dev/null
+++ b/model/client.go
@@ -0,0 +1,8 @@
+package model
+
+import "mastodon"
+
+type Client struct {
+ *mastodon.Client
+ Session Session
+}
diff --git a/model/session.go b/model/session.go
index af9e9e2..42c0aff 100644
--- a/model/session.go
+++ b/model/session.go
@@ -9,9 +9,10 @@ var (
)
type Session struct {
- ID string `json:"id"`
- InstanceDomain string `json:"instance_domain"`
- AccessToken string `json:"access_token"`
+ ID string `json:"id"`
+ InstanceDomain string `json:"instance_domain"`
+ AccessToken string `json:"access_token"`
+ Settings Settings `json:"settings"`
}
type SessionRepository interface {
diff --git a/model/settings.go b/model/settings.go
new file mode 100644
index 0000000..ad7ec0f
--- /dev/null
+++ b/model/settings.go
@@ -0,0 +1,4 @@
+package model
+
+type Settings struct {
+}