|
|
void | SetIdAndVersion (string id, string version) |
| |
|
ContentObject | SetContentName (string name) |
| |
|
ContentObject | SetContentMetadata (string name, string version) |
| |
|
void | BroadcastUpdate () |
| |
| virtual void | Validate () |
| | Validate this ContentObject. More...
|
| |
|
bool | HasValidationErrors (out List< string > errors) |
| |
|
List< ContentValidationException > | GetMemberValidationErrors () |
| |
|
string | ToJson () |
| |
|
void | SetIdAndVersion (string id, string version) |
| |
|
| static string | GetContentTypeName (Type contentType) |
| | Serialize this content into a json block, containing ONLY the properties object. Ex: { "sample": { "data": 4 }, "sample2": { "data": { "nested": 5 } } } More...
|
| |
|
static string | GetContentType< TContent > () |
| |
|
static TContent | Make< TContent > (string name) |
| |
|
static string | GetContentType (Type contentType) |
| |
|
static string | GetContentType< TContent > () |
| |
|
|
string | ContentVersion => Version |
| |
|
string | ContentType => GetContentTypeName(GetType()) |
| |
|
string | Id => $"{ContentType}.{ContentName}" |
| |
|
string | name |
| |
|
|
string | ContentName [get] |
| |
|
string | Version [get, set] |
| |
|
string[]?? | Tags [get, set] |
| |
|
string | Id [get] |
| |
|
string | Version [get] |
| |
|
string[] | Tags [get] |
| |
|
|
ContentDelegate | OnChanged |
| |
◆ GetContentTypeName()
| static string DisruptorBeam.Content.ContentObject.GetContentTypeName |
( |
Type |
contentType | ) |
|
|
inlinestatic |
Serialize this content into a json block, containing ONLY the properties object. Ex: { "sample": { "data": 4 }, "sample2": { "data": { "nested": 5 } } }
- Parameters
-
Set all the values of this content object from the given ArrayDict. This is a modifying action.
- Parameters
-
| dict | An array dict that should only contain the properties json object |
Create a new piece of content
- Parameters
-
| name | The name of the content, should be unique |
| dict | The property object to set the content values |
- Template Parameters
-
| TContent | Some type of content |
- Returns
◆ Validate()
| virtual void DisruptorBeam.Content.ContentObject.Validate |
( |
| ) |
|
|
inlinevirtual |
Validate this ContentObject.
- Exceptions
-
| AggregateContentValidationException | Should throw if the content is semantically invalid. |
The documentation for this class was generated from the following file:
- client/Packages/com.disruptorbeam.engine/Runtime/DisruptorEngine/Content/ContentObject.cs