private static BubbleGroupCache Generate(BubbleGroup group, string guid) { var bubbleGroupCache = new BubbleGroupCache { Name = group.Title, Photo = group.Photo, Participants = group.Participants.ToList(), Guid = guid, }; return bubbleGroupCache; }
private static void Bind(BubbleGroup associatedGroup, BubbleGroupCache item) { associatedGroup.Title = item.Name; associatedGroup.Photo = item.Photo; associatedGroup.IsPhotoSetInitiallyFromCache = true; if (item.Participants != null) { associatedGroup.Participants = new ThreadSafeList<DisaParticipant>(item.Participants); foreach (var participant in associatedGroup.Participants) { participant.IsPhotoSetInitiallyFromCache = true; } } }