Example #1
0
		private string ComposeFieldWebPage(PropertyCollection webpages) {
			if (webpages == null || webpages.Count == 0)
				return String.Empty;

			StringBuilder output = new StringBuilder();
			ArrayList properties = new ArrayList();

			int size = webpages.Count;
			for (int i = 0; i < size; i++) {

				WebPage address = (WebPage)webpages[i];
				string webpageType = ComposeWebPageType(address.WebPageType);

				properties.Insert(0, address);

				output.Append(ComposevCardComponent(address.Value, properties, webpageType));
			}

			return output.ToString();
		}
Example #2
0
		private string ComposeFieldTelephone(PropertyCollection phones) {
			if (phones == null || phones.Count == 0)
				return String.Empty;

			StringBuilder output = new StringBuilder();
			ArrayList properties = new ArrayList();

			int size = phones.Count;
			for (int i = 0; i < size; i++) {
				Phone telephone = (Phone)phones[i];
				string phoneType = ComposePhoneType(telephone.PhoneType);

				properties.Clear();
				properties.Insert(0, telephone);

				output.Append(ComposevCardComponent(telephone.Value, properties, "TEL" + phoneType));
			}

			return output.ToString();
		}
Example #3
0
		private string ComposeFieldEmail(PropertyCollection emails) {
			if (emails == null || emails.Count == 0)
				return String.Empty;

			StringBuilder output = new StringBuilder();
			ArrayList properties = new ArrayList();

			int size = emails.Count;
			for (int i = 0; i < size; i++) {

				Email email = (Email)emails[i];
				string emailType = ComposeEmailType(email.EmailType);

				properties.Clear();
				properties.Add(email);

				output.Append(ComposevCardComponent(email.Value, properties, "EMAIL" + emailType));
			}

			return output.ToString();
		}
Example #4
0
		public ContactDetail() {
			phones = new PropertyCollection();
			emails = new PropertyCollection();
			webPages = new PropertyCollection();
		}