Class: MicrosoftGraph::Models::CallRecordsCallRecord

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_call_record.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new callRecordsCallRecord and sets the default values.



44
45
46
# File 'lib/models/call_records_call_record.rb', line 44

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a call_records_call_record

Raises:

  • (StandardError)


52
53
54
55
# File 'lib/models/call_records_call_record.rb', line 52

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return CallRecordsCallRecord.new
end

Instance Method Details

#end_date_timeObject

Gets the endDateTime property value. UTC time when the last user left the call. The DateTimeOffset 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

Returns:

  • a date_time



60
61
62
# File 'lib/models/call_records_call_record.rb', line 60

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. UTC time when the last user left the call. The DateTimeOffset 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

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



68
69
70
# File 'lib/models/call_records_call_record.rb', line 68

def end_date_time=(value)
    @end_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/models/call_records_call_record.rb', line 75

def get_field_deserializers()
    return super.merge({
        "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() },
        "joinWebUrl" => lambda {|n| @join_web_url = n.get_string_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "modalities" => lambda {|n| @modalities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsModality.create_from_discriminator_value(pn) }) },
        "organizer" => lambda {|n| @organizer = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "participants" => lambda {|n| @participants = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "sessions" => lambda {|n| @sessions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsSession.create_from_discriminator_value(pn) }) },
        "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() },
        "type" => lambda {|n| @type = n.get_enum_value(MicrosoftGraph::Models::CallRecordsCallType) },
        "version" => lambda {|n| @version = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
    })
end

#join_web_urlObject

Gets the joinWebUrl property value. Meeting URL associated to the call. May not be available for a peerToPeer call record type.

Returns:

  • a string



93
94
95
# File 'lib/models/call_records_call_record.rb', line 93

def join_web_url
    return @join_web_url
end

#join_web_url=(value) ⇒ Object

Sets the joinWebUrl property value. Meeting URL associated to the call. May not be available for a peerToPeer call record type.

Parameters:

  • value

    Value to set for the joinWebUrl property.

Returns:

  • a void



101
102
103
# File 'lib/models/call_records_call_record.rb', line 101

def join_web_url=(value)
    @join_web_url = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. UTC time when the call record was created. The DatetimeOffset 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

Returns:

  • a date_time



108
109
110
# File 'lib/models/call_records_call_record.rb', line 108

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. UTC time when the call record was created. The DatetimeOffset 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

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



116
117
118
# File 'lib/models/call_records_call_record.rb', line 116

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#modalitiesObject

Gets the modalities property value. List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.

Returns:

  • a call_records_modality



123
124
125
# File 'lib/models/call_records_call_record.rb', line 123

def modalities
    return @modalities
end

#modalities=(value) ⇒ Object

Sets the modalities property value. List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.

Parameters:

  • value

    Value to set for the modalities property.

Returns:

  • a void



131
132
133
# File 'lib/models/call_records_call_record.rb', line 131

def modalities=(value)
    @modalities = value
end

#organizerObject

Gets the organizer property value. The organizing party’s identity.

Returns:

  • a identity_set



138
139
140
# File 'lib/models/call_records_call_record.rb', line 138

def organizer
    return @organizer
end

#organizer=(value) ⇒ Object

Sets the organizer property value. The organizing party’s identity.

Parameters:

  • value

    Value to set for the organizer property.

Returns:

  • a void



146
147
148
# File 'lib/models/call_records_call_record.rb', line 146

def organizer=(value)
    @organizer = value
end

#participantsObject

Gets the participants property value. List of distinct identities involved in the call.

Returns:

  • a identity_set



153
154
155
# File 'lib/models/call_records_call_record.rb', line 153

def participants
    return @participants
end

#participants=(value) ⇒ Object

Sets the participants property value. List of distinct identities involved in the call.

Parameters:

  • value

    Value to set for the participants property.

Returns:

  • a void



161
162
163
# File 'lib/models/call_records_call_record.rb', line 161

def participants=(value)
    @participants = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/models/call_records_call_record.rb', line 169

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("endDateTime", @end_date_time)
    writer.write_string_value("joinWebUrl", @join_web_url)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_collection_of_object_values("modalities", @modalities)
    writer.write_object_value("organizer", @organizer)
    writer.write_collection_of_object_values("participants", @participants)
    writer.write_collection_of_object_values("sessions", @sessions)
    writer.write_date_time_value("startDateTime", @start_date_time)
    writer.write_enum_value("type", @type)
    writer.write_object_value("version", @version)
end

#sessionsObject

Gets the sessions property value. List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable.

Returns:

  • a call_records_session



187
188
189
# File 'lib/models/call_records_call_record.rb', line 187

def sessions
    return @sessions
end

#sessions=(value) ⇒ Object

Sets the sessions property value. List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable.

Parameters:

  • value

    Value to set for the sessions property.

Returns:

  • a void



195
196
197
# File 'lib/models/call_records_call_record.rb', line 195

def sessions=(value)
    @sessions = value
end

#start_date_timeObject

Gets the startDateTime property value. UTC time when the first user joined the call. The DatetimeOffset 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.

Returns:

  • a date_time



202
203
204
# File 'lib/models/call_records_call_record.rb', line 202

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. UTC time when the first user joined the call. The DatetimeOffset 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.

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



210
211
212
# File 'lib/models/call_records_call_record.rb', line 210

def start_date_time=(value)
    @start_date_time = value
end

#typeObject

Gets the type property value. The type property

Returns:

  • a call_records_call_type



217
218
219
# File 'lib/models/call_records_call_record.rb', line 217

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. The type property

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



225
226
227
# File 'lib/models/call_records_call_record.rb', line 225

def type=(value)
    @type = value
end

#versionObject

Gets the version property value. Monotonically increasing version of the call record. Higher version call records with the same id includes additional data compared to the lower version.

Returns:

  • a int64



232
233
234
# File 'lib/models/call_records_call_record.rb', line 232

def version
    return @version
end

#version=(value) ⇒ Object

Sets the version property value. Monotonically increasing version of the call record. Higher version call records with the same id includes additional data compared to the lower version.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



240
241
242
# File 'lib/models/call_records_call_record.rb', line 240

def version=(value)
    @version = value
end