Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Added category title field #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/GraphqlQuestionDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**bound_topic_id** | **str** | | [optional]
**title** | **str** | | [optional]
**title_slug** | **str** | | [optional]
**category_title** | **str** | | [optional]
**frequency** | **float** | | [optional]
**freq_bar** | **float** | | [optional]
**content** | **str** | | [optional]
Expand Down
27 changes: 27 additions & 0 deletions leetcode/models/graphql_question_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class GraphqlQuestionDetail(object):
"bound_topic_id": "str",
"title": "str",
"title_slug": "str",
"category_title": "str",
"frequency": "float",
"freq_bar": "float",
"content": "str",
Expand Down Expand Up @@ -76,6 +77,7 @@ class GraphqlQuestionDetail(object):
"bound_topic_id": "boundTopicId",
"title": "title",
"title_slug": "titleSlug",
"category_title": "categoryTitle",
"frequency": "frequency",
"freq_bar": "freqBar",
"content": "content",
Expand Down Expand Up @@ -118,6 +120,7 @@ def __init__(
bound_topic_id=None,
title=None,
title_slug=None,
category_title=None,
frequency=None,
freq_bar=None,
content=None,
Expand Down Expand Up @@ -158,6 +161,7 @@ def __init__(
self._bound_topic_id = None
self._title = None
self._title_slug = None
self._category_title = None
self._frequency = None
self._freq_bar = None
self._content = None
Expand Down Expand Up @@ -202,6 +206,8 @@ def __init__(
self.title = title
if title_slug is not None:
self.title_slug = title_slug
if category_title is not None:
self.category_title = category_title
if frequency is not None:
self.frequency = frequency
if freq_bar is not None:
Expand Down Expand Up @@ -374,6 +380,27 @@ def title_slug(self, title_slug):

self._title_slug = title_slug

@property
def category_title(self):
"""Gets the category_title of this GraphqlQuestionDetail. # noqa: E501


:return: The category_title of this GraphqlQuestionDetail. # noqa: E501
:rtype: str
"""
return self._category_title

@category_title.setter
def category_title(self, category_title):
"""Sets the category_title of this GraphqlQuestionDetail.


:param category_title: The category_title of this GraphqlQuestionDetail. # noqa: E501
:type: str
"""

self._category_title = category_title

@property
def frequency(self):
"""Gets the frequency of this GraphqlQuestionDetail. # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from setuptools import find_packages, setup # noqa: H301

NAME = "python-leetcode"
VERSION = "1.2.0"
VERSION = "1.2.1"

with open("README.md") as readme:
DESCRIPTION: str = readme.read()
Expand Down