Exemplo n.º 1
0
    public void StoreRecord(RvealrRecord analyticsRecord)
    {
        storedRecords.Add(analyticsRecord);

        if (storedRecords.Count >= MAX_NUM_RECORDS_BATCH)
        {
            SendBatchedRecords();
        }
    }
Exemplo n.º 2
0
    private void DebugAnalyticsRecord(RvealrRecord analyticsRecord)
    {
#if DEBUG_ANALYTICS_RECORD
        string debugString = "Sending analytics event : " + analyticsRecord.record_id + " : ";

        foreach (KeyValuePair <string, object> kvp in analyticsRecord.record_data)
        {
            debugString += "  " + kvp.Key + " : " + kvp.Value.ToString();
        }

        Debug.Log(debugString);
#endif
    }
Exemplo n.º 3
0
 public void SendRecord(RvealrRecord analyticsRecord)
 {
     analyticsRecord.record_data["guid_token"] = _guidToken;
     DebugAnalyticsRecord(analyticsRecord);
     StoreRecord(analyticsRecord);
 }