-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
150 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<MauiVersion>8.0.3</MauiVersion> | ||
<MicrosoftExtensionsVersion>8.0.0</MicrosoftExtensionsVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
namespace Sample.Api.Controllers; | ||
using Shiny.Extensions.Push; | ||
|
||
namespace Sample.Api.Controllers; | ||
|
||
|
||
[ApiController] | ||
[Route("[controller]")] | ||
public class PushController : Controller | ||
{ | ||
public PushController() | ||
readonly IPushManager pushManager; | ||
|
||
public PushController(IPushManager pushManager) | ||
{ | ||
this.pushManager = pushManager; | ||
} | ||
|
||
|
||
[HttpPost] | ||
public async Task<IActionResult> Register([FromBody] RegisterArgs args) | ||
{ | ||
return this.Ok(null); | ||
} | ||
|
||
|
||
[HttpPost] | ||
public async Task<ActionResult<object>> Send([FromBody] SendArgs args) | ||
{ | ||
return this.Ok(null); | ||
} | ||
} | ||
|
||
public record RegisterArgs( | ||
bool IsApple, | ||
string RegistrationToken | ||
); | ||
|
||
|
||
public record SendArgs( | ||
string Message | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(RunConfiguration)' == 'https' " /> | ||
<PropertyGroup Condition=" '$(RunConfiguration)' == 'http' " /> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.12" /> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="$(MicrosoftExtensionsVersion)" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | ||
<PackageReference Include="Shiny.Extensions.Push" Version="2.0.0-preview-0009" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"Push": { | ||
"AzureNotificationHubs": { | ||
"ConnectionString": "", | ||
"HubName": "" | ||
}, | ||
"Firebase": { | ||
|
||
} | ||
//"Apple": { | ||
// "": "" | ||
//} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.