Skip to content

Commit

Permalink
adaptive card object corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
BouVid committed Dec 17, 2023
1 parent 9fabb07 commit a5d6014
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using AdaptiveCards;
using Newtonsoft.Json;

namespace Fusion.Resources.Functions.ApiClients.ApiModels;
Expand All @@ -11,5 +12,5 @@ public class SendNotificationsRequest

[JsonProperty("description")] public string Description { get; set; }

[JsonProperty("card")] public object Card { get; set; }
[JsonProperty("card")] public AdaptiveCard Card { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private async Task BuildContentForResourceOwner(Guid azureUniqueId, string fullD
{
Title = $"Weekly summary - {fullDepartment}",
EmailPriority = 1,
Card = card,
Card = card.Result,
Description = $"Weekly report for department - {fullDepartment}"
},
azureUniqueId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AdaptiveCards" Version="3.0.0" />
<PackageReference Include="AdaptiveCards" Version="3.1.0" />
<PackageReference Include="Fusion.ApiClients.Org" Version="7.0.0" />
<PackageReference Include="Fusion.Integration" Version="6.0.0" />
<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.8" />
Expand Down

0 comments on commit a5d6014

Please sign in to comment.