Exemplo n.º 1
0
 /// <summary>
 /// Creates a new telecommunications address with the specified <paramref name="value"/> and
 /// <paramref name="use"/> set.
 /// </summary>
 /// <param name="value">The initial value of the telecommunications address</param>
 /// <param name="use">A set of unique values describing the use of the telecommunications address</param>
 public TEL(Uri value, TelecommunicationAddressUse use)
     : this(value.ToString(), use)
 {
 }
Exemplo n.º 2
0
        internal static string ConvertUseCode(TelecommunicationAddressUse value)
        {
            string code = "";

            switch (value)
            {
                case TelecommunicationAddressUse.AnsweringService:
                    code = "AS";
                    break;
                case TelecommunicationAddressUse.BadAddress:
                    break;
                case TelecommunicationAddressUse.Direct:
                    break;
                case TelecommunicationAddressUse.EmergencyContact:
                    code = "EC";
                    break;
                case TelecommunicationAddressUse.Home:
                    code = "H";
                    break;
                case TelecommunicationAddressUse.MobileContact:
                    code = "MC";
                    break;
                case TelecommunicationAddressUse.Pager:
                    code = "PG";
                    break;
                case TelecommunicationAddressUse.PrimaryHome:
                    code = "HP";
                    break;
                case TelecommunicationAddressUse.Public:
                    break;
                case TelecommunicationAddressUse.TemporaryAddress:
                    code = "TMP";
                    break;
                case TelecommunicationAddressUse.VacationHome:
                    code = "HV";
                    break;
                case TelecommunicationAddressUse.WorkPlace:
                    code = "WP";
                    break;
                default:
                    break;
            }
            return code;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new telecommunications address with the specified <paramref name="value"/> and
 /// <paramref name="use"/>
 /// </summary>
 /// <param name="value">The initial value of the telecommunications addressadhere to RFC2396 <a href="http://www.ietf.org/rfc/rfc2396.txt">http://www.ietf.org/rfc/rfc2396.txt</a></param>
 /// <param name="use">A value describing the conditions under which the address can be used</param>
 public TEL(String value, TelecommunicationAddressUse use) : this(value, new CS <TelecommunicationAddressUse>[] { use })
 {
 }