CallConnection class
تمثل فئة CallConnection واجهات برمجة التطبيقات المستندة إلى اتصال الاتصال.
الأساليب
| add |
إضافة مشارك إلى المكالمة |
| cancel |
إلغاء طلب إضافة مشارك. |
| get |
الحصول على خصائص اتصال المكالمة للمكالمة |
| get |
تهيئة مثيل جديد من CallMedia. |
| get |
الحصول على مشارك من المكالمة |
| hang |
قطع المكالمة لنفسه أو إنهاء المكالمة بأكملها. |
| list |
الحصول على جميع المشاركين من المكالمة |
| mute |
كتم صوت المشارك من المكالمة. |
| remove |
إزالة مشارك من المكالمة |
| transfer |
تحويل المكالمة إلى مشارك مستهدف |
تفاصيل المنشئ
CallConnection(string, string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)
new CallConnection(callConnectionId: string, endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationApiClientOptionalParams)
المعلمات
- callConnectionId
-
string
- endpoint
-
string
- credential
- options
-
CallAutomationApiClientOptionalParams
تفاصيل الأسلوب
addParticipant(CallInvite, AddParticipantOptions)
إضافة مشارك إلى المكالمة
function addParticipant(targetParticipant: CallInvite, options?: AddParticipantOptions): Promise<AddParticipantResult>
المعلمات
- targetParticipant
- CallInvite
- options
- AddParticipantOptions
المرتجعات
Promise<AddParticipantResult>
cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)
إلغاء طلب إضافة مشارك.
function cancelAddParticipantOperation(invitationId: string, options?: CancelAddParticipantOperationOptions): Promise<CancelAddParticipantOperationResult>
المعلمات
- invitationId
-
string
معرف الدعوة المستخدم لإلغاء طلب إضافة مشارك.
المرتجعات
Promise<CancelAddParticipantOperationResult>
getCallConnectionProperties(OperationOptions)
الحصول على خصائص اتصال المكالمة للمكالمة
function getCallConnectionProperties(options?: OperationOptions): Promise<CallConnectionProperties>
المعلمات
- options
- OperationOptions
المرتجعات
Promise<CallConnectionProperties>
getCallMedia()
getParticipant(CommunicationIdentifier, OperationOptions)
الحصول على مشارك من المكالمة
function getParticipant(targetParticipant: CommunicationIdentifier, options?: OperationOptions): Promise<CallParticipant>
المعلمات
- targetParticipant
- CommunicationIdentifier
معرف الاتصال للمشارك المطلوب.
- options
- OperationOptions
المرتجعات
Promise<CallParticipant>
hangUp(boolean, OperationOptions)
قطع المكالمة لنفسه أو إنهاء المكالمة بأكملها.
function hangUp(isForEveryone: boolean, options?: OperationOptions): Promise<void>
المعلمات
- isForEveryone
-
boolean
- options
- OperationOptions
المرتجعات
Promise<void>
listParticipants(OperationOptions)
الحصول على جميع المشاركين من المكالمة
function listParticipants(options?: OperationOptions): Promise<ListParticipantsResult>
المعلمات
- options
- OperationOptions
المرتجعات
Promise<ListParticipantsResult>
muteParticipant(CommunicationIdentifier, MuteParticipantOption)
كتم صوت المشارك من المكالمة.
function muteParticipant(participant: CommunicationIdentifier, options?: MuteParticipantOption): Promise<MuteParticipantResult>
المعلمات
- participant
- CommunicationIdentifier
المشارك الذي سيتم كتم صوته من المكالمة.
- options
- MuteParticipantOption
سمات إضافية لكتم صوت المشارك.
المرتجعات
Promise<MuteParticipantResult>
removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)
إزالة مشارك من المكالمة
function removeParticipant(participant: CommunicationIdentifier, options?: RemoveParticipantsOption): Promise<RemoveParticipantResult>
المعلمات
- participant
- CommunicationIdentifier
ستتم إزالة المشارك من المكالمة.
- options
- RemoveParticipantsOption
المرتجعات
Promise<RemoveParticipantResult>
transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)
تحويل المكالمة إلى مشارك مستهدف
function transferCallToParticipant(targetParticipant: CommunicationIdentifier, options?: TransferCallToParticipantOptions): Promise<TransferCallResult>
المعلمات
- targetParticipant
- CommunicationIdentifier
الهدف الذي سيتم نقله إليه.
- options
- TransferCallToParticipantOptions
المرتجعات
Promise<TransferCallResult>