Esempio n. 1
0
    public void SaveRecord(RecordData data)
    {
        data.CreatedUTC = DateTime.UtcNow.ToShortDateString();

        var json = JSONSerialization <RecordData> .CreateFromObject(data);

        _databaseRef.Child(DB_NODE_RECORDS).Child(data.ChatRoomId).Push().SetRawJsonValueAsync(json).ContinueWith(task =>
        {
        });
    }