summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/ModLinkModel.cs
blob: 97dd215c16ea1f3f9a9bf9e9b8f09199c779b70e (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; set; }

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


        /*********
        ** 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;
        }
    }
}