Class: MicrosoftGraph::Models::ChatMessageHistoryItem
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ChatMessageHistoryItem
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/chat_message_history_item.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
-
#actions ⇒ Object
Gets the actions property value.
-
#actions=(value) ⇒ Object
Sets the actions property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new chatMessageHistoryItem and sets the default values.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#reaction ⇒ Object
Gets the reaction property value.
-
#reaction=(value) ⇒ Object
Sets the reaction property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new chatMessageHistoryItem and sets the default values.
59 60 61 |
# File 'lib/models/chat_message_history_item.rb', line 59 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
67 68 69 70 |
# File 'lib/models/chat_message_history_item.rb', line 67 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ChatMessageHistoryItem.new end |
Instance Method Details
#actions ⇒ Object
Gets the actions property value. The actions property
29 30 31 |
# File 'lib/models/chat_message_history_item.rb', line 29 def actions return @actions end |
#actions=(value) ⇒ Object
Sets the actions property value. The actions property
37 38 39 |
# File 'lib/models/chat_message_history_item.rb', line 37 def actions=(value) @actions = value end |
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
44 45 46 |
# File 'lib/models/chat_message_history_item.rb', line 44 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
52 53 54 |
# File 'lib/models/chat_message_history_item.rb', line 52 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
75 76 77 78 79 80 81 82 |
# File 'lib/models/chat_message_history_item.rb', line 75 def get_field_deserializers() return { "actions" => lambda {|n| @actions = n.get_enum_value(MicrosoftGraph::Models::ChatMessageActions) }, "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "reaction" => lambda {|n| @reaction = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ChatMessageReaction.create_from_discriminator_value(pn) }) }, } end |
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value. The date and time when the message was modified.
87 88 89 |
# File 'lib/models/chat_message_history_item.rb', line 87 def modified_date_time return @modified_date_time end |
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value. The date and time when the message was modified.
95 96 97 |
# File 'lib/models/chat_message_history_item.rb', line 95 def modified_date_time=(value) @modified_date_time = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
102 103 104 |
# File 'lib/models/chat_message_history_item.rb', line 102 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
110 111 112 |
# File 'lib/models/chat_message_history_item.rb', line 110 def odata_type=(value) @odata_type = value end |
#reaction ⇒ Object
Gets the reaction property value. The reaction in the modified message.
117 118 119 |
# File 'lib/models/chat_message_history_item.rb', line 117 def reaction return @reaction end |
#reaction=(value) ⇒ Object
Sets the reaction property value. The reaction in the modified message.
125 126 127 |
# File 'lib/models/chat_message_history_item.rb', line 125 def reaction=(value) @reaction = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
133 134 135 136 137 138 139 140 |
# File 'lib/models/chat_message_history_item.rb', line 133 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_enum_value("actions", @actions) writer.write_date_time_value("modifiedDateTime", @modified_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("reaction", @reaction) writer.write_additional_data(@additional_data) end |