Beamable SDK
Public Member Functions | Public Attributes | Properties | Events | List of all members
Beamable.Editor.Content.Models.ContentItemDescriptor Class Reference

Public Member Functions

 ContentItemDescriptor (IContentObject content, ContentTypeDescriptor typeDescriptor, string assetPath)
 
 ContentItemDescriptor (LocalContentManifestEntry entry, ContentTypeDescriptor typeDescriptor)
 
 ContentItemDescriptor (ManifestReferenceSuperset entry, ContentTypeDescriptor typeDescriptor)
 
void EnrichWithServerData (ManifestReferenceSuperset reference)
 
void EnrichWithLocalData (LocalContentManifestEntry entry)
 
void EnrichWithNoServerData ()
 
IEnumerable< ContentTagDescriptorGetAllTags ()
 

Public Attributes

string AssetPathShort
 A display version of the asset path that is relative to the data dir, and removes the asset file extension. More...
 
HashSet< string > AllTags => new HashSet<string>(GetAllTags().Select(x => x.Tag))
 

Properties

string? Name [get, set]
 
ContentTypeDescriptor ContentType [get]
 
ContentValidationStatus ValidationStatus [get]
 
string AssetPath [get]
 
HashSet< string > LocalTags [get]
 
HashSet< string > ServerTags [get]
 
HostStatus LocalStatus [get]
 
HostStatus ServerStatus [get]
 

Events

Action< ContentItemDescriptorOnRenamed
 Invoked when name change is requested. More...
 
Action< ContentItemDescriptorOnEnriched
 Invoked when any change is made More...
 

Member Data Documentation

◆ AssetPathShort

string Beamable.Editor.Content.Models.ContentItemDescriptor.AssetPathShort
Initial value:
=>
string.IsNullOrEmpty(AssetPath)
? ""
: Path.GetDirectoryName(AssetPath)?.Substring(ContentConstants.DATA_DIR.Length) ?? ""

A display version of the asset path that is relative to the data dir, and removes the asset file extension.

Event Documentation

◆ OnEnriched

Action<ContentItemDescriptor> Beamable.Editor.Content.Models.ContentItemDescriptor.OnEnriched

Invoked when any change is made

◆ OnRenamed

Action<ContentItemDescriptor> Beamable.Editor.Content.Models.ContentItemDescriptor.OnRenamed

Invoked when name change is requested.


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