public ComposeBubbleGroup(NewBubble newBubble, Contact.ID[] ids, string title)
     : base(newBubble)
 {
     Title = string.IsNullOrWhiteSpace(title) ? null : title;
     Photo = null;
     Ids = ids;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }