コード例 #1
0
        public IActionResult RebootDemo([FromBody] Event eventParam)
        {
            //var _eventReturn = _actionService.Reboot(eventParam.TerminalId, GetUserId());

            ActionReturn _eventReturn = new ActionReturn();

            _eventReturn.Date     = DateTime.Now.ToString();
            _eventReturn.UserName = GetUserName();

            return(Ok(_eventReturn));
        }
コード例 #2
0
        public IActionResult OpenDoorDemo([FromBody] Event eventParam)
        {
            ActionReturn _eventReturn = new ActionReturn();

            _eventReturn.EventType = "OpenDoor";
            _eventReturn.Status    = "OnLine";
            _eventReturn.Date      = DateTime.Now.ToString();
            _eventReturn.UserName  = GetUserName();

            return(Ok(_eventReturn));
        }
コード例 #3
0
 ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionReturn action, XElement xAction)
 {
     return(action);
 }
コード例 #4
0
 static public void Initialize(ActionReturn <string> selectResources)
 {
     _selectResources = selectResources;
 }
コード例 #5
0
 static public void Initialize(ActionReturn <string, string> getResourceText)
 {
     _actionGetResourceText = getResourceText;
 }
コード例 #6
0
ファイル: XActionWriter.cs プロジェクト: shhadi/SwfLib
 XElement IActionVisitor <XElement, XElement> .Visit(ActionReturn action, XElement arg)
 {
     return(arg);
 }