Skip to content

Commit

Permalink
add ToogleChannelNotifications method
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed Oct 29, 2022
1 parent 74b297d commit 73f600d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,3 +524,15 @@ func (c *UtopiaClient) GetChannels(task GetChannelsTask) ([]SearchChannelData, e

return data, nil
}

func (c *UtopiaClient) ToogleChannelNotifications(channelID string, enabled bool) error {
params := map[string]interface{}{
"channelid": channelID,
"enabled": enabled,
}

if _, err := c.queryResultToBool("enableChannelNotification", params); err != nil {
return err
}
return nil
}

0 comments on commit 73f600d

Please sign in to comment.