Skip to content

Commit

Permalink
Richardcho/remove participant (Azure#34066)
Browse files Browse the repository at this point in the history
* update swagger ref

* add new events

* fix syntax error
  • Loading branch information
richardcho-msft authored Mar 17, 2023
1 parent a98a0f7 commit 848f8e6
Show file tree
Hide file tree
Showing 10 changed files with 524 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class AddParticipantRequestInternal {
/*
* (Optional) The display name of the source that is associated with this
* invite operation when
* adding a PSTN participant or teams user. Note: Will not update the
* adding a PSTN participant or teams user. Note: Will not update the
* display name in the roster.
*/
@JsonProperty(value = "sourceDisplayName")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public final class CreateCallRequestInternal {
@JsonProperty(value = "azureCognitiveServicesEndpointUrl")
private String azureCognitiveServicesEndpointUrl;

/*
* Used by customer to send custom context to targets
*/
@JsonProperty(value = "customContext")
private CustomContext customContext;

/**
* Get the targets property: The targets of the call.
*
Expand Down Expand Up @@ -225,4 +231,24 @@ public CreateCallRequestInternal setAzureCognitiveServicesEndpointUrl(String azu
this.azureCognitiveServicesEndpointUrl = azureCognitiveServicesEndpointUrl;
return this;
}

/**
* Get the customContext property: Used by customer to send custom context to targets.
*
* @return the customContext value.
*/
public CustomContext getCustomContext() {
return this.customContext;
}

/**
* Set the customContext property: Used by customer to send custom context to targets.
*
* @param customContext the customContext value to set.
* @return the CreateCallRequestInternal object itself.
*/
public CreateCallRequestInternal setCustomContext(CustomContext customContext) {
this.customContext = customContext;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public final class RedirectCallRequestInternal {
@JsonProperty(value = "target", required = true)
private CommunicationIdentifierModel target;

/*
* Used by customer to send custom context to targets
*/
@JsonProperty(value = "customContext")
private CustomContext customContext;

/**
* Get the incomingCallContext property: The context associated with the call.
*
Expand Down Expand Up @@ -61,4 +67,24 @@ public RedirectCallRequestInternal setTarget(CommunicationIdentifierModel target
this.target = target;
return this;
}

/**
* Get the customContext property: Used by customer to send custom context to targets.
*
* @return the customContext value.
*/
public CustomContext getCustomContext() {
return this.customContext;
}

/**
* Set the customContext property: Used by customer to send custom context to targets.
*
* @param customContext the customContext value to set.
* @return the RedirectCallRequestInternal object itself.
*/
public RedirectCallRequestInternal setCustomContext(CustomContext customContext) {
this.customContext = customContext;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callautomation.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The failed to remove participant event. */
@Fluent
public final class RemoveParticipantFailed {
/*
* Call connection ID.
*/
@JsonProperty(value = "callConnectionId")
private String callConnectionId;

/*
* Server call ID.
*/
@JsonProperty(value = "serverCallId")
private String serverCallId;

/*
* Correlation ID for event to call correlation. Also called ChainId for
* skype chain ID.
*/
@JsonProperty(value = "correlationId")
private String correlationId;

/*
* Used by customers when calling mid-call actions to correlate the request
* to the response event.
*/
@JsonProperty(value = "operationContext")
private String operationContext;

/*
* Contains the resulting SIP code/sub-code and message from NGC services.
*/
@JsonProperty(value = "resultInformation")
private ResultInformation resultInformation;

/*
* Participant
*/
@JsonProperty(value = "participant")
private CommunicationIdentifierModel participant;

/**
* Get the callConnectionId property: Call connection ID.
*
* @return the callConnectionId value.
*/
public String getCallConnectionId() {
return this.callConnectionId;
}

/**
* Set the callConnectionId property: Call connection ID.
*
* @param callConnectionId the callConnectionId value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setCallConnectionId(String callConnectionId) {
this.callConnectionId = callConnectionId;
return this;
}

/**
* Get the serverCallId property: Server call ID.
*
* @return the serverCallId value.
*/
public String getServerCallId() {
return this.serverCallId;
}

/**
* Set the serverCallId property: Server call ID.
*
* @param serverCallId the serverCallId value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setServerCallId(String serverCallId) {
this.serverCallId = serverCallId;
return this;
}

/**
* Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
* ID.
*
* @return the correlationId value.
*/
public String getCorrelationId() {
return this.correlationId;
}

/**
* Set the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
* ID.
*
* @param correlationId the correlationId value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setCorrelationId(String correlationId) {
this.correlationId = correlationId;
return this;
}

/**
* Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
* the response event.
*
* @return the operationContext value.
*/
public String getOperationContext() {
return this.operationContext;
}

/**
* Set the operationContext property: Used by customers when calling mid-call actions to correlate the request to
* the response event.
*
* @param operationContext the operationContext value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setOperationContext(String operationContext) {
this.operationContext = operationContext;
return this;
}

/**
* Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services.
*
* @return the resultInformation value.
*/
public ResultInformation getResultInformation() {
return this.resultInformation;
}

/**
* Set the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services.
*
* @param resultInformation the resultInformation value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setResultInformation(ResultInformation resultInformation) {
this.resultInformation = resultInformation;
return this;
}

/**
* Get the participant property: Participant.
*
* @return the participant value.
*/
public CommunicationIdentifierModel getParticipant() {
return this.participant;
}

/**
* Set the participant property: Participant.
*
* @param participant the participant value to set.
* @return the RemoveParticipantFailed object itself.
*/
public RemoveParticipantFailed setParticipant(CommunicationIdentifierModel participant) {
this.participant = participant;
return this;
}
}
Loading

0 comments on commit 848f8e6

Please sign in to comment.