|
Unity xAPI Logger
|
Public Member Functions | |
| xCall (String learner_name, String learner_id, String verb_string) | |
| Simplest xCall instantiation that can exist includes only a learner name, id, and verb. We can add other elements to this xCall object using the methods of this class. | |
| xCall (String learner_name, String learner_id, String verb_string, String url) | |
| Instantiation of xCall object where we want to specify a different URL. | |
| void | SetActivity (String gameName) |
| Sets the TinCan activity to the specified game. A game name is the minimum information that must be passed to SetActivity. | |
| void | SetActivity (String gameName, String stageName) |
| Sets the TinCan activity to the specified game at the specified stage. | |
| void | SetActivity (String gameName, String stageName, String activityName) |
| Sets the TinCan activity to the specified game, stage, and activity name. | |
| void | SetActivity (String gameName, String stageName, String activityName, String option) |
| Sets the TinCan activity to the specified game, stage, activity name, with specified option. | |
| TinCan.Extensions | BuildExtensions (JObject jobj) |
| Constructs a TinCan.Extensions object from a JObject. | |
| void | SetContext (TinCan.Extensions extensions) |
| Sets an xCall's context to a new context with the specified TinCan.Extensions object. | |
| void | AddExtensionToContext (TinCan.Extensions extensions) |
| Adds the specified TinCan.Extensions object to the xCall's context. | |
| void | AddExtensionToResult (TinCan.Extensions extensions) |
| Adds the specified TinCan.Extensions object to the xCall's result. | |
| void | SetResult (bool success) |
| Sets the xCall result's success attribute. | |
| void | SetResult (bool success, int max, int min, int raw) |
| Sets the xCall result's success. Also includes and sets max, min, and raw scores. | |
| Statement | BuildStatement () |
| Turns an xCall object into a TinCan.Statement object. APIHandler.cs uses BuildStatement() with the specified xCall input to send an API call. | |
Properties | |
| Agent | agent [get] |
| Activity | activity [get] |
| Verb | verb [get] |
| Context | context [get] |
| Result | result [get] |
| Statement | statement [get] |
| string | url = "http://gamestrax.com/" [get, set] |
|
inline |
Simplest xCall instantiation that can exist includes only a learner name, id, and verb. We can add other elements to this xCall object using the methods of this class.
| learner_name | |
| learner_id | |
| verb_string |
|
inline |
Instantiation of xCall object where we want to specify a different URL.
| learner_name | |
| learner_id | |
| verb_string | |
| url |
|
inline |
Adds the specified TinCan.Extensions object to the xCall's context.
| extensions |
|
inline |
Adds the specified TinCan.Extensions object to the xCall's result.
| extensions |
|
inline |
Constructs a TinCan.Extensions object from a JObject.
| jobj |
|
inline |
Turns an xCall object into a TinCan.Statement object. APIHandler.cs uses BuildStatement() with the specified xCall input to send an API call.
|
inline |
Sets the TinCan activity to the specified game. A game name is the minimum information that must be passed to SetActivity.
| gameName |
|
inline |
Sets the TinCan activity to the specified game at the specified stage.
| gameName | |
| stageName |
|
inline |
Sets the TinCan activity to the specified game, stage, and activity name.
| gameName | |
| stageName | |
| activityName |
|
inline |
Sets the TinCan activity to the specified game, stage, activity name, with specified option.
| gameName | |
| stageName | |
| activityName | |
| option |
|
inline |
Sets an xCall's context to a new context with the specified TinCan.Extensions object.
| extensions |
|
inline |
Sets the xCall result's success attribute.
| success |
|
inline |
Sets the xCall result's success. Also includes and sets max, min, and raw scores.
| success | |
| max | |
| min | |
| raw |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |