/// <summary> /// Response to FriendInvite. /// </summary> /// <param name="client"></param> /// <param name="result"></param> /// <param name="friend">Required for success, otherwise can be left null.</param> public static void FriendInviteR(MsgrClient client, FriendInviteResult result, Friend friend = null) { if (result == FriendInviteResult.Success && friend == null) { throw new ArgumentNullException("friend"); } var packet = new Packet(Op.Msgr.FriendInviteR, 0); //packet.PutInt((int)result); packet.PutInt((int)result); if (result == FriendInviteResult.Success) { packet.PutInt(friend.Id); packet.PutString(friend.FullName); packet.PutByte((byte)friend.FriendshipStatus); } client.Send(packet); }
/// <summary> /// Response to FriendInvite. /// </summary> /// <param name="client"></param> /// <param name="result"></param> /// <param name="friend">Required for success, otherwise can be left null.</param> public static void FriendInviteR(MsgrClient client, FriendInviteResult result, Friend friend = null) { if (result == FriendInviteResult.Success && friend == null) throw new ArgumentNullException("friend"); var packet = new Packet(Op.Msgr.FriendInviteR, 0); //packet.PutInt((int)result); packet.PutInt((int)result); if (result == FriendInviteResult.Success) { packet.PutInt(friend.Id); packet.PutString(friend.FullName); packet.PutByte((byte)friend.FriendshipStatus); } client.Send(packet); }