AzureCommunicationUI/AzureCommunicationUIDemoApp/Sources/DemoInputTypes.swift (28 lines of code) (raw):
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
import Foundation
import AzureCommunicationUICalling
enum MeetingType: Int {
case groupCall
case teamsMeeting
case oneToNCall
case roomCall
}
enum ChatType: Int {
case groupChat
case teamsChat
}
enum ACSTokenType: Int {
case tokenUrl
case token
}
enum DemoError: Error {
case invalidToken
case invalidGroupCallId
func getErrorCode() -> String {
switch self {
case .invalidToken:
return CallCompositeErrorCode.tokenExpired
case .invalidGroupCallId:
return CallCompositeErrorCode.callJoin
}
}
}