Unity xAPI Logger
Loading...
Searching...
No Matches
Public Member Functions
CerebrumLogger.Logger Class Reference

Public Member Functions

 Logger (string username, string password)
 Constructor for a Logger object. Must be passed username and password strings to access and send requests via xAPI/TinCan.
 
void AddLogToQueue (Statement statement)
 Adds a log statement to the log queue. Log queue will be dispatched when the queue reaches 5 items in length.
 
void DoSendAPI (string jsonData)
 Constructs a TinCan.Statement object from a given string of json, then sends the statement to the API.
 
void DoSendAPI (Statement statement)
 Sends the specified statement call.
 

Constructor & Destructor Documentation

◆ Logger()

CerebrumLogger.Logger.Logger ( string  username,
string  password 
)
inline

Constructor for a Logger object. Must be passed username and password strings to access and send requests via xAPI/TinCan.

Parameters
username
password

Member Function Documentation

◆ AddLogToQueue()

void CerebrumLogger.Logger.AddLogToQueue ( Statement  statement)
inline

Adds a log statement to the log queue. Log queue will be dispatched when the queue reaches 5 items in length.

Parameters
statement

◆ DoSendAPI() [1/2]

void CerebrumLogger.Logger.DoSendAPI ( Statement  statement)
inline

Sends the specified statement call.

Parameters
statement

◆ DoSendAPI() [2/2]

void CerebrumLogger.Logger.DoSendAPI ( string  jsonData)
inline

Constructs a TinCan.Statement object from a given string of json, then sends the statement to the API.

Parameters
jsonData

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