Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go

master
Pe-Guedss 2021-12-01 14:27:35 -03:00
commit 992fe90efb
1 changed files with 12 additions and 0 deletions

View File

@ -290,6 +290,18 @@ func (c *Cli) DrawAddText(t string, x, y, w, h int) error {
return err
}
/***************** Notify Functions *****************/
func (c *Cli) NotifyAlert(msg, title string) error {
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/notify/alert?msg=%s&title=%s", msg, title), nil)
return err
}
func (c *Cli) NotifyBeep(msg, title string) error {
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/notify/notify?msg=%s&title=%s", msg, title), nil)
return err
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
return ret