public void AddRosterRequest(long uid, long rosterId, string rosterJid, string message, IDKin.IM.Protocol.Center.User user, long categotyId = 0L) { RosterAddRequest request = new RosterAddRequest(); request.category_id = categotyId; request.message = message; request.rjid = rosterJid; request.ruid = rosterId; request.uid = uid; request.user = user; this.connection.Send(PacketType.ROSTER_ADD, request); }
public void AddRosterRequestAsk(long uid, long ruid, string rjid, string message, int type, long categoryId, long rosterCategoryId, IDKin.IM.Protocol.Center.User user) { RosterAddResponse response = new RosterAddResponse(); response.category_id = categoryId; response.message = message; response.rjid = rjid; response.roster_category_id = rosterCategoryId; response.ruid = ruid; response.type = type; response.uid = uid; response.user = user; this.connection.Send(PacketType.ROSTER_ADD_ASK, response); }