public IReadOnlyCollection <UserActivity> GetUserActivities(LoggedUserInfo loggedUser)
        {
            ServerToken token = TokenRepository.Instance.GetToken(loggedUser.SessionId);

            if (token == null)
            {
                return(new List <UserActivity>().AsReadOnly());
            }
            return(token.GetActivities());
        }
示例#2
0
        public IReadOnlyCollection <UserActivity> GetUserActivities(LoggedUserInfo loggedUser)
        {
            ServerToken token = TokenRepository.Instance.GetToken(loggedUser.SessionId);

            return(token.GetActivities());
        }