summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/ModLinkModel.cs
blob: 96f14d48e316630a4f0bb045dea5ad00b0b9bf01 (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
{
    /// <summary>Metadata about a link.</summary>
    public class ModLinkModel
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The URL of the linked page.</summary>
        public string Url { get; }

        /// <summary>The suggested link text.</summary>
        public string Text { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="url">The URL of the linked page.</param>
        /// <param name="text">The suggested link text.</param>
        public ModLinkModel(string url, string text)
        {
            this.Url = url;
            this.Text = text;
        }
    }
}