summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/ModLinkModel.cs
blob: 3039702eb8ea1d1eca7ee0d4b869093562b562c9 (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
29
30
#nullable disable

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