Skip to content

Commit 848f8e6

Browse files
Richardcho/remove participant (Azure#34066)
* update swagger ref * add new events * fix syntax error
1 parent a98a0f7 commit 848f8e6

File tree

10 files changed

+524
-3
lines changed

10 files changed

+524
-3
lines changed

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantRequestInternal.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class AddParticipantRequestInternal {
2121
/*
2222
* (Optional) The display name of the source that is associated with this
2323
* invite operation when
24-
* adding a PSTN participant or teams user. Note: Will not update the
24+
* adding a PSTN participant or teams user. Note: Will not update the
2525
* display name in the roster.
2626
*/
2727
@JsonProperty(value = "sourceDisplayName")

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CreateCallRequestInternal.java

+26
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public final class CreateCallRequestInternal {
6161
@JsonProperty(value = "azureCognitiveServicesEndpointUrl")
6262
private String azureCognitiveServicesEndpointUrl;
6363

64+
/*
65+
* Used by customer to send custom context to targets
66+
*/
67+
@JsonProperty(value = "customContext")
68+
private CustomContext customContext;
69+
6470
/**
6571
* Get the targets property: The targets of the call.
6672
*
@@ -225,4 +231,24 @@ public CreateCallRequestInternal setAzureCognitiveServicesEndpointUrl(String azu
225231
this.azureCognitiveServicesEndpointUrl = azureCognitiveServicesEndpointUrl;
226232
return this;
227233
}
234+
235+
/**
236+
* Get the customContext property: Used by customer to send custom context to targets.
237+
*
238+
* @return the customContext value.
239+
*/
240+
public CustomContext getCustomContext() {
241+
return this.customContext;
242+
}
243+
244+
/**
245+
* Set the customContext property: Used by customer to send custom context to targets.
246+
*
247+
* @param customContext the customContext value to set.
248+
* @return the CreateCallRequestInternal object itself.
249+
*/
250+
public CreateCallRequestInternal setCustomContext(CustomContext customContext) {
251+
this.customContext = customContext;
252+
return this;
253+
}
228254
}

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java

+26
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public final class RedirectCallRequestInternal {
2222
@JsonProperty(value = "target", required = true)
2323
private CommunicationIdentifierModel target;
2424

25+
/*
26+
* Used by customer to send custom context to targets
27+
*/
28+
@JsonProperty(value = "customContext")
29+
private CustomContext customContext;
30+
2531
/**
2632
* Get the incomingCallContext property: The context associated with the call.
2733
*
@@ -61,4 +67,24 @@ public RedirectCallRequestInternal setTarget(CommunicationIdentifierModel target
6167
this.target = target;
6268
return this;
6369
}
70+
71+
/**
72+
* Get the customContext property: Used by customer to send custom context to targets.
73+
*
74+
* @return the customContext value.
75+
*/
76+
public CustomContext getCustomContext() {
77+
return this.customContext;
78+
}
79+
80+
/**
81+
* Set the customContext property: Used by customer to send custom context to targets.
82+
*
83+
* @param customContext the customContext value to set.
84+
* @return the RedirectCallRequestInternal object itself.
85+
*/
86+
public RedirectCallRequestInternal setCustomContext(CustomContext customContext) {
87+
this.customContext = customContext;
88+
return this;
89+
}
6490
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.communication.callautomation.implementation.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** The failed to remove participant event. */
11+
@Fluent
12+
public final class RemoveParticipantFailed {
13+
/*
14+
* Call connection ID.
15+
*/
16+
@JsonProperty(value = "callConnectionId")
17+
private String callConnectionId;
18+
19+
/*
20+
* Server call ID.
21+
*/
22+
@JsonProperty(value = "serverCallId")
23+
private String serverCallId;
24+
25+
/*
26+
* Correlation ID for event to call correlation. Also called ChainId for
27+
* skype chain ID.
28+
*/
29+
@JsonProperty(value = "correlationId")
30+
private String correlationId;
31+
32+
/*
33+
* Used by customers when calling mid-call actions to correlate the request
34+
* to the response event.
35+
*/
36+
@JsonProperty(value = "operationContext")
37+
private String operationContext;
38+
39+
/*
40+
* Contains the resulting SIP code/sub-code and message from NGC services.
41+
*/
42+
@JsonProperty(value = "resultInformation")
43+
private ResultInformation resultInformation;
44+
45+
/*
46+
* Participant
47+
*/
48+
@JsonProperty(value = "participant")
49+
private CommunicationIdentifierModel participant;
50+
51+
/**
52+
* Get the callConnectionId property: Call connection ID.
53+
*
54+
* @return the callConnectionId value.
55+
*/
56+
public String getCallConnectionId() {
57+
return this.callConnectionId;
58+
}
59+
60+
/**
61+
* Set the callConnectionId property: Call connection ID.
62+
*
63+
* @param callConnectionId the callConnectionId value to set.
64+
* @return the RemoveParticipantFailed object itself.
65+
*/
66+
public RemoveParticipantFailed setCallConnectionId(String callConnectionId) {
67+
this.callConnectionId = callConnectionId;
68+
return this;
69+
}
70+
71+
/**
72+
* Get the serverCallId property: Server call ID.
73+
*
74+
* @return the serverCallId value.
75+
*/
76+
public String getServerCallId() {
77+
return this.serverCallId;
78+
}
79+
80+
/**
81+
* Set the serverCallId property: Server call ID.
82+
*
83+
* @param serverCallId the serverCallId value to set.
84+
* @return the RemoveParticipantFailed object itself.
85+
*/
86+
public RemoveParticipantFailed setServerCallId(String serverCallId) {
87+
this.serverCallId = serverCallId;
88+
return this;
89+
}
90+
91+
/**
92+
* Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
93+
* ID.
94+
*
95+
* @return the correlationId value.
96+
*/
97+
public String getCorrelationId() {
98+
return this.correlationId;
99+
}
100+
101+
/**
102+
* Set the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
103+
* ID.
104+
*
105+
* @param correlationId the correlationId value to set.
106+
* @return the RemoveParticipantFailed object itself.
107+
*/
108+
public RemoveParticipantFailed setCorrelationId(String correlationId) {
109+
this.correlationId = correlationId;
110+
return this;
111+
}
112+
113+
/**
114+
* Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
115+
* the response event.
116+
*
117+
* @return the operationContext value.
118+
*/
119+
public String getOperationContext() {
120+
return this.operationContext;
121+
}
122+
123+
/**
124+
* Set the operationContext property: Used by customers when calling mid-call actions to correlate the request to
125+
* the response event.
126+
*
127+
* @param operationContext the operationContext value to set.
128+
* @return the RemoveParticipantFailed object itself.
129+
*/
130+
public RemoveParticipantFailed setOperationContext(String operationContext) {
131+
this.operationContext = operationContext;
132+
return this;
133+
}
134+
135+
/**
136+
* Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services.
137+
*
138+
* @return the resultInformation value.
139+
*/
140+
public ResultInformation getResultInformation() {
141+
return this.resultInformation;
142+
}
143+
144+
/**
145+
* Set the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services.
146+
*
147+
* @param resultInformation the resultInformation value to set.
148+
* @return the RemoveParticipantFailed object itself.
149+
*/
150+
public RemoveParticipantFailed setResultInformation(ResultInformation resultInformation) {
151+
this.resultInformation = resultInformation;
152+
return this;
153+
}
154+
155+
/**
156+
* Get the participant property: Participant.
157+
*
158+
* @return the participant value.
159+
*/
160+
public CommunicationIdentifierModel getParticipant() {
161+
return this.participant;
162+
}
163+
164+
/**
165+
* Set the participant property: Participant.
166+
*
167+
* @param participant the participant value to set.
168+
* @return the RemoveParticipantFailed object itself.
169+
*/
170+
public RemoveParticipantFailed setParticipant(CommunicationIdentifierModel participant) {
171+
this.participant = participant;
172+
return this;
173+
}
174+
}

0 commit comments

Comments
 (0)