Class: BotFramework::Prompt

Inherits:
Dialog
  • Object
show all
Defined in:
lib/bot_framework/prompt.rb

Constant Summary collapse

@@options =
{
  recognizer: BotFramework::SimplePromptRecognizer.new,
  prompt_after_action: true
}
@@default_retry_prompt =
{
  text: 'default_text',
  number: 'default_number',
  confirm: 'daefault_confirm',
  choice: 'default_choice',
  time: 'default_time',
  attachment: 'default_file'
}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.attachmentObject



54
55
# File 'lib/bot_framework/prompt.rb', line 54

def self.attachment
end

.choiceObject



48
49
# File 'lib/bot_framework/prompt.rb', line 48

def self.choice
end

.configure(_options) ⇒ Object



17
18
# File 'lib/bot_framework/prompt.rb', line 17

def self.configure(_options)
end

.confirmObject



45
46
# File 'lib/bot_framework/prompt.rb', line 45

def self.confirm
end

.disambiguateObject



57
58
# File 'lib/bot_framework/prompt.rb', line 57

def self.disambiguate
end

.numberObject



42
43
# File 'lib/bot_framework/prompt.rb', line 42

def self.number
end

.textObject



39
40
# File 'lib/bot_framework/prompt.rb', line 39

def self.text
end

.timeObject



51
52
# File 'lib/bot_framework/prompt.rb', line 51

def self.time
end

Instance Method Details

#begin(session, options = {}) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/bot_framework/prompt.rb', line 20

def begin(session, options = {})
  options[:prompt_after_action] = options[:prompt_after_action] || options[:prompt_after_action]
  options[:retry_count] = 0
  options.each do |option|
    # Store in dialog data
  end
  send_prompt(session, options)
end

#create_promptObject



37
# File 'lib/bot_framework/prompt.rb', line 37

def create_prompt; end

#dialog_resumedObject



31
# File 'lib/bot_framework/prompt.rb', line 31

def dialog_resumed; end

#recognizeObject



33
# File 'lib/bot_framework/prompt.rb', line 33

def recognize; end

#reply_received(session, args = {}) ⇒ Object



29
# File 'lib/bot_framework/prompt.rb', line 29

def reply_received(session, args = {}); end

#send_prompt(session, options) ⇒ Object



35
# File 'lib/bot_framework/prompt.rb', line 35

def send_prompt(session, options); end