Esempio n. 1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static ChatPushSettings FromJson(VkResponse response)
        {
            var result = new ChatPushSettings
            {
                PeerId        = response["peer_id"],
                Sound         = response["sound"],
                DisabledUntil = response["disabled_until"]
            };

            return(result);
        }
Esempio n. 2
0
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static ChatPushSettings FromJson(VkResponse response)
		{
			var result = new ChatPushSettings
			{
				PeerId = response["peer_id"],
				Sound = response["sound"],
				DisabledUntil = response["disabled_until"]
			};

			return result;
		}