public static void Save(MessageClass inputItem, ChatListClass inputList) { if (AppData.auth.CurrentUser == null) { return; } object[] itemKeys = { "itemName", "itemTime", }; object[] itemVals = { inputItem.ItemName, inputItem.ItemTime.ToString(), }; var itemDict = NSDictionary.FromObjectsAndKeys(itemVals, itemKeys); AppData.DataNode .GetChild(inputList.ChatOwner.Uid) .GetChild(inputList.ChatName) .GetChild("items") .GetChild(inputItem.ItemName) .SetValue <NSDictionary>(itemDict); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = tableView.DequeueReusableCell("messagesCell"); MessageClass message = thisList.ChatItems[indexPath.Row]; //gana delete cell.TextLabel.Text = message.ItemName; return(cell); }