public AddFriend ( |
||
id | The Tox id of the friend to add. | |
message | string | The message that will be sent along with the friend request. |
Результат | int |
public int AddFriend(ToxId id, string message)
{
var error = ToxErrorFriendAdd.Ok;
return AddFriend(id, message, out error);
}
Tox::AddFriend ( |
public void Init() { var options = new ToxOptions(true, true); _tox1 = new Tox(options); _tox2 = new Tox(options); _tox1.AddFriend(_tox2.Id, "hey"); _tox2.AddFriend(_tox1.Id, "hey"); while (_tox1.GetFriendConnectionStatus(0) == ToxConnectionStatus.None) { DoIterate(); } }