Esempio n. 1
0
        public bool MessageViewed(SimpleMessage message)
        {
            try
            {
                message.UserId = CurUserId;
                var result = _backend.MessageViewed(WorkerContext, message);

                if (result.Success)
                {
                    Clients.OthersInGroup(message.ChatId).MessageViewed(message);
                    Logger.Debug(LogKey + message);
                    return(true);
                }

                Logger.Warn(result + LogKey + message);
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }

            return(false);
        }
Esempio n. 2
0
 public ResponseModel <bool> MessageViewed(IWorkerContext context, SimpleMessage message)
 {
     return(_backend.MessageViewed(context, message));
 }