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

#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

#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

#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