File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 12
12
"updatedAt" : " 2018-10-29T03:01:43Z"
13
13
},
14
14
"lang" : " en-US" ,
15
- "theme" : " light" ,
15
+ "theme" : {
16
+ "source" : " typetalk" ,
17
+ "name" : " light"
18
+ },
16
19
"post" : {
17
20
"useCtrl" : false ,
18
21
"emojiSkinTone" : " skin-tone-4"
19
22
}
20
- }
23
+ }
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ type Account struct {
27
27
ImageUpdatedAt * time.Time `json:"imageUpdatedAt"`
28
28
}
29
29
30
+ // Theme represents the appearance information used in Typetalk.
31
+ type Theme struct {
32
+ Source string `json:"source"`
33
+ Name string `json:"name"`
34
+ }
35
+
30
36
// Status represents online status of the user.
31
37
type Status struct {
32
38
Presence * string `json:"presence"`
@@ -47,7 +53,7 @@ type Profile AccountStatus
47
53
type MyProfile struct {
48
54
Account * Account `json:"account"`
49
55
Lang string `json:"lang"`
50
- Theme string `json:"theme"`
56
+ Theme * Theme `json:"theme"`
51
57
Post * struct {
52
58
UseCtrl bool `json:"useCtrl"`
53
59
EmojiSkinTone string `json:"emojiSkinTone"`
You can’t perform that action at this time.
0 commit comments