File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ type TopicData struct {
5050 ChunkSize int `json:"chunk_size"`
5151 Bookmarked bool `json:"bookmarked"`
5252 Bookmarks []string `json:"bookmarks"`
53- TopicTimer string `json:"topic_timer"`
53+ TopicTimer TopicTimer `json:"topic_timer"`
5454 MessageBusLastID int `json:"message_bus_last_id"`
5555 ParticipantCount int `json:"participant_count"`
5656 ShowReadIndicator bool `json:"show_read_indicator"`
@@ -153,6 +153,15 @@ type TopicAction struct {
153153 CanAct bool `json:"can_act"`
154154}
155155
156+ type TopicTimer struct {
157+ ID int `json:"id"`
158+ ExecuteAt time.Time `json:"execute_at"`
159+ DurationMinutes int `json:"duration_minutes"`
160+ BasedOnLastPost bool `json:"based_on_last_post"`
161+ StatusType string `json:"status_type"`
162+ CategoryID int `json:"category_id"`
163+ }
164+
156165func GetTopicByID (client * Client , id int ) (response * TopicData , err error ) {
157166 data , sendErr := client .Get (fmt .Sprintf ("t/%d" , id ))
158167
You can’t perform that action at this time.
0 commit comments