Class: MicrosoftGraph::Teams::Item::SendActivityNotification::SendActivityNotificationPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Teams::Item::SendActivityNotification::SendActivityNotificationPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.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
-
#activity_type ⇒ Object
Gets the activityType property value.
-
#activity_type=(value) ⇒ Object
Sets the activityType property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#chain_id ⇒ Object
Gets the chainId property value.
-
#chain_id=(value) ⇒ Object
Sets the chainId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new sendActivityNotificationPostRequestBody and sets the default values.
-
#preview_text ⇒ Object
Gets the previewText property value.
-
#preview_text=(value) ⇒ Object
Sets the previewText property value.
-
#recipient ⇒ Object
Gets the recipient property value.
-
#recipient=(value) ⇒ Object
Sets the recipient property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#template_parameters ⇒ Object
Gets the templateParameters property value.
-
#template_parameters=(value) ⇒ Object
Sets the templateParameters property value.
-
#topic ⇒ Object
Gets the topic property value.
-
#topic=(value) ⇒ Object
Sets the topic property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new sendActivityNotificationPostRequestBody and sets the default values.
87 88 89 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 87 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
95 96 97 98 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 95 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SendActivityNotificationPostRequestBody.new end |
Instance Method Details
#activity_type ⇒ Object
Gets the activityType property value. The activityType property
42 43 44 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 42 def activity_type return @activity_type end |
#activity_type=(value) ⇒ Object
Sets the activityType property value. The activityType property
50 51 52 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 50 def activity_type=(value) @activity_type = 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.
57 58 59 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 57 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.
65 66 67 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 65 def additional_data=(value) @additional_data = value end |
#chain_id ⇒ Object
Gets the chainId property value. The chainId property
72 73 74 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 72 def chain_id return @chain_id end |
#chain_id=(value) ⇒ Object
Sets the chainId property value. The chainId property
80 81 82 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 80 def chain_id=(value) @chain_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
103 104 105 106 107 108 109 110 111 112 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 103 def get_field_deserializers() return { "activityType" => lambda {|n| @activity_type = n.get_string_value() }, "chainId" => lambda {|n| @chain_id = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "previewText" => lambda {|n| @preview_text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, "recipient" => lambda {|n| @recipient = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkNotificationRecipient.create_from_discriminator_value(pn) }) }, "templateParameters" => lambda {|n| @template_parameters = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, "topic" => lambda {|n| @topic = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkActivityTopic.create_from_discriminator_value(pn) }) }, } end |
#preview_text ⇒ Object
Gets the previewText property value. The previewText property
117 118 119 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 117 def preview_text return @preview_text end |
#preview_text=(value) ⇒ Object
Sets the previewText property value. The previewText property
125 126 127 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 125 def preview_text=(value) @preview_text = value end |
#recipient ⇒ Object
Gets the recipient property value. The recipient property
132 133 134 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 132 def recipient return @recipient end |
#recipient=(value) ⇒ Object
Sets the recipient property value. The recipient property
140 141 142 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 140 def recipient=(value) @recipient = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 148 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("activityType", @activity_type) writer.write_object_value("chainId", @chain_id) writer.write_object_value("previewText", @preview_text) writer.write_object_value("recipient", @recipient) writer.write_collection_of_object_values("templateParameters", @template_parameters) writer.write_object_value("topic", @topic) writer.write_additional_data(@additional_data) end |
#template_parameters ⇒ Object
Gets the templateParameters property value. The templateParameters property
162 163 164 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 162 def template_parameters return @template_parameters end |
#template_parameters=(value) ⇒ Object
Sets the templateParameters property value. The templateParameters property
170 171 172 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 170 def template_parameters=(value) @template_parameters = value end |
#topic ⇒ Object
Gets the topic property value. The topic property
177 178 179 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 177 def topic return @topic end |
#topic=(value) ⇒ Object
Sets the topic property value. The topic property
185 186 187 |
# File 'lib/teams/item/send_activity_notification/send_activity_notification_post_request_body.rb', line 185 def topic=(value) @topic = value end |