Информация о месте, в котором была сделана запись. См. описание и . Раздел place.
Esempio n. 1
0
File: Place.cs Progetto: G-IT-ED/vk
        internal static Place FromJson(VkResponse response)
        {
            var place = new Place();

            place.Id = response["place_id"] ?? response["id"];
            place.Title = response["title"];
            place.Latitude = (int?)(double?)response["latitude"];       // TODO: refactor this shit
            place.Longitude = (int?)(double?)response["longitude"];     // TODO: refactor this shit
            place.TypeId = response["type"];
            place.CountryId = response["country_id"];
            place.CityId = response["city_id"];
            place.Address = response["address"];
            place.ShowMap = response["showmap"];

            place.Country = response["country"]; // установлено экcпериментальным путем
            place.City = response["city"]; // установлено экcпериментальным путем

            return place;
        }
Esempio n. 2
0
File: Place.cs Progetto: kadkin/vk
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static Place FromJson(VkResponse response)
		{
			var place = new Place
			{
				Id = response["place_id"] ?? response["id"],
				Title = response["title"],
				Latitude = (int?)(double?)response["latitude"],       // TODO: refactor this shit
				Longitude = (int?)(double?)response["longitude"],     // TODO: refactor this shit
				TypeId = response["type"],
				CountryId = response["country_id"],
				CityId = response["city_id"],
				Address = response["address"],
				ShowMap = response["showmap"],

				Country = response["country"], // установлено экcпериментальным путем
				City = response["city"] // установлено экcпериментальным путем
			};

			return place;
		}