winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

ManifestValidationResult.cs (1599B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="ManifestValidationResult.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGetUtil.Common
      8 {
      9     /// <summary>
     10     /// Manifest validation result.
     11     /// </summary>
     12     public class ManifestValidationResult
     13     {
     14         /// <summary>
     15         /// Initializes a new instance of the <see cref="ManifestValidationResult"/> class.
     16         /// </summary>
     17         /// <param name="isValid">A value indicating whether manifest is valid.</param>
     18         /// <param name="message">Error message.</param>
     19         /// <param name="resultCode">Result code.</param>
     20         public ManifestValidationResult(bool isValid, string message, WinGetValidateManifestResult resultCode)
     21         {
     22             this.IsValid = isValid;
     23             this.Message = message;
     24             this.ResultCode = resultCode;
     25         }
     26 
     27         /// <summary>
     28         /// Gets a value indicating whether manifest is valid.
     29         /// </summary>
     30         public bool IsValid { get; private set; }
     31 
     32         /// <summary>
     33         /// Gets the message associated with the validation.
     34         /// </summary>
     35         public string Message { get; private set; }
     36 
     37         /// <summary>
     38         /// Gets the result code associate with the validation.
     39         /// </summary>
     40         public WinGetValidateManifestResult ResultCode { get; private set; }
     41     }
     42 }