Example #1
0
        public PeopleContainer(JsonStructureClass jsonObject)
        {
            List <Person> people    = new List <Person>();
            var           container = new MessagesContainer(jsonObject);

            foreach (var p in jsonObject.participants)
            {
                var person = new Person(p.name, container);
                people.Add(person);
            }

            SortedPeople = people.OrderByDescending(x => x.PersonMessages.NumberOfMessages).ToList();
        }
Example #2
0
 public MessagesContainer(JsonStructureClass jsonObject)
     : this(jsonObject.messages.ToList())
 {
 }