This commit is contained in:
Holger Börchers 2018-05-18 20:05:15 +02:00
parent 6d086205d4
commit f7800dfb11
2 changed files with 9 additions and 4 deletions

View File

@ -22,7 +22,6 @@ namespace Katteker
[DataMember]
public string Changelog { get; set; }
/// <summary>
/// Read file and deserialize content.
/// </summary>
@ -36,7 +35,7 @@ namespace Katteker
using (var fileStream = File.OpenRead(path))
{
var obj = dataContractJsonSerializer.ReadObject(fileStream);
return (KattekerConfig) obj;
return (KattekerConfig)obj;
}
}

View File

@ -1,7 +1,7 @@
using System;
using Semver;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Semver;
namespace Katteker
{
@ -59,26 +59,32 @@ namespace Katteker
/// Version
/// </summary>
public SemVersion Version { get; }
/// <summary>
/// Hashsum of the file.
/// </summary>
public string SHA1 { get; }
/// <summary>
/// filename
/// </summary>
public string Filename { get; }
/// <summary>
/// Size of the file.
/// </summary>
public long Filesize { get; }
/// <summary>
/// Is true if the update is delta file. False otherwise.
/// </summary>
public bool IsDelta { get; }
/// <summary>
/// Name of the application.
/// </summary>
public string ApplicationName { get; }
/// <summary>
/// Format the release entry as line for release file.
/// </summary>