summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/SevereCloud/vksdk/v2/api/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api/status.go')
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/status.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/status.go b/vendor/github.com/SevereCloud/vksdk/v2/api/status.go
new file mode 100644
index 00000000..e9bb7775
--- /dev/null
+++ b/vendor/github.com/SevereCloud/vksdk/v2/api/status.go
@@ -0,0 +1,23 @@
+package api // import "github.com/SevereCloud/vksdk/v2/api"
+
+import (
+ "github.com/SevereCloud/vksdk/v2/object"
+)
+
+// StatusGetResponse struct.
+type StatusGetResponse struct {
+ Audio object.AudioAudio `json:"audio"`
+ Text string `json:"text"`
+}
+
+// StatusGet returns data required to show the status of a user or community.
+func (vk *VK) StatusGet(params Params) (response StatusGetResponse, err error) {
+ err = vk.RequestUnmarshal("status.get", &response, params)
+ return
+}
+
+// StatusSet sets a new status for the current user.
+func (vk *VK) StatusSet(params Params) (response int, err error) {
+ err = vk.RequestUnmarshal("status.set", &response, params)
+ return
+}