Example #1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Exports FromJson(VkResponse response)
        {
            var exports = new Exports
            {
                Twitter     = response["twitter"],
                Facebook    = response["facebook"],
                Livejournal = response["livejournal"],
                Instagram   = response["instagram"]
            };

            return(exports);
        }
Example #2
0
File: Exports.cs Project: kadkin/vk
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static Exports FromJson(VkResponse response)
		{
			var exports = new Exports
			{
				Twitter = response["twitter"],
				Facebook = response["facebook"],
				Livejournal = response["livejournal"],
				Instagram = response["instagram"]
			};

			return exports;
		}