Esempio n. 1
0
 public void chat_ReceiveParishTextCallback(Chat_ReceiveParishText_ReturnType returnData)
 {
     if ((RemoteServices.Instance.UserOptions.profanityFilter && (returnData.textList != null)) && (returnData.textList.Count > 0))
     {
         foreach (Chat_TextEntry entry in returnData.textList)
         {
             entry.text = GameEngine.Instance.censorString(entry.text);
         }
     }
     if ((returnData.Success && (returnData.parishID == this.currentParish)) && ((returnData.textList != null) && (returnData.textList.Count > 0)))
     {
         this.checkTextUpdateTime = 10;
         this.importText(returnData.textList, returnData.unreadIDs);
     }
     else
     {
         this.importText(returnData.textList, returnData.unreadIDs);
     }
     this.checkTextUpdateTime += 2;
     if (this.checkTextUpdateTime >= 40)
     {
         this.checkTextUpdateTime = 40;
     }
     this.lastRequestTime = DateTime.Now;
     this.inSend          = false;
 }
 public void OurRemoteAsyncCallBack_Chat_ReceiveParishText(IAsyncResult ar)
 {
     RemoteAsyncDelegate_Chat_ReceiveParishText asyncDelegate = (RemoteAsyncDelegate_Chat_ReceiveParishText) ((AsyncResult) ar).AsyncDelegate;
     try
     {
         this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar));
     }
     catch (Exception exception)
     {
         Chat_ReceiveParishText_ReturnType returnData = new Chat_ReceiveParishText_ReturnType();
         this.manageRemoteExpection(ar, returnData, exception);
     }
 }
 public void chat_ReceiveParishTextCallback(Chat_ReceiveParishText_ReturnType returnData)
 {
     if ((RemoteServices.Instance.UserOptions.profanityFilter && (returnData.textList != null)) && (returnData.textList.Count > 0))
     {
         foreach (Chat_TextEntry entry in returnData.textList)
         {
             entry.text = GameEngine.Instance.censorString(entry.text);
         }
     }
     if ((returnData.Success && (returnData.parishID == this.currentParish)) && ((returnData.textList != null) && (returnData.textList.Count > 0)))
     {
         this.checkTextUpdateTime = 10;
         this.importText(returnData.textList, returnData.unreadIDs);
     }
     else
     {
         this.importText(returnData.textList, returnData.unreadIDs);
     }
     this.checkTextUpdateTime += 2;
     if (this.checkTextUpdateTime >= 40)
     {
         this.checkTextUpdateTime = 40;
     }
     this.lastRequestTime = DateTime.Now;
     this.inSend = false;
 }