Class: MicrosoftGraph::Models::ConversationThread
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conversation_thread.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
-
#cc_recipients ⇒ Object
Gets the ccRecipients property value.
-
#cc_recipients=(value) ⇒ Object
Sets the ccRecipients property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#has_attachments ⇒ Object
Gets the hasAttachments property value.
-
#has_attachments=(value) ⇒ Object
Sets the hasAttachments property value.
-
#initialize ⇒ Object
constructor
Instantiates a new conversationThread and sets the default values.
-
#is_locked ⇒ Object
Gets the isLocked property value.
-
#is_locked=(value) ⇒ Object
Sets the isLocked property value.
-
#last_delivered_date_time ⇒ Object
Gets the lastDeliveredDateTime property value.
-
#last_delivered_date_time=(value) ⇒ Object
Sets the lastDeliveredDateTime property value.
-
#posts ⇒ Object
Gets the posts property value.
-
#posts=(value) ⇒ Object
Sets the posts property value.
-
#preview ⇒ Object
Gets the preview property value.
-
#preview=(value) ⇒ Object
Sets the preview property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#to_recipients ⇒ Object
Gets the toRecipients property value.
-
#to_recipients=(value) ⇒ Object
Sets the toRecipients property value.
-
#topic ⇒ Object
Gets the topic property value.
-
#topic=(value) ⇒ Object
Sets the topic property value.
-
#unique_senders ⇒ Object
Gets the uniqueSenders property value.
-
#unique_senders=(value) ⇒ Object
Sets the uniqueSenders property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new conversationThread and sets the default values.
56 57 58 |
# File 'lib/models/conversation_thread.rb', line 56 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
64 65 66 67 |
# File 'lib/models/conversation_thread.rb', line 64 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConversationThread.new end |
Instance Method Details
#cc_recipients ⇒ Object
Gets the ccRecipients property value. The Cc: recipients for the thread. Returned only on $select.
41 42 43 |
# File 'lib/models/conversation_thread.rb', line 41 def cc_recipients return @cc_recipients end |
#cc_recipients=(value) ⇒ Object
Sets the ccRecipients property value. The Cc: recipients for the thread. Returned only on $select.
49 50 51 |
# File 'lib/models/conversation_thread.rb', line 49 def cc_recipients=(value) @cc_recipients = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/models/conversation_thread.rb', line 72 def get_field_deserializers() return super.merge({ "ccRecipients" => lambda {|n| @cc_recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "hasAttachments" => lambda {|n| = n.get_boolean_value() }, "isLocked" => lambda {|n| @is_locked = n.get_boolean_value() }, "lastDeliveredDateTime" => lambda {|n| @last_delivered_date_time = n.get_date_time_value() }, "posts" => lambda {|n| @posts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Post.create_from_discriminator_value(pn) }) }, "preview" => lambda {|n| @preview = n.get_string_value() }, "toRecipients" => lambda {|n| @to_recipients = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "topic" => lambda {|n| @topic = n.get_string_value() }, "uniqueSenders" => lambda {|n| @unique_senders = n.get_collection_of_primitive_values(String) }, }) end |
#has_attachments ⇒ Object
Gets the hasAttachments property value. Indicates whether any of the posts within this thread has at least one attachment. Returned by default.
89 90 91 |
# File 'lib/models/conversation_thread.rb', line 89 def return end |
#has_attachments=(value) ⇒ Object
Sets the hasAttachments property value. Indicates whether any of the posts within this thread has at least one attachment. Returned by default.
97 98 99 |
# File 'lib/models/conversation_thread.rb', line 97 def (value) = value end |
#is_locked ⇒ Object
Gets the isLocked property value. Indicates if the thread is locked. Returned by default.
104 105 106 |
# File 'lib/models/conversation_thread.rb', line 104 def is_locked return @is_locked end |
#is_locked=(value) ⇒ Object
Sets the isLocked property value. Indicates if the thread is locked. Returned by default.
112 113 114 |
# File 'lib/models/conversation_thread.rb', line 112 def is_locked=(value) @is_locked = value end |
#last_delivered_date_time ⇒ Object
Gets the lastDeliveredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.Returned by default.
119 120 121 |
# File 'lib/models/conversation_thread.rb', line 119 def last_delivered_date_time return @last_delivered_date_time end |
#last_delivered_date_time=(value) ⇒ Object
Sets the lastDeliveredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.Returned by default.
127 128 129 |
# File 'lib/models/conversation_thread.rb', line 127 def last_delivered_date_time=(value) @last_delivered_date_time = value end |
#posts ⇒ Object
Gets the posts property value. The posts property
134 135 136 |
# File 'lib/models/conversation_thread.rb', line 134 def posts return @posts end |
#posts=(value) ⇒ Object
Sets the posts property value. The posts property
142 143 144 |
# File 'lib/models/conversation_thread.rb', line 142 def posts=(value) @posts = value end |
#preview ⇒ Object
Gets the preview property value. A short summary from the body of the latest post in this conversation. Returned by default.
149 150 151 |
# File 'lib/models/conversation_thread.rb', line 149 def preview return @preview end |
#preview=(value) ⇒ Object
Sets the preview property value. A short summary from the body of the latest post in this conversation. Returned by default.
157 158 159 |
# File 'lib/models/conversation_thread.rb', line 157 def preview=(value) @preview = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/models/conversation_thread.rb', line 165 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("ccRecipients", @cc_recipients) writer.write_boolean_value("hasAttachments", ) writer.write_boolean_value("isLocked", @is_locked) writer.write_date_time_value("lastDeliveredDateTime", @last_delivered_date_time) writer.write_collection_of_object_values("posts", @posts) writer.write_string_value("preview", @preview) writer.write_collection_of_object_values("toRecipients", @to_recipients) writer.write_string_value("topic", @topic) writer.write_collection_of_primitive_values("uniqueSenders", @unique_senders) end |
#to_recipients ⇒ Object
Gets the toRecipients property value. The To: recipients for the thread. Returned only on $select.
182 183 184 |
# File 'lib/models/conversation_thread.rb', line 182 def to_recipients return @to_recipients end |
#to_recipients=(value) ⇒ Object
Sets the toRecipients property value. The To: recipients for the thread. Returned only on $select.
190 191 192 |
# File 'lib/models/conversation_thread.rb', line 190 def to_recipients=(value) @to_recipients = value end |
#topic ⇒ Object
Gets the topic property value. The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. Returned by default.
197 198 199 |
# File 'lib/models/conversation_thread.rb', line 197 def topic return @topic end |
#topic=(value) ⇒ Object
Sets the topic property value. The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. Returned by default.
205 206 207 |
# File 'lib/models/conversation_thread.rb', line 205 def topic=(value) @topic = value end |
#unique_senders ⇒ Object
Gets the uniqueSenders property value. All the users that sent a message to this thread. Returned by default.
212 213 214 |
# File 'lib/models/conversation_thread.rb', line 212 def unique_senders return @unique_senders end |
#unique_senders=(value) ⇒ Object
Sets the uniqueSenders property value. All the users that sent a message to this thread. Returned by default.
220 221 222 |
# File 'lib/models/conversation_thread.rb', line 220 def unique_senders=(value) @unique_senders = value end |