예제 #1
0
        public ScreenPresentation GetCurrentScreen()
        {
            var screenReturned = new ScreenPresentation();

            var request = new GetScreenRequest {
                UserKey = _baseServiceFacade.UserKey
            };
            var response = _demoClientProxy.GetCurrentScreenModel(request);

            if (response.Success)
            {
                screenReturned.ScreenFound = true;
                screenReturned.ScreenModel = response.ScreenModel;
                if (response.ScreenName == "Clause")
                {
                    if (response.ScreenModel.ScreenName == "Noun")
                    {
                        response.ScreenName = "Noun";
                    }
                }

                screenReturned.ScreenName = response.ScreenName;
                screenReturned.SimpleView = response.SimpleView;
            }
            else
            {
                screenReturned.ScreenFound = false;
                screenReturned.ScreenModel = null;
            }

            return(screenReturned);
        }
예제 #2
0
 public GetScreenResponse GetCurrentScreenModel(GetScreenRequest userKey)
 {
     return(Channel.GetCurrentScreenModel(userKey));
 }