Beispiel #1
0
 internal PromptResponse()
 {
     Responded = false;
     Action    = new PromptAction()
     {
         ActionName = string.Empty,
         IconName   = string.Empty,
         ActionType = PromptActionType.Cancel
     };
 }
Beispiel #2
0
        public void Respond(PromptAction action)
        {
            if (State != PromptState.Shown)
            {
                return;
            }

            try
            {
                Response = new PromptResponse(action);
                CallBack(this);
            }
            catch (Exception e)
            {
                CloudLog.Exception(e);
            }

            State = PromptState.Actioned;
        }
Beispiel #3
0
 internal PromptResponse(PromptAction action)
 {
     Action    = action;
     Responded = true;
 }