com.microsoft.graph.beta.generated.models.CallEndedEventMessageDetail Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.PeriodAndDuration;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class CallEndedEventMessageDetail extends EventMessageDetail implements Parsable {
/**
* Instantiates a new {@link CallEndedEventMessageDetail} and sets the default values.
*/
public CallEndedEventMessageDetail() {
super();
this.setOdataType("#microsoft.graph.callEndedEventMessageDetail");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link CallEndedEventMessageDetail}
*/
@jakarta.annotation.Nonnull
public static CallEndedEventMessageDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new CallEndedEventMessageDetail();
}
/**
* Gets the callDuration property value. Duration of the call.
* @return a {@link PeriodAndDuration}
*/
@jakarta.annotation.Nullable
public PeriodAndDuration getCallDuration() {
return this.backingStore.get("callDuration");
}
/**
* Gets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
* @return a {@link TeamworkCallEventType}
*/
@jakarta.annotation.Nullable
public TeamworkCallEventType getCallEventType() {
return this.backingStore.get("callEventType");
}
/**
* Gets the callId property value. Unique identifier of the call.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCallId() {
return this.backingStore.get("callId");
}
/**
* Gets the callParticipants property value. List of call participants.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCallParticipants() {
return this.backingStore.get("callParticipants");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("callDuration", (n) -> { this.setCallDuration(n.getPeriodAndDurationValue()); });
deserializerMap.put("callEventType", (n) -> { this.setCallEventType(n.getEnumValue(TeamworkCallEventType::forValue)); });
deserializerMap.put("callId", (n) -> { this.setCallId(n.getStringValue()); });
deserializerMap.put("callParticipants", (n) -> { this.setCallParticipants(n.getCollectionOfObjectValues(CallParticipantInfo::createFromDiscriminatorValue)); });
deserializerMap.put("initiator", (n) -> { this.setInitiator(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the initiator property value. Initiator of the event.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getInitiator() {
return this.backingStore.get("initiator");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writePeriodAndDurationValue("callDuration", this.getCallDuration());
writer.writeEnumValue("callEventType", this.getCallEventType());
writer.writeStringValue("callId", this.getCallId());
writer.writeCollectionOfObjectValues("callParticipants", this.getCallParticipants());
writer.writeObjectValue("initiator", this.getInitiator());
}
/**
* Sets the callDuration property value. Duration of the call.
* @param value Value to set for the callDuration property.
*/
public void setCallDuration(@jakarta.annotation.Nullable final PeriodAndDuration value) {
this.backingStore.set("callDuration", value);
}
/**
* Sets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
* @param value Value to set for the callEventType property.
*/
public void setCallEventType(@jakarta.annotation.Nullable final TeamworkCallEventType value) {
this.backingStore.set("callEventType", value);
}
/**
* Sets the callId property value. Unique identifier of the call.
* @param value Value to set for the callId property.
*/
public void setCallId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("callId", value);
}
/**
* Sets the callParticipants property value. List of call participants.
* @param value Value to set for the callParticipants property.
*/
public void setCallParticipants(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("callParticipants", value);
}
/**
* Sets the initiator property value. Initiator of the event.
* @param value Value to set for the initiator property.
*/
public void setInitiator(@jakarta.annotation.Nullable final IdentitySet value) {
this.backingStore.set("initiator", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy