Skip to content

Commit cfcce38

Browse files
read also custom fields (#27)
2 parents f687eff + 2ac43e1 commit cfcce38

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

teamup-rocketchat-bot/main.go

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -168,28 +168,29 @@ func writeToJSONFile(day, eventID, startTime string) {
168168
}
169169

170170
type TeamupEvent struct {
171-
ID string `json:"id"`
172-
SeriesID interface{} `json:"series_id"`
173-
RemoteID string `json:"remote_id"`
174-
SubcalendarID int `json:"subcalendar_id"`
175-
SubcalendarIds []int `json:"subcalendar_ids"`
176-
AllDay bool `json:"all_day"`
177-
Rrule string `json:"rrule"`
178-
Title string `json:"title"`
179-
Who string `json:"who"`
180-
Location string `json:"location"`
181-
Notes string `json:"notes"`
182-
Version string `json:"version"`
183-
Readonly bool `json:"readonly"`
184-
Tz interface{} `json:"tz"`
185-
Attachments []interface{} `json:"attachments"`
186-
StartDt string `json:"start_dt"`
187-
EndDt string `json:"end_dt"`
188-
RistartDt interface{} `json:"ristart_dt"`
189-
RsstartDt interface{} `json:"rsstart_dt"`
190-
CreationDt time.Time `json:"creation_dt"`
191-
UpdateDt interface{} `json:"update_dt"`
192-
DeleteDt interface{} `json:"delete_dt"`
171+
ID string `json:"id"`
172+
SeriesID interface{} `json:"series_id"`
173+
RemoteID string `json:"remote_id"`
174+
SubcalendarID int `json:"subcalendar_id"`
175+
SubcalendarIds []int `json:"subcalendar_ids"`
176+
AllDay bool `json:"all_day"`
177+
Rrule string `json:"rrule"`
178+
Title string `json:"title"`
179+
Who string `json:"who"`
180+
Location string `json:"location"`
181+
Notes string `json:"notes"`
182+
Version string `json:"version"`
183+
Readonly bool `json:"readonly"`
184+
Tz interface{} `json:"tz"`
185+
Attachments []interface{} `json:"attachments"`
186+
StartDt string `json:"start_dt"`
187+
EndDt string `json:"end_dt"`
188+
RistartDt interface{} `json:"ristart_dt"`
189+
RsstartDt interface{} `json:"rsstart_dt"`
190+
CreationDt time.Time `json:"creation_dt"`
191+
UpdateDt interface{} `json:"update_dt"`
192+
DeleteDt interface{} `json:"delete_dt"`
193+
Custom map[string]interface{} `json:"custom"`
193194
}
194195

195196
type TeamupEvents struct {

0 commit comments

Comments
 (0)