コード例 #1
0
        public MessageCodeResponse PopupRead(Guid managerId, int recordId)
        {
            InformationPopupMgr.Delete(managerId, recordId);
            var response = ResponseHelper.CreateSuccess <MessageCodeResponse>();

            return(response);
        }
コード例 #2
0
ファイル: InformationHelper.cs プロジェクト: cool8868/H5Nball
 static void doSendPopup(InformationPopupEntity entity)
 {
     try
     {
         InformationPopupMgr.Insert(entity);
         string content = string.Format("RF,{0}", entity.Idx);
         //ChatHelper.doSendPop(entity.ManagerId, EnumPopType.AddFriend, content);
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("doSendPopup", ex);
     }
 }
コード例 #3
0
        public InformationPopupResponse GetPopup(Guid managerId, int recordId)
        {
            var entity = InformationPopupMgr.GetById(recordId);

            if (entity == null || entity.ManagerId != managerId)
            {
                return(ResponseHelper.InvalidParameter <InformationPopupResponse>());
            }
            InformationPopupMgr.Delete(managerId, recordId);
            var response = ResponseHelper.CreateSuccess <InformationPopupResponse>();

            response.Data = entity;
            return(response);
        }