Class: MicrosoftGraph::Teamwork::SendActivityNotificationToRecipients::SendActivityNotificationToRecipientsPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Teamwork::SendActivityNotificationToRecipients::SendActivityNotificationToRecipientsPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_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 sendActivityNotificationToRecipientsPostRequestBody and sets the default values.
-
#preview_text ⇒ Object
Gets the previewText property value.
-
#preview_text=(value) ⇒ Object
Sets the previewText property value.
-
#recipients ⇒ Object
Gets the recipients property value.
-
#recipients=(value) ⇒ Object
Sets the recipients property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#teams_app_id ⇒ Object
Gets the teamsAppId property value.
-
#teams_app_id=(value) ⇒ Object
Sets the teamsAppId property value.
-
#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 sendActivityNotificationToRecipientsPostRequestBody and sets the default values.
88 89 90 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 88 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
96 97 98 99 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 96 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SendActivityNotificationToRecipientsPostRequestBody.new end |
Instance Method Details
#activity_type ⇒ Object
Gets the activityType property value. The activityType property
43 44 45 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 43 def activity_type return @activity_type end |
#activity_type=(value) ⇒ Object
Sets the activityType property value. The activityType property
51 52 53 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 51 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.
58 59 60 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 58 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.
66 67 68 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 66 def additional_data=(value) @additional_data = value end |
#chain_id ⇒ Object
Gets the chainId property value. The chainId property
73 74 75 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 73 def chain_id return @chain_id end |
#chain_id=(value) ⇒ Object
Sets the chainId property value. The chainId property
81 82 83 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 81 def chain_id=(value) @chain_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 104 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) }) }, "recipients" => lambda {|n| @recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TeamworkNotificationRecipient.create_from_discriminator_value(pn) }) }, "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() }, "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
119 120 121 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 119 def preview_text return @preview_text end |
#preview_text=(value) ⇒ Object
Sets the previewText property value. The previewText property
127 128 129 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 127 def preview_text=(value) @preview_text = value end |
#recipients ⇒ Object
Gets the recipients property value. The recipients property
134 135 136 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 134 def recipients return @recipients end |
#recipients=(value) ⇒ Object
Sets the recipients property value. The recipients property
142 143 144 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 142 def recipients=(value) @recipients = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 150 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_collection_of_object_values("recipients", @recipients) writer.write_string_value("teamsAppId", @teams_app_id) writer.write_collection_of_object_values("templateParameters", @template_parameters) writer.write_object_value("topic", @topic) writer.write_additional_data(@additional_data) end |
#teams_app_id ⇒ Object
Gets the teamsAppId property value. The teamsAppId property
165 166 167 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 165 def teams_app_id return @teams_app_id end |
#teams_app_id=(value) ⇒ Object
Sets the teamsAppId property value. The teamsAppId property
173 174 175 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 173 def teams_app_id=(value) @teams_app_id = value end |
#template_parameters ⇒ Object
Gets the templateParameters property value. The templateParameters property
180 181 182 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 180 def template_parameters return @template_parameters end |
#template_parameters=(value) ⇒ Object
Sets the templateParameters property value. The templateParameters property
188 189 190 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 188 def template_parameters=(value) @template_parameters = value end |
#topic ⇒ Object
Gets the topic property value. The topic property
195 196 197 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 195 def topic return @topic end |
#topic=(value) ⇒ Object
Sets the topic property value. The topic property
203 204 205 |
# File 'lib/teamwork/send_activity_notification_to_recipients/send_activity_notification_to_recipients_post_request_body.rb', line 203 def topic=(value) @topic = value end |