Beamable SDK
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | Events | List of all members
Beamable.Common.Content.ContentObject Class Reference

This type defines the parent of all Beamable ContentObjects for the ContentService. More...

Inheritance diagram for Beamable.Common.Content.ContentObject:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Content.ContentObject:
Collaboration graph
[legend]

Public Member Functions

void SetIdAndVersion (string id, string version)
 Set the &id and &version More...
 
void SetManifestID (string manifestID)
 Set the Manifest Id More...
 
ContentObject SetContentName (string newContentName)
 Set the name of the ContentObject More...
 
void BroadcastUpdate ()
 Broadcast an updated changed of the ContentObject field values
 
virtual void Validate (IValidationContext ctx)
 Validate this ContentObject. More...
 
bool HasValidationErrors (IValidationContext ctx, out List< string > errors)
 Determines if the ContentObject has Validation Errors More...
 
bool HasValidationExceptions (IValidationContext ctx, out List< ContentException > exceptions)
 Determines if the ContentObject has Validation Exceptions More...
 
List< ContentValidationExceptionGetMemberValidationErrors (IValidationContext ctx)
 Gets list of the ContentObject has Member Validation Errors
 
string ToJson ()
 Converts the ContentObject to Json More...
 

Static Public Member Functions

static string GetContentTypeName (Type contentType)
 Get the TypeName of the ContentObject More...
 
static string GetContentType< TContent > ()
 Get the type of the ContentObject More...
 
static TContent Make< TContent > (string name)
 Make an instance of the ContentObject More...
 

Static Public Attributes

const string TooltipNotFoundDebugFallback1a = "(No Tooltip)"
 

Properties

string ContentVersion [get]
 
string ContentName [get]
 The name of the ContentObject
 
string ContentType [get]
 The type of the ContentObject
 
string Id [get]
 The id of the ContentObject
 
string ManifestID [get]
 The Manifest Id
 
string Version [get]
 The version of the ContentObject
 
string[]?? Tags [getset]
 The tags of the ContentObject
 
- Properties inherited from Beamable.Common.Content.IContentObject
string Id [get]
 The id. A content id is a dot separated string. The right most part is the name of the content. Every part to the left of the name denotes the type of the content.
 
string Version [get]
 The version
 
string[] Tags [get]
 The tags
 
string ManifestID [get]
 

Events

ContentDelegate OnChanged
 Invoked after ContentObject field values change
 

Detailed Description

This type defines the parent of all Beamable ContentObjects for the ContentService.

Direct Subclasses

Related Links

img beamable-logo

Member Function Documentation

◆ GetContentType< TContent >()

static string Beamable.Common.Content.ContentObject.GetContentType< TContent > ( )
inlinestatic

Get the type of the ContentObject

Template Parameters
TContent
Returns
Type Constraints
TContent :ContentObject 

◆ GetContentTypeName()

static string Beamable.Common.Content.ContentObject.GetContentTypeName ( Type  contentType)
inlinestatic

Get the TypeName of the ContentObject

Parameters
contentType
Returns

◆ HasValidationErrors()

bool Beamable.Common.Content.ContentObject.HasValidationErrors ( IValidationContext  ctx,
out List< string >  errors 
)
inline

Determines if the ContentObject has Validation Errors

Parameters
ctx
errors
Returns

◆ HasValidationExceptions()

bool Beamable.Common.Content.ContentObject.HasValidationExceptions ( IValidationContext  ctx,
out List< ContentException exceptions 
)
inline

Determines if the ContentObject has Validation Exceptions

Parameters
ctx
exceptions
Returns

◆ Make< TContent >()

static TContent Beamable.Common.Content.ContentObject.Make< TContent > ( string  name)
inlinestatic

Make an instance of the ContentObject

Parameters
name
Template Parameters
TContent
Returns
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ SetContentName()

ContentObject Beamable.Common.Content.ContentObject.SetContentName ( string  newContentName)
inline

Set the name of the ContentObject

Parameters
newContentName
Returns

◆ SetIdAndVersion()

void Beamable.Common.Content.ContentObject.SetIdAndVersion ( string  id,
string  version 
)
inline

Set the &id and &version

Parameters
id
version
Exceptions
Exception

Implements Beamable.Common.Content.IContentObject.

◆ SetManifestID()

void Beamable.Common.Content.ContentObject.SetManifestID ( string  manifestID)
inline

Set the Manifest Id

Parameters
manifestID

◆ ToJson()

string Beamable.Common.Content.ContentObject.ToJson ( )
inline

Converts the ContentObject to Json

Returns

Implements Beamable.Common.Content.IContentObject.

◆ Validate()

virtual void Beamable.Common.Content.ContentObject.Validate ( IValidationContext  ctx)
inlinevirtual

Validate this ContentObject.

Exceptions
AggregateContentValidationExceptionShould throw if the content is semantically invalid.

The documentation for this class was generated from the following file: