-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from jpdillingham/master
Implemented IPackageManifest interface
- Loading branch information
Showing
4 changed files
with
125 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* | ||
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀ ▀ ▀ ▀▀ | ||
█ | ||
█ ▄█ ▄███████▄ ▄▄▄▄███▄▄▄▄ | ||
█ ███ ███ ███ ▄██▀▀▀███▀▀▀██▄ | ||
█ ███▌ ███ ███ ▄█████ ▄██████ █ █▄ ▄█████ ▄████▄ ▄█████ ███ ███ ███ ▄█████ ██▄▄▄▄ █ ▄█████ ▄█████ ▄█████ ██ | ||
█ ███▌ ███ ███ ██ ██ ██ ██ ██ ▄██▀ ██ ██ ██ ▀ ██ █ ███ ███ ███ ██ ██ ██▀▀▀█▄ ██ ██ ▀█ ██ █ ██ ▀ ▀███████▄ | ||
█ ███▌ ▀█████████▀ ██ ██ ██ ▀ ██▐█▀ ██ ██ ▄██ ▄██▄▄ ███ ███ ███ ██ ██ ██ ██ ██▌ ▄██▄▄ ▄██▄▄ ██ ██ ▀ | ||
█ ███ ███ ▀████████ ██ ▄ ▀▀████ ▀████████ ▀▀██ ███▄ ▀▀██▀▀ ███ ███ ███ ▀████████ ██ ██ ██ ▀▀██▀▀ ▀▀██▀▀ ▀███████ ██ | ||
█ ███ ███ ██ ██ ██ ██ ██ ▀██▄ ██ ██ ██ ██ ██ █ ███ ███ ███ ██ ██ ██ ██ ██ ██ ██ █ ▄ ██ ██ | ||
█ █▀ ▄████▀ ██ █▀ ██████▀ ▀█ ▀█▀ ██ █▀ ██████▀ ███████ ▀█ ███ █▀ ██ █▀ █ █ █ ██ ███████ ▄████▀ ▄██▀ | ||
█ | ||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ | ||
█████████████████████████████████████████████████████████████ ███████████████ ██ ██ ██ ████ ██ ██ ████████████████ █ █ | ||
▄ | ||
█ A Manifest which describes the contents of a Package file. | ||
█ | ||
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀ ▀▀ ▀ | ||
█ The GNU Affero General Public License (GNU AGPL) | ||
█ | ||
█ Copyright (C) 2016-2017 JP Dillingham ([email protected]) | ||
█ | ||
█ This program is free software: you can redistribute it and/or modify | ||
█ it under the terms of the GNU Affero General Public License as published by | ||
█ the Free Software Foundation, either version 3 of the License, or | ||
█ (at your option) any later version. | ||
█ | ||
█ This program is distributed in the hope that it will be useful, | ||
█ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
█ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
█ GNU Affero General Public License for more details. | ||
█ | ||
█ You should have received a copy of the GNU Affero General Public License | ||
█ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
█ | ||
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██ | ||
██ | ||
▀█▄ ██ ▄█▀ | ||
▀████▀ | ||
▀▀ */ | ||
|
||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace OpenIIoT.SDK.Packaging.Manifest | ||
{ | ||
/// <summary> | ||
/// A Manifest which describes the contents of a Package file. | ||
/// </summary> | ||
public interface IPackageManifest | ||
{ | ||
#region Public Properties | ||
|
||
/// <summary> | ||
/// Gets or sets the checksum of the payload file. | ||
/// </summary> | ||
[JsonProperty(Order = 9)] | ||
string Checksum { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package copyright. | ||
/// </summary> | ||
[JsonProperty(Order = 6)] | ||
string Copyright { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package description. | ||
/// </summary> | ||
[JsonProperty(Order = 4)] | ||
string Description { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of <see cref="PackageManifestFile"/> instances representing the files in the Package payload. | ||
/// </summary> | ||
[JsonProperty(Order = 11)] | ||
IList<PackageManifestFile> Files { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package license. | ||
/// </summary> | ||
[JsonProperty(Order = 7)] | ||
string License { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package namespace. | ||
/// </summary> | ||
[JsonProperty(Order = 3)] | ||
string Namespace { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package publisher. | ||
/// </summary> | ||
[JsonProperty(Order = 5)] | ||
string Publisher { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package <see cref="PackageManifestSignature"/>. | ||
/// </summary> | ||
[JsonProperty(Order = 10)] | ||
PackageManifestSignature Signature { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package title. | ||
/// </summary> | ||
[JsonProperty(Order = 1)] | ||
string Title { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package url. | ||
/// </summary> | ||
[JsonProperty(Order = 8)] | ||
string Url { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Package version. | ||
/// </summary> | ||
[JsonProperty(Order = 2)] | ||
string Version { get; set; } | ||
|
||
#endregion Public Properties | ||
} | ||
} |
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