示例#1
0
 private void OnJoinRequested(JoinGroupRequestMessage message)
 {
     List<long> blackList = config.GetBlackList();
     if (blackList == null || !blackList.Contains(message.MemberTrueUin))
     {
         webqq.AcceptJoinRequest(message);
     }
 }
示例#2
0
 private static JoinGroupRequestMessage ParseJoinGroupRequestMessage(JsonValue item)
 {
     JoinGroupRequestMessage systemMessage = new JoinGroupRequestMessage();
     InitBaseGroupMessage(item, systemMessage);
     systemMessage.MemberUin = item["request_uin"];
     systemMessage.MemberTrueUin = item["t_request_uin"];
     systemMessage.RequestMessage = item["msg"];
     return systemMessage;
 }