public ComposeBubbleGroup(NewBubble newBubble, Contact.ID[] ids, string title)
     : base(newBubble)
 {
     Title = string.IsNullOrWhiteSpace(title) ? null : title;
     Photo = null;
     Ids = ids;
 }
        public static string GeneratePartyTitle(Contact[] contacts)
        {
            var title = String.Empty;

            foreach (var contact in contacts)
            {
                if (contact != null)
                {
                    title += contact.FullName;
                    if (contact != contacts.Last())
                    {
                        title += BubbleGroupPartyDelimeter + " ";
                    }
                }
            }

            if (String.IsNullOrWhiteSpace(title))
            {
                return null;
            }

            return title;
        }
        public static string GenerateComposeAddress(Contact.ID[] ids)
        {
            var address = String.Empty;
            foreach (var id in ids)
            {
                address += id.Id;
                if (id != ids.Last())
                {
                    address += ",";
                }
            }

            if (String.IsNullOrWhiteSpace(address))
            {
                return null;
            }
            return "compose:" + address;
        }