Exemple #1
0
        public JsonResult RetriveMessages(RetriveAllMessage retriveAllMessage)
        {
            //Busca los mensajes. Todos
            WebChat.Common.Enumerations.ChatRoomStatus wChatRoomStatus = Enumerations.ChatRoomStatus.Active;

            Boolean        operatorWriting = false;
            string         pNameOperator   = string.Empty;
            List <Message> result          = null;

            try
            {
                result = EpironChatBC.RecieveComments(retriveAllMessage.RoomId, retriveAllMessage.RecordId, out wChatRoomStatus, out operatorWriting, out pNameOperator);
                return(Json(new { Result = "OK", Data = result, ChatRoomStatus = wChatRoomStatus, OperatorWriting = operatorWriting, NameOperator = pNameOperator }));
            }
            catch (Exception ex)
            {
                Helper.Log(ex.Message);
                return(Json(new { Result = "ERROR", Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex) }));
            }
        }
Exemple #2
0
 internal static void ChatRoom_UpdateStatus(int chatRoomId, int recordId, WebChat.Common.Enumerations.ChatRoomStatus status)
 {
     ChatRoomDAC.Update(chatRoomId, recordId, (int)status);
 }