-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CommunicationIdentifier] Added support for rawId ⟷ CommunicationIdentifier conversion #1116
[CommunicationIdentifier] Added support for rawId ⟷ CommunicationIdentifier conversion #1116
Conversation
I'm off. @AikoBB can you pls take a look? :) |
...ommon/src/main/java/com/azure/android/communication/common/MicrosoftTeamsUserIdentifier.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/com/azure/android/communication/common/MicrosoftTeamsUserIdentifier.java
Show resolved
Hide resolved
...ation-common/src/main/java/com/azure/android/communication/common/PhoneNumberIdentifier.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with the same comment/question as for java - Azure/azure-sdk-for-java#28997 (comment)
This reverts commit 014e8d4.
As per discussion, we will keep this as check style enforce this rule. |
@petrsvihlik please find PR for doc #1139 |
Description
The
CommunicationIdentifier
design provides a good abstraction of Azure Communication Services internal id format with better type safety, auto-complete and hides internal knowledge.However, it doesn't lend well to storing identifiers in a database or using them as keys because there is no clear canonical way how to encode them. This PR introduces translation functions that lets developers use the underlying raw ID for these purposes.
Details Internal wiki
This PR closely follows the Java PR.
No REST changes.
All SDK Contribution checklist: