/// <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); }
/// <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; }