예제 #1
0
        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);
        }
예제 #2
0
        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);
        }