Пример #1
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;
        }
Пример #2
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;
        }