示例#1
0
文件: Generic.cs 项目: vadian/Novus
        public string ExecuteDisplay(string userId)
        {
            string      message      = null;
            ScriptUsers specificUser = _userList.Where(u => u.user.UserID == userId).SingleOrDefault();

            if (specificUser != null && specificUser.lastStep != specificUser.currentStep)
            {
                //the logic here would execute whatever logic the current step has that will display something to the user
            }
            return(message);
        }
示例#2
0
文件: Generic.cs 项目: vadian/Novus
        public User.User.UserState ExecuteResponse(string response, string userId)
        {
            User.User.UserState state = User.User.UserState.LOGGING_IN;

            ScriptUsers specificUser = _userList.Where(u => u.user.UserID == userId).SingleOrDefault();

            if (specificUser != null && specificUser.currentStep != "NONE")
            {
                //a switch won't work here, what needs ot happen is we go to the DB and get the logic for this current step
                //that will do something based on th euser input
            }
            return(state);
        }