Beispiel #1
0
        private void doProcOpenSessionResponse(BallyCOpenSessionResponse res)
        {
            if (res.Result == _SYS_CODE.SYS_SUCCESS)
            {
                UserInformation.Occupied = false;
                //EventInformation.Enabled = true;

                UserInformation.SessionID = res.SessionID;

                _HeartbeatValue = res.Heartbeat;
                HeartbeatStart();

                if (res.Group.Equals("IT", StringComparison.OrdinalIgnoreCase))
                {
                    UserInformation.Group = UserGroup.GROUP_IT;
                }
                else if (res.Group.Equals("Admin", StringComparison.OrdinalIgnoreCase))
                {
                    UserInformation.Group = UserGroup.GROUP_ADMIN;
                }
                else if (res.Group.Equals("Super", StringComparison.OrdinalIgnoreCase))
                {
                    UserInformation.Group = UserGroup.GROUP_POWERUSER;
                }
                else
                {
                    UserInformation.Group = UserGroup.GROUP_USER;
                }

                _DeviceInfo = res.DeviceInfo;
            }
        }
Beispiel #2
0
        private void doProcCloseSessionResponse(BallyCCloseSessionResponse res)
        {
            if (res.Result == _SYS_CODE.SYS_SUCCESS)
            {
                UserInformation.Occupied = false;
                //EventInformation.Enabled = false;

                UserInformation.SessionID = String.Empty;
                UserInformation.Group     = String.Empty;

                _DeviceInfo = null;

                _Client = null;
            }
        }
        private void doProcCloseSessionResponse(BallyCCloseSessionResponse res)
        {
            if (res.Result == _SYS_CODE.SYS_SUCCESS)
            {
                UserInformation.Occupied = false;
                //EventInformation.Enabled = false;

                UserInformation.SessionID = String.Empty;
                UserInformation.Group = String.Empty;

                _DeviceInfo = null;

                _Client = null;
            }
        }
        private void doProcOpenSessionResponse(BallyCOpenSessionResponse res)
        {
            if (res.Result == _SYS_CODE.SYS_SUCCESS)
            {
                UserInformation.Occupied = false;
                //EventInformation.Enabled = true;

                UserInformation.SessionID = res.SessionID;

                _HeartbeatValue = res.Heartbeat;
                HeartbeatStart();

                if (res.Group.Equals("IT", StringComparison.OrdinalIgnoreCase))
                    UserInformation.Group = UserGroup.GROUP_IT;
                else if (res.Group.Equals("Admin", StringComparison.OrdinalIgnoreCase))
                    UserInformation.Group = UserGroup.GROUP_ADMIN;
                else if (res.Group.Equals("Super", StringComparison.OrdinalIgnoreCase))
                    UserInformation.Group = UserGroup.GROUP_POWERUSER;
                else
                    UserInformation.Group = UserGroup.GROUP_USER;

                _DeviceInfo = res.DeviceInfo;
            }
        }