コード例 #1
0
 /// <summary>
 /// 私聊消息事件,完成
 /// </summary>
 /// <param name="json"></param>
 /// <returns></returns>
 private Boolean Do_EventFriendsMsg(string json)
 {
     try
     {
         FriendMessageEventArgs friendMessageEventArgs = JsonConvert.DeserializeObject <FriendMessageEventArgs>(json);
         FriendMessageEvent?.Invoke(this, friendMessageEventArgs);
         return(true);
     }
     catch (Exception ex)
     {
         DebugMessage(ex.Message);
         DebugMessage(ex.StackTrace);
         return(false);
     }
 }
コード例 #2
0
        public string ToString(Newtonsoft.Json.Formatting formatting)
        {
            FriendMessageEventArgs classData = this;

            return(JsonConvert.SerializeObject(classData, formatting));
        }