itd/api/notify.go

17 lines
212 B
Go
Raw Normal View History

2021-10-24 01:41:03 +00:00
package api
2022-04-23 00:12:30 +00:00
import (
"context"
)
2021-10-24 01:41:03 +00:00
2022-04-23 00:12:30 +00:00
func (c *Client) Notify(title, body string) error {
return c.itdClient.Call(
context.Background(),
"Notify",
NotifyData{
2021-10-24 01:41:03 +00:00
Title: title,
Body: body,
},
2022-04-23 00:12:30 +00:00
nil,
)
2021-10-24 01:41:03 +00:00
}