public void add(ChatMessage GroupMessage)
        {
            GeneralItem generalItem = new GeneralItem();

            generalItem.setChatMessagearray(GroupMessage);
            consolidatedList.Add(generalItem);
        }
        // Load the adapter with the data set (photo album) at construction time:
        public PrivateMessgeAdapter(Activity ContextActy, Dictionary <DateTime, List <ChatMessage> > PrivateMessge)
        {
            //  rvmPrivateMessge = PrivateMessge.ToList();

            consolidatedList = new List <ListItem>();

            foreach (var item in PrivateMessge)
            {
                DateItem dateItem = new DateItem();
                dateItem.setDate(item.Key.ToShortDateString());
                consolidatedList.Add(dateItem);

                foreach (var general in item.Value)
                {
                    GeneralItem generalItem = new GeneralItem();
                    generalItem.setChatMessagearray(general);
                    consolidatedList.Add(generalItem);
                }
            }
            context = ContextActy;
        }