-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
5 changed files
with
86 additions
and
19 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
37 changes: 37 additions & 0 deletions
37
src/Files.App/ServicesImplementation/ReleaseNotesService.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,37 @@ | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
using CommunityToolkit.WinUI.Helpers; | ||
using Files.App.Extensions; | ||
using Files.Backend.Services; | ||
using Microsoft.UI.Xaml.Controls; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Windows.Services.Store; | ||
using WinRT.Interop; | ||
|
||
namespace Files.App.ServicesImplementation | ||
{ | ||
internal sealed class ReleaseNotesService : ObservableObject, IReleaseNotesService | ||
{ | ||
private string? _releaseNotes; | ||
public string? ReleaseNotes | ||
{ | ||
get => _releaseNotes; | ||
private set => SetProperty(ref _releaseNotes, value); | ||
} | ||
|
||
private bool isReleaseNotesAvailable; | ||
public bool IsReleaseNotesAvailable | ||
{ | ||
get => isReleaseNotesAvailable; | ||
set => SetProperty(ref isReleaseNotesAvailable, value); | ||
} | ||
|
||
public async Task DownloadReleaseNotes() | ||
{ | ||
/// | ||
} | ||
} | ||
} |
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,23 @@ | ||
using System.ComponentModel; | ||
using System.Threading.Tasks; | ||
|
||
namespace Files.Backend.Services | ||
{ | ||
public interface IReleaseNotesService : INotifyPropertyChanged | ||
{ | ||
/// <summary> | ||
/// Release notes for the latest release | ||
/// </summary> | ||
string? ReleaseNotes { get; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating if release notes are available | ||
/// </summary> | ||
bool IsReleaseNotesAvailable { get; } | ||
|
||
/// <summary> | ||
/// Downloads release notes for the latest release | ||
/// </summary> | ||
Task DownloadReleaseNotes(); | ||
} | ||
} |