Class XApiObject
Object of an xAPI statement. The object type here is always Activity.
Inheritance
Namespace: i5.Toolkit.Core.ExperienceAPI
Assembly: cs.temp.dll.dll
Syntax
public class XApiObject
Constructors
XApiObject(string)
Declaration
public XApiObject(string objectID)
Parameters
Type | Name | Description |
---|---|---|
string | objectID |
Fields
descriptionDisplay
Dictionary that holds the descriptions of the activity in various languages. Keys are language/region codes (e.g. en-us, es, ...). Values are the names of the object in that language. Optional/Dictionary can be empty.
Declaration
public Dictionary<string, string> descriptionDisplay
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
id
Id of the object. Required.
Declaration
public string id
Field Value
Type | Description |
---|---|
string |
nameDisplay
Dictionary that holds the human readable/visual names of the Activity in various languages. Keys are language/region codes (e.g. en-us, es, ...). Values are the names of the object in that language. Optional/Dictionary can be empty.
Declaration
public Dictionary<string, string> nameDisplay
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
type
Declaration
public string type
Field Value
Type | Description |
---|---|
string |
Methods
AddDescription(string, string)
Add a display description for an object in the desired language
Declaration
public void AddDescription(string description, string languageCode = "en-us")
Parameters
Type | Name | Description |
---|---|---|
string | description | |
string | languageCode | Language/region codes such as 'en-us', 'en-uk', 'es'... Default value is 'en-us'. |
AddName(string, string)
Add a display name for an object in the desired language.
Declaration
public void AddName(string name, string languageCode = "en-us")
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the object in the desired language. |
string | languageCode | Language/region codes such as 'en-us', 'en-uk', 'es'... Default value is 'en-us'. |