internal static Note FromJson(VkResponse response) { // TODO: TEST IT!!!!! var note = new Note(); note.Id = response["id"]; note.OwnerId = response["owner_id"]; note.Title = response["title"]; note.Text = response["text"]; note.Date = response["date"]; note.CommentsCount = response["comments"]; note.ReadCommentsCount = response["read_comments"]; return note; }
internal static Note FromJson(VkResponse response) { var note = new Note { Id = response["id"], OwnerId = response["user_id"], Title = response["title"], Text = response["text"], Date = response["date"], CommentsCount = response["comments"], ReadCommentsCount = response["read_comments"], ViewUrl = response["view_url"] }; return note; }