Class: Teams::Api::ActivityValue

Inherits:
Model
  • Object
show all
Defined in:
lib/teams/api/activity_value.rb

Instance Attribute Summary

Attributes inherited from Model

#raw

Instance Method Summary collapse

Methods inherited from Model

#initialize, #to_h

Constructor Details

This class inherits a constructor from Teams::Api::Model

Instance Method Details

#command_idObject

The message extension command that fired (query/submit/fetchTask).



13
14
15
# File 'lib/teams/api/activity_value.rb', line 13

def command_id
  read("commandId", "command_id")
end

#dataObject

The invoke payload's data, e.g. dialog submit form values plus the card action's data (dialog_id / action routing keys).



8
9
10
# File 'lib/teams/api/activity_value.rb', line 8

def data
  read("data")
end

#datasetObject

The Data.Query dataset id authored on the Adaptive Card.



65
66
67
# File 'lib/teams/api/activity_value.rb', line 65

def dataset
  read("dataset")
end

#end_timeObject



44
45
46
# File 'lib/teams/api/activity_value.rb', line 44

def end_time
  read("EndTime", "endTime", "end_time")
end

#idObject

Meeting start/end event fields. Teams sends these PascalCase on the wire (Id, JoinUrl, Title, MeetingType, StartTime, EndTime).



24
25
26
# File 'lib/teams/api/activity_value.rb', line 24

def id
  read("Id", "id")
end

#join_urlObject



36
37
38
# File 'lib/teams/api/activity_value.rb', line 36

def join_url
  read("JoinUrl", "joinUrl", "join_url")
end

#kindObject



60
61
62
# File 'lib/teams/api/activity_value.rb', line 60

def kind
  read("kind")
end

#meeting_typeObject



32
33
34
# File 'lib/teams/api/activity_value.rb', line 32

def meeting_type
  read("MeetingType", "meetingType", "meeting_type")
end

#parametersObject

Message extension query parameters: [=> ..., "value" => ...].



18
19
20
# File 'lib/teams/api/activity_value.rb', line 18

def parameters
  Array(read("parameters"))
end

#query_optionsObject

Pagination options; skip and top read from the nested wrapper.



55
56
57
58
# File 'lib/teams/api/activity_value.rb', line 55

def query_options
  value = read("queryOptions", "query_options")
  value.is_a?(Hash) ? ActivityValue.new(value) : value
end

#query_textObject

application/search invoke fields (Adaptive Card dynamic typeahead Input.ChoiceSet queries via choices.data / Data.Query).



50
51
52
# File 'lib/teams/api/activity_value.rb', line 50

def query_text
  read("queryText", "query_text")
end

#skipObject



69
70
71
# File 'lib/teams/api/activity_value.rb', line 69

def skip
  read("skip")
end

#start_timeObject



40
41
42
# File 'lib/teams/api/activity_value.rb', line 40

def start_time
  read("StartTime", "startTime", "start_time")
end

#titleObject



28
29
30
# File 'lib/teams/api/activity_value.rb', line 28

def title
  read("Title", "title")
end

#topObject



73
74
75
# File 'lib/teams/api/activity_value.rb', line 73

def top
  read("top")
end