small code refactoring

This commit is contained in:
Schedel Pascal
2024-06-19 08:10:16 +02:00
parent 20770bed31
commit c9216ac79b
93 changed files with 2753 additions and 5835 deletions

View File

@@ -1,23 +1,22 @@
using Newtonsoft.Json;
namespace Pilz.Updating
{
public class UpdatePackageInfo
{
public string Name { get; set; }
public ApplicationVersion Version { get; set; }
public UpdateNotes Notes { get; } = new UpdateNotes();
public string Packagelink { get; set; }
namespace Pilz.Updating;
[JsonProperty]
private string Changelog
public class UpdatePackageInfo
{
public string Name { get; set; }
public ApplicationVersion Version { get; set; }
public UpdateNotes Notes { get; } = new UpdateNotes();
public string Packagelink { get; set; }
[JsonProperty]
private string Changelog
{
set
{
set
{
Notes.Content = value;
Notes.ContentType = UpdateNotesContentType.PlainText;
}
Notes.Content = value;
Notes.ContentType = UpdateNotesContentType.PlainText;
}
}
}