diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/client.go | 8 | ||||
-rw-r--r-- | model/session.go | 7 | ||||
-rw-r--r-- | model/settings.go | 4 |
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 { +} |