Class AssetLayout
Represents a single asset_layout returned from the Hudu API
Inheritance
System.Object
AssetLayout
Assembly: HuduAPI.dll
Syntax
public class AssetLayout : IRecord
Constructors
AssetLayout(Int32, String, String, String, String, String)
Declaration
public AssetLayout(int iD, string slug, string name, string icon, string color, string iconColor)
Parameters
| Type |
Name |
Description |
| System.Int32 |
iD |
The AssetLayout ID.
|
| System.String |
slug |
The slug component in the URL.
|
| System.String |
name |
The name of the AssetLayout.
|
| System.String |
icon |
The Icon class name, example: “fas fa-home”.
|
| System.String |
color |
Hex code for background color, example: #000000
|
| System.String |
iconColor |
Hex code for icon foreground color, example: #000000
|
Properties
Active
Declaration
[JsonProperty("active")]
public bool Active { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Color
Declaration
[JsonProperty("color")]
public string Color { get; set; }
Property Value
| Type |
Description |
| System.String |
|
CreatedAt
Declaration
[JsonProperty("created_at")]
public DateTime? CreatedAt { get; set; }
Property Value
| Type |
Description |
| System.Nullable<DateTime> |
|
Fields
Declaration
[JsonProperty("fields")]
public IList<AssetLayout.AssetLayoutField> Fields { get; set; }
Property Value
Icon
Declaration
[JsonProperty("icon")]
public string Icon { get; set; }
Property Value
| Type |
Description |
| System.String |
|
IconColor
Declaration
[JsonProperty("icon_color")]
public string IconColor { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ID
Declaration
[JsonProperty("id")]
public int ID { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
[JsonProperty("include_comments")]
public bool IncludeComments { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IncludeFiles
Declaration
[JsonProperty("include_files")]
public bool IncludeFiles { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IncludePasswords
Declaration
[JsonProperty("include_passwords")]
public bool IncludePasswords { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IncludePhotos
Declaration
[JsonProperty("include_photos")]
public bool IncludePhotos { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Item[String]
Gets the System.Nullable<T> with the specified label. If
not found than null is returned
Declaration
public AssetLayout.AssetLayoutField this[string label] { get; }
Parameters
| Type |
Name |
Description |
| System.String |
label |
The label of the AssetLayout Field that is required.
|
Property Value
Name
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[JsonProperty("sidebar_folder_id")]
public int? SidebarFolderID { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Slug
Declaration
[JsonProperty("slug")]
public string Slug { get; set; }
Property Value
| Type |
Description |
| System.String |
|
UpdatedAt
Declaration
[JsonProperty("updated_at")]
public DateTime? UpdatedAt { get; set; }
Property Value
| Type |
Description |
| System.Nullable<DateTime> |
|
Implements
See Also