Skip to content

Commit 8652e18

Browse files
committed
fix missed code snippet update after rename to MicrosoftTeamsAppIdentifier
1 parent 0c0d10a commit 8652e18

File tree

7 files changed

+19
-17
lines changed

7 files changed

+19
-17
lines changed

articles/communication-services/concepts/includes/identifiers/identifiers-android.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ if (communicationIdentifier instanceof CommunicationUserIdentifier) {
125125
else if (communicationIdentifier instanceof MicrosoftTeamsUserIdentifier) {
126126
Log.i(tag, "Teams user: " + ((MicrosoftTeamsUserIdentifier)communicationIdentifier).getUserId());
127127
}
128+
else if (communicationIdentifier instanceof MicrosoftTeamsAppIdentifier) {
129+
Log.i(tag, "Teams app: " + (( MicrosoftTeamsAppIdentifier)communicationIdentifier).getAppId());
130+
}
128131
else if (communicationIdentifier instanceof PhoneNumberIdentifier) {
129132
Log.i(tag, "Phone number: " + ((PhoneNumberIdentifier)communicationIdentifier).getPhoneNumber());
130133
}
131-
else if (communicationIdentifier instanceof MicrosoftBotIdentifier) {
132-
Log.i(tag, "Microsoft bot: " + ((MicrosoftBotIdentifier)communicationIdentifier).getBotId());
133-
}
134134
else if (communicationIdentifier instanceof UnknownIdentifier) {
135135
Log.i(tag, "Unkown user: " + ((UnknownIdentifier)communicationIdentifier).getId());
136136
}

articles/communication-services/concepts/includes/identifiers/identifiers-ios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ switch (communicationIdentifier)
113113
print(#"Communication user: \(communicationUser.id)"#)
114114
case let teamsUser as MicrosoftTeamsUserIdentifier:
115115
print(#"Teams user: \(teamsUser.UserId)"#)
116+
case let teamsApp as microsoftTeamsApp:
117+
print(#"Teams app: \(teamsApp.appId)"#)
116118
case let phoneNumber as PhoneNumberIdentifier:
117119
print(#"Phone number: \(phoneNumber.PhoneNumber)"#)
118-
case let bot as MicrosoftBotIdentifier:
119-
print(#"Microsoft bot: \(bot.botId)"#)
120120
case let unknown as UnknownIdentifier:
121121
print(#"Unknown: \(unknown.Id)"#)
122122
@unknown default:

articles/communication-services/concepts/includes/identifiers/identifiers-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ if (communicationIdentifier instanceof CommunicationUserIdentifier) {
125125
else if (communicationIdentifier instanceof MicrosoftTeamsUserIdentifier) {
126126
System.out.println("Teams user: " + ((MicrosoftTeamsUserIdentifier)communicationIdentifier).getUserId());
127127
}
128+
else if (communicationIdentifier instanceof MicrosoftTeamsAppIdentifier) {
129+
Log.i(tag, "Teams app: " + (( MicrosoftTeamsAppIdentifier)communicationIdentifier).getAppId());
130+
}
128131
else if (communicationIdentifier instanceof PhoneNumberIdentifier) {
129132
System.out.println("Phone number: " + ((PhoneNumberIdentifier)communicationIdentifier).getPhoneNumber());
130133
}
131-
else if (communicationIdentifier instanceof MicrosoftBotIdentifier) {
132-
Log.i(tag, "Microsoft bot: " + ((MicrosoftBotIdentifier)communicationIdentifier).getBotId());
133-
}
134134
else if (communicationIdentifier instanceof UnknownIdentifier) {
135135
System.out.println("Unkown user: " + ((UnknownIdentifier)communicationIdentifier).getId());
136136
}

articles/communication-services/concepts/includes/identifiers/identifiers-js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ switch (communicationIdentifier.kind)
124124
// narrowed to MicrosoftTeamsUserKind
125125
console.log(`Teams user: ${communicationIdentifier.microsoftTeamsUserId}`);
126126
break;
127+
case "microsoftTeamsApp":
128+
// narrowed to MicrosoftTeamsAppIdentifier
129+
console.log(`Teams app: ${communicationIdentifier.teamsAppId}`);
130+
break;
127131
case "phoneNumber":
128132
// narrowed to PhoneNumberKind
129133
console.log(`Phone number: ${communicationIdentifier.phoneNumber}`);
@@ -132,10 +136,6 @@ switch (communicationIdentifier.kind)
132136
// narrowed to UnknownIdentifierKind
133137
console.log(`Unknown: ${communicationIdentifier.id}`);
134138
break;
135-
case "microsoftBot":
136-
// narrowed to MicrosoftBotIdentifier
137-
console.log(`Microsoft bot: ${communicationIdentifier.botId}`);
138-
break;
139139
default:
140140
// be careful here whether you want to throw because a new SDK version
141141
// can introduce new identifier types

articles/communication-services/concepts/includes/identifiers/identifiers-net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ switch (communicationIdentifier)
127127
case MicrosoftTeamsUserIdentifier teamsUser:
128128
Console.WriteLine($"Teams user: {teamsUser.UserId}");
129129
break;
130+
case MicrosoftTeamsAppIdentifier teamsApp:
131+
Console.WriteLine($"Teams app: {teamsApp.AppId}");
132+
break;
130133
case PhoneNumberIdentifier phoneNumber:
131134
Console.WriteLine($"Phone number: {phoneNumber.PhoneNumber}");
132135
break;
133-
case MicrosoftBotIdentifier bot:
134-
Console.WriteLine($"Microsoft bot: {bot.BotId}");
135-
break;
136136
case UnknownIdentifier unknown:
137137
Console.WriteLine($"Unknown: {unknown.Id}");
138138
break;

articles/communication-services/concepts/includes/identifiers/identifiers-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ match communication_identifier.kind:
121121
print(f"Communication user: {communication_identifier.properties['id']}")
122122
case CommunicationIdentifierKind.MICROSOFT_TEAMS_USER:
123123
print(f"Teams user: {communication_identifier.properties['user_id']}")
124+
case CommunicationIdentifierKind.MICROSOFT_TEAMS_APP:
125+
print(f"Teams app: {communication_identifier.properties['app_id']}")
124126
case CommunicationIdentifierKind.PHONE_NUMBER:
125127
print(f"Phone number: {communication_identifier.properties['value']}")
126-
case CommunicationIdentifierKind.MICROSOFT_BOT:
127-
print(f"Microsoft bot: {communication_identifier.properties['bot_id']}")
128128
case CommunicationIdentifierKind.UNKNOWN:
129129
print(f"Unknown: {communication_identifier.raw_id}")
130130
case _:

articles/communication-services/concepts/includes/identifiers/identifiers-rest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ if (communicationIdentifier.communicationUser) {
227227
console.log(`Communication user: ${communicationIdentifier.communicationUser.id}`);
228228
} else if (communicationIdentifier.microsoftTeamsUser) {
229229
console.log(`Teams user: ${communicationIdentifier.microsoftTeamsUser.userId}`);
230+
} else if (communicationIdentifier.microsoftTeamsApp) {
231+
console.log(`Teams app: ${communicationIdentifier.microsoftTeamsApp.appId}`);
230232
} else if (communicationIdentifier.phoneNumber) {
231233
console.log(`Phone number: ${communicationIdentifier.phoneNumber.value}`);
232234
} else {

0 commit comments

Comments
 (0)