-
-
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
64 changed files
with
752 additions
and
461 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:sample="clr-namespace:Sample" | ||
x:DataType="sample:CurrentPermissionViewModel" | ||
x:Class="Sample.CurrentPermissionPage" | ||
Title="Current Permissions"> | ||
|
||
<RefreshView Command="{Binding Refresh}" | ||
IsRefreshing="{Binding IsRefreshing}"> | ||
<CollectionView ItemsSource="{Binding PermissionSet}"> | ||
<CollectionView.ItemTemplate> | ||
<DataTemplate x:DataType="sample:PermissionViewModel"> | ||
<VerticalStackLayout> | ||
<VerticalStackLayout.GestureRecognizers> | ||
<TapGestureRecognizer Command="{Binding Request}" /> | ||
</VerticalStackLayout.GestureRecognizers> | ||
|
||
<Label Text="{Binding Description}" | ||
FontSize="Large" | ||
FontAttributes="Bold" /> | ||
|
||
<Label Text="{Binding Status}" | ||
FontSize="Small" | ||
FontAttributes="Italic" /> | ||
|
||
<BoxView Style="{StaticResource HR}" /> | ||
</VerticalStackLayout> | ||
</DataTemplate> | ||
</CollectionView.ItemTemplate> | ||
</CollectionView> | ||
</RefreshView> | ||
</ContentPage> |
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,9 @@ | ||
namespace Sample; | ||
|
||
public partial class CurrentPermissionPage : ContentPage | ||
{ | ||
public CurrentPermissionPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} |
Oops, something went wrong.