summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/ModLinkModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/ViewModels/ModLinkModel.cs')
-rw-r--r--src/SMAPI.Web/ViewModels/ModLinkModel.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/SMAPI.Web/ViewModels/ModLinkModel.cs b/src/SMAPI.Web/ViewModels/ModLinkModel.cs
new file mode 100644
index 00000000..97dd215c
--- /dev/null
+++ b/src/SMAPI.Web/ViewModels/ModLinkModel.cs
@@ -0,0 +1,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;
+ }
+ }
+}