Replaced all EnvelopeGenerator.GeneratorAPI namespaces with EnvelopeGenerator.API across controllers, models, extensions, middleware, and annotation-related files. Updated using/import statements and namespace declarations accordingly. Added wwwroot folder to project file. Minor code adjustments made for consistency. This unifies API naming for improved clarity and maintainability.
61 lines
2.2 KiB
C#
61 lines
2.2 KiB
C#
namespace EnvelopeGenerator.API.Models
|
|
{
|
|
/// <summary>
|
|
/// Represents a hyperlink for contact purposes with various HTML attributes.
|
|
/// </summary>
|
|
public class ContactLink
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the label of the hyperlink.
|
|
/// </summary>
|
|
public string Label { get; init; } = "Contact";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the URL that the hyperlink points to.
|
|
/// </summary>
|
|
public string Href { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the target where the hyperlink should open.
|
|
/// Commonly used values are "_blank", "_self", "_parent", "_top".
|
|
/// </summary>
|
|
public string Target { get; set; } = "_blank";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the relationship of the linked URL as space-separated link types.
|
|
/// Examples include "nofollow", "noopener", "noreferrer".
|
|
/// </summary>
|
|
public string Rel { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the filename that should be downloaded when clicking the hyperlink.
|
|
/// This attribute will only have an effect if the href attribute is set.
|
|
/// </summary>
|
|
public string Download { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the language of the linked resource. Useful when linking to
|
|
/// content in another language.
|
|
/// </summary>
|
|
public string HrefLang { get; set; } = "en";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the MIME type of the linked URL. Helps browsers to handle
|
|
/// the type correctly when the link is clicked.
|
|
/// </summary>
|
|
public string Type { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets additional information about the hyperlink, typically viewed
|
|
/// as a tooltip when the mouse hovers over the link.
|
|
/// </summary>
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets an identifier for the hyperlink, unique within the HTML document.
|
|
/// </summary>
|
|
public string Id { get; set; } = string.Empty;
|
|
}
|
|
|
|
}
|