in AzureCommunicationUI/AzureCommunicationUIDemoApp/Sources/EnvConfig.swift [150:204]
func update(from dic: [String: String]) {
if let token = dic["acstoken"],
!token.isEmpty {
acsToken = token
selectedAcsTokenType = .token
writeAnyData(key: acstokenKey, value: token)
}
if let name = dic["name"],
!name.isEmpty {
displayName = name
writeAnyData(key: displayNameKey, value: name)
}
if let groupId = dic["groupid"],
!groupId.isEmpty {
groupCallId = groupId
selectedMeetingType = .groupCall
}
if let id = dic["roomid"],
!id.isEmpty {
roomId = id
selectedMeetingType = .roomCall
}
if let teamsLink = dic["teamsurl"],
!teamsLink.isEmpty {
teamsMeetingLink = teamsLink
selectedMeetingType = .teamsMeeting
selectedChatType = .teamsChat
}
if let mris = dic["participantMRIs"],
!participantMRIs.isEmpty {
participantMRIs = mris
selectedMeetingType = .oneToNCall
}
if let communicationUserId = dic["userid"],
!communicationUserId.isEmpty {
userId = communicationUserId
}
if let chatThreadId = dic["threadid"],
!chatThreadId.isEmpty {
threadId = chatThreadId
selectedChatType = .groupChat
}
if let acsEndpointUrl = dic["endpointurl"],
!acsEndpointUrl.isEmpty {
endpointUrl = acsEndpointUrl
}
}