Exemple #1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static Career FromJson(VkResponse response)
        {
            var career = new Career
            {
                GroupId   = response["group_id"],
                Company   = response["company"],
                CountryId = response["country_id"],
                CityId    = response["city_id"],
                CityName  = response["city_name"],
                From      = response["from"],
                Until     = response["until"],
                Position  = response["position"]
            };

            return(career);
        }
Exemple #2
0
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static Career FromJson(VkResponse response)
		{
			var career = new Career
			{
				GroupId = response["group_id"],
				Company = response["company"],
				CountryId = response["country_id"],
				CityId = response["city_id"],
				CityName = response["city_name"],
				From = response["from"],
				Until = response["until"],
				Position = response["position"]
			};

			return career;
		}