small code refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user