Inheritance: MediaAttachment
Beispiel #1
0
        internal static WallReply FromJson(VkResponse response)
        {
            var wallReply = new WallReply();

            wallReply.Id         = response["id"];
            wallReply.FromId     = response["from_id"];
            wallReply.Date       = response["date"];
            wallReply.Text       = response["text"];
            wallReply.Likes      = response["likes"];
            wallReply.ReplyToUId = response["reply_to_uid"];
            wallReply.ReplyToCId = response["reply_to_cid"];

            return(wallReply);
        }
Beispiel #2
0
        internal static WallReply FromJson(VkResponse response)
        {
            var wallReply = new WallReply();

            wallReply.Id = response["id"];
            wallReply.FromId = response["from_id"];
            wallReply.Date = response["date"];
            wallReply.Text = response["text"];
            wallReply.Likes = response["likes"];
            wallReply.ReplyToUId = response["reply_to_uid"];
            wallReply.ReplyToCId = response["reply_to_cid"];

            return wallReply;
        }
Beispiel #3
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static WallReply FromJson(VkResponse response)
        {
            var wallReply = new WallReply
            {
                Id         = response["comment_id"] ?? response["cid"] ?? response["id"],
                FromId     = response["from_id"] ?? response["user_id"] ?? response["uid"],
                Date       = response["date"],
                Text       = response["text"],
                Likes      = response["likes"],
                ReplyToUId = response["reply_to_uid"],
                ReplyToCId = response["reply_to_cid"]
            };

            return(wallReply);
        }
Beispiel #4
0
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static WallReply FromJson(VkResponse response)
		{
			var wallReply = new WallReply
			{
				Id = response["comment_id"] ?? response["cid"] ?? response["id"],
				FromId = response["from_id"] ?? response["user_id"] ?? response["uid"],
				Date = response["date"],
				Text = response["text"],
				Likes = response["likes"],
				ReplyToUId = response["reply_to_uid"],
				ReplyToCId = response["reply_to_cid"]
			};

			return wallReply;
		}