Esempio n. 1
0
    public void SendToWall(string text, bool friendsOnly = false, SendToWallCallbackHandler callback = null)
    {
        cbSendToWall = callback;

        var req = new Hashtable();

        req.Add("friends_only", friendsOnly ? "1" : "0");
        req.Add("message", text);
        VKApi.Api(_reqSendToWall, req);
    }
Esempio n. 2
0
    public void GetFullFriendList(GetFriendsCallbackHandler callback = null, int offset = -1, int count = -1)
    {
        cbGetFriends  = callback;
        friendsIsFull = true;

        var req = new Hashtable();

        req.Add("order", "mobile");
        if (offset >= 0)
        {
            req.Add("offset", offset.ToString());
        }
        if (count >= 0)
        {
            req.Add("count", count.ToString());
        }
        req.Add("fields", _reqGetFriends_FullList_Fields);
        VKApi.Api(_reqFriendsGet, req);
    }