Class ContentContainer
- Namespace
- Shift.Common
- Assembly
- Shift.Common.dll
public sealed class ContentContainer
- Inheritance
-
ContentContainer
- Inherited Members
-
- Extension Methods
-
Constructors
ContentContainer()
public ContentContainer()
Fields
DefaultLanguage
public const string DefaultLanguage = "en"
Field Value
- string
Properties
Body
public ContentContainerItem Body { get; }
Property Value
- ContentContainerItem
Count
public int Count { get; }
Property Value
- int
Description
public ContentContainerItem Description { get; }
Property Value
- ContentContainerItem
Feedback
public ContentContainerItem Feedback { get; }
Property Value
- ContentContainerItem
FeedbackWhenNotSelected
public ContentContainerItem FeedbackWhenNotSelected { get; }
Property Value
- ContentContainerItem
HasItems
public bool HasItems { get; }
Property Value
- bool
Hint
public ContentContainerItem Hint { get; }
Property Value
- ContentContainerItem
IsEmpty
public bool IsEmpty { get; }
Property Value
- bool
IsLoaded
public bool IsLoaded { get; set; }
Property Value
- bool
this[string]
public ContentContainerItem this[string label] { get; set; }
Parameters
label string
Property Value
- ContentContainerItem
Languages
public string[] Languages { get; }
Property Value
- string[]
Summary
public ContentContainerItem Summary { get; }
Property Value
- ContentContainerItem
Title
public ContentContainerItem Title { get; }
Property Value
- ContentContainerItem
Methods
Clone()
public ContentContainer Clone()
Returns
- ContentContainer
CreateSnips()
public void CreateSnips()
Exists(string)
public bool Exists(string label)
Parameters
label string
Returns
- bool
GetHtml(string, string, bool)
public string GetHtml(string label, string language = "en", bool defaultIfNull = false)
Parameters
label string
language string
defaultIfNull bool
Returns
- string
GetItems()
public IEnumerable<ContentContainerItem> GetItems()
Returns
- IEnumerable<ContentContainerItem>
GetLabels()
public IEnumerable<string> GetLabels()
Returns
- IEnumerable<string>
GetSnip(string, string, bool)
public string GetSnip(string label, string language = "en", bool defaultIfNull = false)
Parameters
label string
language string
defaultIfNull bool
Returns
- string
GetText(string, string, bool)
public string GetText(string label, string language = "en", bool defaultIfNull = false)
Parameters
label string
language string
defaultIfNull bool
Returns
- string
IsEqual(ContentContainer)
public bool IsEqual(ContentContainer other)
Parameters
other ContentContainer
Returns
- bool
IsEqual(ContentContainer, ContentContainer)
public static bool IsEqual(ContentContainer d1, ContentContainer d2)
Parameters
d1 ContentContainer
d2 ContentContainer
Returns
- bool
Remove(string)
public bool Remove(string name)
Parameters
name string
Returns
- bool
Set(ContentContainer, SetNullAction)
public void Set(ContentContainer content, ContentContainer.SetNullAction nullAction)
Parameters
content ContentContainer
nullAction ContentContainer.SetNullAction
SetHtml(string, string, string)
public void SetHtml(string label, string language, string text)
Parameters
label string
language string
text string
SetSnip(string, string, string)
public void SetSnip(string label, string language, string text)
Parameters
label string
language string
text string
SetText(string, string, string)
public void SetText(string label, string language, string text)
Parameters
label string
language string
text string