Esempio n. 1
0
        /// <summary>
        /// SetUserProperties
        /// </summary>
        /// <param name="uri"></param>
        /// <param name="userProperties">
        /// new UserPropertiesCategory()
        /// {
        ///		Line1 = "tel:+11234567890;ext=67890",
        ///		LineType1 = UserPropertiesCategory.LineType.Uc,
        ///		FaxNumber = "+12345-FAX-12345",
        ///		State = "Rostov-on-Don",
        ///		StreetAddress = "Beikerstreet, 10",
        ///		WwwHomePage = "http://www.officesip.com",
        ///		PostalCode = "347900",
        ///		City = "London",
        ///		CountryCode = "BR"
        /// }
        /// </param>
        public void SetUserProperties(string uri, UserPropertiesCategory userProperties)
        {
            lock (sync)
            {
                Publication publication = ResolvePublication(uri);

                publication.SetUserProperties(userProperties);
            }
        }
Esempio n. 2
0
 public void SetUserProperties(UserPropertiesCategory userProperties)
 {
     this.Process(
         new Category()
     {
         Instance       = 0,
         ExpireType     = CategoryExpireType.Static,
         UserProperties = userProperties
     }
         , null
         );
 }
Esempio n. 3
0
		/// <summary>
		/// SetUserProperties
		/// </summary>
		/// <param name="uri"></param>
		/// <param name="userProperties">
		/// new UserPropertiesCategory()
		/// {
		///		Line1 = "tel:+11234567890;ext=67890",
		///		LineType1 = UserPropertiesCategory.LineType.Uc,
		///		FaxNumber = "+12345-FAX-12345",
		///		State = "Rostov-on-Don",
		///		StreetAddress = "Beikerstreet, 10",
		///		WwwHomePage = "http://www.officesip.com",
		///		PostalCode = "347900",
		///		City = "London",
		///		CountryCode = "BR"
		/// }
		/// </param>
		public void SetUserProperties(string uri, UserPropertiesCategory userProperties)
		{
			lock (sync)
			{
				Publication publication = ResolvePublication(uri);

				publication.SetUserProperties(userProperties);
			}
		}
Esempio n. 4
0
		public void SetUserProperties(UserPropertiesCategory userProperties)
		{
			this.Process(
				new Category()
				{
					Instance = 0,
					ExpireType = CategoryExpireType.Static,
					UserProperties = userProperties
				}
				, null
			);
		}