Class: MicrosoftGraph::Models::TeamsAppInstalledEventMessageDetail
- Inherits:
-
EventMessageDetail
- Object
- EventMessageDetail
- MicrosoftGraph::Models::TeamsAppInstalledEventMessageDetail
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teams_app_installed_event_message_detail.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new teamsAppInstalledEventMessageDetail and sets the default values.
-
#initiator ⇒ Object
Gets the initiator property value.
-
#initiator=(value) ⇒ Object
Sets the initiator property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#teams_app_display_name ⇒ Object
Gets the teamsAppDisplayName property value.
-
#teams_app_display_name=(value) ⇒ Object
Sets the teamsAppDisplayName property value.
-
#teams_app_id ⇒ Object
Gets the teamsAppId property value.
-
#teams_app_id=(value) ⇒ Object
Sets the teamsAppId property value.
Methods inherited from EventMessageDetail
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new teamsAppInstalledEventMessageDetail and sets the default values.
22 23 24 25 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.teamsAppInstalledEventMessageDetail" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TeamsAppInstalledEventMessageDetail.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
39 40 41 42 43 44 45 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 39 def get_field_deserializers() return super.merge({ "initiator" => lambda {|n| @initiator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "teamsAppDisplayName" => lambda {|n| @teams_app_display_name = n.get_string_value() }, "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() }, }) end |
#initiator ⇒ Object
Gets the initiator property value. Initiator of the event.
50 51 52 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 50 def initiator return @initiator end |
#initiator=(value) ⇒ Object
Sets the initiator property value. Initiator of the event.
58 59 60 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 58 def initiator=(value) @initiator = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
66 67 68 69 70 71 72 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 66 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("initiator", @initiator) writer.write_string_value("teamsAppDisplayName", @teams_app_display_name) writer.write_string_value("teamsAppId", @teams_app_id) end |
#teams_app_display_name ⇒ Object
Gets the teamsAppDisplayName property value. Display name of the teamsApp.
77 78 79 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 77 def teams_app_display_name return @teams_app_display_name end |
#teams_app_display_name=(value) ⇒ Object
Sets the teamsAppDisplayName property value. Display name of the teamsApp.
85 86 87 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 85 def teams_app_display_name=(value) @teams_app_display_name = value end |
#teams_app_id ⇒ Object
Gets the teamsAppId property value. Unique identifier of the teamsApp.
92 93 94 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 92 def teams_app_id return @teams_app_id end |
#teams_app_id=(value) ⇒ Object
Sets the teamsAppId property value. Unique identifier of the teamsApp.
100 101 102 |
# File 'lib/models/teams_app_installed_event_message_detail.rb', line 100 def teams_app_id=(value) @teams_app_id = value end |