Beamable SDK
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | Events | List of all members
Beamable.Common.Content.ContentObject Class Reference
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)
 
ContentObject SetContentName (string newContentName)
 
void BroadcastUpdate ()
 
virtual void Validate (IValidationContext ctx)
 Validate this ContentObject. More...
 
bool HasValidationErrors (IValidationContext ctx, out List< string > errors)
 
bool HasValidationExceptions (IValidationContext ctx, out List< ContentException > exceptions)
 
List< ContentValidationExceptionGetMemberValidationErrors (IValidationContext ctx)
 
string ToJson ()
 

Static Public Member Functions

static string GetContentTypeName (Type contentType)
 
static string GetContentType< TContent > ()
 
static TContent Make< TContent > (string name)
 
- Static Public Member Functions inherited from UnityEngine.ScriptableObject
static T CreateInstance< T > ()
 

Public Attributes

string ContentVersion => Version
 
string ContentType => _contentTypeName ?? (_contentTypeName = GetContentTypeName(GetType()))
 
string Id => $"{ContentType}.{ContentName}"
 
- Public Attributes inherited from UnityEngine.ScriptableObject
string name
 

Properties

string ContentName [get]
 
string Version [get]
 
string[]?? Tags [get, set]
 
- Properties inherited from Beamable.Common.Content.IContentObject
string Id [get]
 
string Version [get]
 
string[] Tags [get]
 

Events

ContentDelegate OnChanged
 

Member Function Documentation

◆ 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: