From 65fd08aee2c8bf7013fe897ed5864070d5e84e7d Mon Sep 17 00:00:00 2001 From: Jesse Kuang <2829915232@qq.com> Date: Sat, 12 Jan 2019 14:46:18 +0800 Subject: [PATCH] mv xmpp_get_info to other repo --- xmpp_get_info.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 xmpp_get_info.go diff --git a/xmpp_get_info.go b/xmpp_get_info.go deleted file mode 100644 index 93f581c..0000000 --- a/xmpp_get_info.go +++ /dev/null @@ -1,30 +0,0 @@ -package xmpp - -import ( - "fmt" - "time" -) - -func (c *Client) RawVersion(from, to, id, version, osName string) error { - body := "go-xmpp" + version + "" + - osName + "" - _, err := c.RawInformationQuery(from, to, id, "result", "jabber:iq:version", - body) - return err -} - -func (c *Client) RawLast(from, to, id string, last int) error { - body := fmt.Sprintf("Working", last) - _, err := c.RawInformation(from, to, id, "result", body) - return err -} - -func (c *Client) RawIQtime(from, to, id string) error { - tt := time.Now() - zone, _ := tt.Zone() - body := fmt.Sprintf("", zone, tt.UTC().Format("2006-01-02T15:03:04Z")) - _, err := c.RawInformation(from, to, id, "result", body) - return err -}