-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from Strypper/184-get-issues-by-labels-then-s…
…ave-them-to-localdb 184 get issues by labels then save them to localdb
- Loading branch information
Showing
23 changed files
with
363 additions
and
195 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
173 changes: 0 additions & 173 deletions
173
src/Features/Gallery/Pages/BuiltIn/Controls/ProgressBar/ProgressBarPage.xaml
This file was deleted.
Oops, something went wrong.
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
52 changes: 52 additions & 0 deletions
52
...ub/MAUIsland.Features.LocalDbFeatures.GitHub/Implementations/GitHubIssueLocalDbService.cs
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,52 @@ | ||
namespace MAUIsland.Features.LocalDbFeatures.GitHub; | ||
|
||
public class GitHubIssueLocalDbService : SQLitePCLRawService<GitHubIssueLocalDbModel>, IGitHubIssueLocalDbService | ||
{ | ||
#region [ CTor ] | ||
|
||
public GitHubIssueLocalDbService(DatabaseSettings settings) : base(settings) | ||
{ | ||
|
||
} | ||
|
||
|
||
#endregion | ||
|
||
#region [ Methods - Get Single ] | ||
public async Task<GitHubIssueLocalDbModel?> GetByIssueUrlAsync(string issueUrl) | ||
{ | ||
try | ||
{ | ||
if (string.IsNullOrEmpty(issueUrl)) | ||
{ | ||
return default; | ||
} | ||
|
||
return await _connection.Table<GitHubIssueLocalDbModel>().FirstOrDefaultAsync(x => x.IssueLinkUrl == issueUrl); | ||
} | ||
catch (Exception ex) | ||
{ | ||
throw; | ||
} | ||
} | ||
#endregion | ||
|
||
#region [ Methods - Get List ] | ||
public async Task<IEnumerable<GitHubIssueLocalDbModel>?> GetByControlNameAsync(string controlName) | ||
{ | ||
try | ||
{ | ||
if (string.IsNullOrEmpty(controlName)) | ||
{ | ||
return default; | ||
} | ||
|
||
return await _connection.Table<GitHubIssueLocalDbModel>().Where(x => x.ControlName == controlName).ToListAsync(); | ||
} | ||
catch (Exception ex) | ||
{ | ||
throw; | ||
} | ||
} | ||
#endregion | ||
} |
18 changes: 18 additions & 0 deletions
18
...GitHub/MAUIsland.Features.LocalDbFeatures.GitHub/Interfaces/IGitHubIssueLocalDbService.cs
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,18 @@ | ||
namespace MAUIsland.Features.LocalDbFeatures.GitHub; | ||
|
||
public interface IGitHubIssueLocalDbService : ILocalDbService<GitHubIssueLocalDbModel> | ||
{ | ||
/// <summary> | ||
/// Get list of issues related to a control. | ||
/// </summary> | ||
/// <param name="controlName"></param> | ||
/// <returns></returns> | ||
Task<IEnumerable<GitHubIssueLocalDbModel>?> GetByControlNameAsync(string controlName); | ||
|
||
/// <summary> | ||
/// Get single issue by its url. | ||
/// </summary> | ||
/// <param name="issueUrl"></param> | ||
/// <returns></returns> | ||
Task<GitHubIssueLocalDbModel?> GetByIssueUrlAsync(string issueUrl); | ||
} |
13 changes: 13 additions & 0 deletions
13
...AUIsland.Features.LocalDbFeatures.GitHub/MAUIsland.Features.LocalDbFeatures.GitHub.csproj
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,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\MAUIsland.Features.LocalDbFeatures\MAUIsland.Features.LocalDbFeatures.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.