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] [DataMember]
public string Changelog { get; set; } public string Changelog { get; set; }
/// <summary> /// <summary>
/// Read file and deserialize content. /// Read file and deserialize content.
/// </summary> /// </summary>
@ -36,7 +35,7 @@ namespace Katteker
using (var fileStream = File.OpenRead(path)) using (var fileStream = File.OpenRead(path))
{ {
var obj = dataContractJsonSerializer.ReadObject(fileStream); 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.Collections.Generic;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Semver;
namespace Katteker namespace Katteker
{ {
@ -59,26 +59,32 @@ namespace Katteker
/// Version /// Version
/// </summary> /// </summary>
public SemVersion Version { get; } public SemVersion Version { get; }
/// <summary> /// <summary>
/// Hashsum of the file. /// Hashsum of the file.
/// </summary> /// </summary>
public string SHA1 { get; } public string SHA1 { get; }
/// <summary> /// <summary>
/// filename /// filename
/// </summary> /// </summary>
public string Filename { get; } public string Filename { get; }
/// <summary> /// <summary>
/// Size of the file. /// Size of the file.
/// </summary> /// </summary>
public long Filesize { get; } public long Filesize { get; }
/// <summary> /// <summary>
/// Is true if the update is delta file. False otherwise. /// Is true if the update is delta file. False otherwise.
/// </summary> /// </summary>
public bool IsDelta { get; } public bool IsDelta { get; }
/// <summary> /// <summary>
/// Name of the application. /// Name of the application.
/// </summary> /// </summary>
public string ApplicationName { get; } public string ApplicationName { get; }
/// <summary> /// <summary>
/// Format the release entry as line for release file. /// Format the release entry as line for release file.
/// </summary> /// </summary>