class BotPlatform::State::ConversationState

Public Class Methods

new(storage) click to toggle source
Calls superclass method BotPlatform::State::BotState::new
# File lib/bot_platform/state/conversation_state.rb, line 6
def initialize(storage)
  super(storage, "conversation_state")
end

Public Instance Methods

get_storage_key(turn_context) click to toggle source
# File lib/bot_platform/state/conversation_state.rb, line 10
def get_storage_key(turn_context)
  channel_id = turn_context.activity.channel_id
  conversation_id = turn_context.conversation.id
  "#{channel_id}/conversations/#{conversation_id}"
end