summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorRequestModel.cs
blob: 3edb58db072b14ace36516a50106886ce551fe3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace StardewModdingAPI.Web.ViewModels.JsonValidator
{
    /// <summary>The view model for a JSON validation request.</summary>
    public class JsonValidatorRequestModel
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The schema name with which to validate the JSON.</summary>
        public string SchemaName { get; }

        /// <summary>The raw content to validate.</summary>
        public string Content { get; }


        /*********
        ** Accessors
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="schemaName">The schema name with which to validate the JSON.</param>
        /// <param name="content">The raw content to validate.</param>
        public JsonValidatorRequestModel(string schemaName, string content)
        {
            this.SchemaName = schemaName;
            this.Content = content;
        }
    }
}