Skip to content

Instantly share code, notes, and snippets.

@polastre
Last active April 5, 2016 19:38
Show Gist options
  • Save polastre/b167dcc1dfc3d7f34aa5b7c98af8ff0b to your computer and use it in GitHub Desktop.
Save polastre/b167dcc1dfc3d7f34aa5b7c98af8ff0b to your computer and use it in GitHub Desktop.
class Conversation
{
public integer PromptID;
public string Prompt;
private integer InquirerID;
public array (string) Challenges;
public array (string) Questions;
public array (string) Callout;
public string Cavalry;
public integer Complexity;
public string Confirmation;
public boolean Close;
public function constructConversation() {
set voterConversation->PromptID= "EAC0001";
set voterConversation->Prompt = "How do I register to vote?";
set voterConversation->InquirerID = "anonymous";
set voterConversation->Challenges->[0]= "Are you a US Citizen?";
set voterConversation->Challenges->[1]= "Will you be 18 years old by election day?";
set voterConversation->Questions->[0]= "What state do you live in?";
set voterConversation->Callout->["MD"]= "http://api.marylandvoterinfo.md.us";
set voterConversation->Cavalry[0] = "Given the timing of your registration submission. . .please contact your state registrar ...";
set voterConversation->Complexity= sizeof(voterConversation->ChallengeQuestion[ ]) +
sizeof(voterConversation->ConversationQuestion[ ]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment