Class: Teams::Api::ActivityValue
- Defined in:
- lib/teams/api/activity_value.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#command_id ⇒ Object
The message extension command that fired (query/submit/fetchTask).
-
#data ⇒ Object
The invoke payload's data, e.g.
-
#dataset ⇒ Object
The Data.Query dataset id authored on the Adaptive Card.
- #end_time ⇒ Object
-
#id ⇒ Object
Meeting start/end event fields.
- #join_url ⇒ Object
- #kind ⇒ Object
- #meeting_type ⇒ Object
-
#parameters ⇒ Object
Message extension query parameters: [=> ..., "value" => ...].
-
#query_options ⇒ Object
Pagination options; skip and top read from the nested wrapper.
-
#query_text ⇒ Object
application/search invoke fields (Adaptive Card dynamic typeahead Input.ChoiceSet queries via choices.data / Data.Query).
- #skip ⇒ Object
- #start_time ⇒ Object
- #title ⇒ Object
- #top ⇒ Object
Methods inherited from Model
Constructor Details
This class inherits a constructor from Teams::Api::Model
Instance Method Details
#command_id ⇒ Object
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 |
#data ⇒ Object
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 |
#dataset ⇒ Object
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_time ⇒ Object
44 45 46 |
# File 'lib/teams/api/activity_value.rb', line 44 def end_time read("EndTime", "endTime", "end_time") end |
#id ⇒ Object
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_url ⇒ Object
36 37 38 |
# File 'lib/teams/api/activity_value.rb', line 36 def join_url read("JoinUrl", "joinUrl", "join_url") end |
#kind ⇒ Object
60 61 62 |
# File 'lib/teams/api/activity_value.rb', line 60 def kind read("kind") end |
#meeting_type ⇒ Object
32 33 34 |
# File 'lib/teams/api/activity_value.rb', line 32 def meeting_type read("MeetingType", "meetingType", "meeting_type") end |
#parameters ⇒ Object
Message extension query parameters: [=> ..., "value" => ...].
18 19 20 |
# File 'lib/teams/api/activity_value.rb', line 18 def parameters Array(read("parameters")) end |
#query_options ⇒ Object
Pagination options; skip and top read from the nested wrapper.
55 56 57 58 |
# File 'lib/teams/api/activity_value.rb', line 55 def value = read("queryOptions", "query_options") value.is_a?(Hash) ? ActivityValue.new(value) : value end |
#query_text ⇒ Object
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 |
#skip ⇒ Object
69 70 71 |
# File 'lib/teams/api/activity_value.rb', line 69 def skip read("skip") end |
#start_time ⇒ Object
40 41 42 |
# File 'lib/teams/api/activity_value.rb', line 40 def start_time read("StartTime", "startTime", "start_time") end |
#title ⇒ Object
28 29 30 |
# File 'lib/teams/api/activity_value.rb', line 28 def title read("Title", "title") end |
#top ⇒ Object
73 74 75 |
# File 'lib/teams/api/activity_value.rb', line 73 def top read("top") end |