Skip to content

Instantly share code, notes, and snippets.

@okamanda
Created April 5, 2016 01:02
Show Gist options
  • Save okamanda/95bd62bf17f7dac8c5ae0f08b6f9a65d to your computer and use it in GitHub Desktop.
Save okamanda/95bd62bf17f7dac8c5ae0f08b6f9a65d 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[ ])+ set sizeof(voterConversation->ConversationQuestion[ ]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment