func (v Account) SetOffline() (bool, error) {
	r, err := v.API.Request("account.setOffline", nil)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
SetOffline Marks a current user as offline.
package vkapi
import (
	"encoding/json"
	"strconv"
	"github.com/stek29/vk"
)
type Account struct {
	API vk.API
}
type AccountGetCountersParams struct {
	Filter CSVStringSlice `url:"filter,omitempty"`
}
type AccountGetCountersResponse struct {
	Friends int `json:"friends,omitempty"`
	Messages int `json:"messages,omitempty"`
	Photos int `json:"photos,omitempty"`
	Videos int `json:"videos,omitempty"`
	Gifts int `json:"gifts,omitempty"`
	Events int `json:"events,omitempty"`
	Groups int `json:"groups,omitempty"`
	Notifications int `json:"notifications,omitempty"`
	AppRequests int `json:"app_requests,omitempty"`
	FriendsSuggestions int `json:"friends_suggestions,omitempty"`
}
func (v Account) GetCounters(params AccountGetCountersParams) (*AccountGetCountersResponse, error) {
	r, err := v.API.Request("account.getCounters", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetCountersResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
type AccountSetNameInMenuParams struct {
	UserID int `url:"user_id"`
	Name string `url:"name,omitempty"`
}
func (v Account) SetNameInMenu(params AccountSetNameInMenuParams) (bool, error) {
	r, err := v.API.Request("account.setNameInMenu", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountSetOnlineParams struct {
	Voip bool `url:"voip,omitempty"`
}
func (v Account) SetOnline(params AccountSetOnlineParams) (bool, error) {
	r, err := v.API.Request("account.setOnline", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}