Пример #1
0
        //微信接口

        #region [接收消息接口]
        /// <summary>
        /// [接收消息接口]
        /// </summary>
        public void AcceptMessage(string token, Guid sendUserId, Guid receiveUserId, string message)
        {
            return;

            var listMessageModel = new Ocean.Communication.Common.SafeCollection <MessageModel>();

            var model = new MessageModel
            {
                SendUserId        = sendUserId,
                ReceiveUserId     = receiveUserId,
                Message           = message,
                SendTimeOfService = DateTime.Now
            };

            listMessageModel.Add(model);
            MessageManager.Instance.AddMessageFromServer(listMessageModel);
        }
Пример #2
0
        /// <summary>
        /// [接收通知接口]
        /// </summary>
        public void AcceptNotice(string token, Guid sendUserId, string sendNickeName, Guid receiveUserId, int noticeType, int status, string args)
        {
            return;

            var listNoticeModel = new Ocean.Communication.Common.SafeCollection <NoticeModel>();

            var model = new NoticeModel
            {
                SendUserId    = sendUserId,
                SendNickName  = sendNickeName,
                ReceiveUserId = receiveUserId,
                NoticeType    = noticeType,
                Status        = status,
                Args          = args
            };

            listNoticeModel.Add(model);
            MessageManager.Instance.AddNoticeFromServer(listNoticeModel);
        }