Skip to content

Commit a72ad1f

Browse files
Added support for additional media message types: documents, videos, and audio.
1 parent 991f2e6 commit a72ad1f

21 files changed

+3760
-2839
lines changed

sdk/communication/Azure.Communication.Messages/CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0 (Unreleased)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
6+
- Added support for additional media message types: documents, videos, and audio.
7+
- Introduced the following new models for enhanced media notifications:
8+
- `DocumentNotificationContent`: for sending document notifications.
9+
- `VideoNotificationContent`: for sending video notifications.
10+
- `AudioNotificationContent`: for sending audio notifications.
11+
- `ImageNotificationContent`: for sending image notifications.
1012

1113
### Other Changes
14+
- The `MediaNotificationContent` model, previously used for sending image notifications, is being deprecated. A deprecation warning will inform users to transition to the new `ImageNotificationContent` model for future use.
1215

1316
## 1.0.0 (2024-02-29)
1417

sdk/communication/Azure.Communication.Messages/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Console.WriteLine($"Message id: {result.Receipts[0].MessageId}");
7575
// Create the recipient list, currently only one recipient is supported
7676
var recipient = new List<string> { "<RecipientPhoneNumber>" };
7777
var uri = new Uri("https://aka.ms/acsicon1");
78-
var mediaContent = new MediaNotificationContent(channelRegistrationId, recipientList, uri);
78+
var imageContent = new ImageNotificationContent(channelRegistrationId, recipientList, uri);
7979
SendMessageResult result = await notificationMessagesClient.SendAsync(mediaContent);
8080
Console.WriteLine($"Message id: {result.Receipts[0].MessageId}");
8181
```

sdk/communication/Azure.Communication.Messages/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/communication/Azure.Communication.Messages",
5-
"Tag": "net/communication/Azure.Communication.Messages_456fe45c3f"
5+
"Tag": "net/communication/Azure.Communication.Messages_a672ff69b3"
66
}

sdk/communication/Azure.Communication.Messages/src/Azure.Communication.Messages.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
This client library enables working with the Microsoft Azure Communication Messages service.
66
</Description>
77
<AssemblyTitle>Azure Communication Messages Service</AssemblyTitle>
8-
<Version>1.1.0-beta.1</Version>
8+
<Version>1.1.0</Version>
99
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
1010
<ApiCompatVersion>1.0.0</ApiCompatVersion>
1111
<PackageTags>Microsoft Azure Communication Messages Service;Microsoft;Azure;Azure Communication Service;Azure Communication Messages Service;Messages;Communication</PackageTags>
1212
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
1313
<IncludeOperationsSharedSource>true</IncludeOperationsSharedSource>
1414
</PropertyGroup>
1515

16+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
17+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
18+
</PropertyGroup>
19+
20+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
21+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
22+
</PropertyGroup>
23+
1624
<ItemGroup>
1725
<Compile Include="..\..\Shared\src\ClientOptionsExtensions.cs" LinkBase="Shared\Communication" />
1826
<Compile Include="..\..\Shared\src\HMACAuthenticationPolicy.cs" LinkBase="Shared\Communication" />

sdk/communication/Azure.Communication.Messages/src/Generated/AudioNotificationContent.Serialization.cs

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Messages/src/Generated/AudioNotificationContent.cs

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Messages/src/Generated/CommunicationMessageKind.cs

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.Messages/src/Generated/CommunicationMessagesClientOptions.cs

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)