Skip to content

Commit

Permalink
Added ConfirmInput To Button. Simulator Support not yet given.
Browse files Browse the repository at this point in the history
  • Loading branch information
NizamLZ committed May 8, 2017
1 parent 23fda06 commit fecd6fe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions ANAConversationPlatform/Models/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public Button(string id = "", string buttonName = "", string buttonText = "", Em
public bool DefaultButton { get; set; } = false;
public bool Hidden { get; set; }
public string VariableValue { get; set; } = null;
public bool ConfirmInput { get; set; }
public string PrefixText { get; set; } = null;
public string PostfixText { get; set; } = null;
public string PlaceholderText { get; set; } = null;
Expand Down
1 change: 1 addition & 0 deletions ANAConversationSimulator/Models/Chat/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public Button() { }
public bool Hidden { get; set; }
public string VariableValue { get; set; } = null;
public string PlaceholderText { get; set; }
public bool ConfirmInput { get; set; }
public string PrefixText { get; set; }
public string PostfixText { get; set; }

Expand Down
14 changes: 14 additions & 0 deletions ANAConversationStudio/Models/Chat/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,20 @@ public string PlaceholderText
}
}

private bool _ConfirmInput;
public bool ConfirmInput
{
get { return _ConfirmInput; }
set
{
if (_ConfirmInput != value)
{
_ConfirmInput = value;
OnPropertyChanged();
}
}
}

public override string ToString()
{
return Tag;
Expand Down

0 comments on commit fecd6fe

Please sign in to comment.