Skip to content

Commit 1787fff

Browse files
committed
Added category title field
1 parent 205c018 commit 1787fff

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

docs/GraphqlQuestionDetail.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**bound_topic_id** | **str** | | [optional]
99
**title** | **str** | | [optional]
1010
**title_slug** | **str** | | [optional]
11+
**category_title** | **str** | | [optional]
1112
**frequency** | **float** | | [optional]
1213
**freq_bar** | **float** | | [optional]
1314
**content** | **str** | | [optional]

leetcode/models/graphql_question_detail.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class GraphqlQuestionDetail(object):
3535
"bound_topic_id": "str",
3636
"title": "str",
3737
"title_slug": "str",
38+
"category_title": "str",
3839
"frequency": "float",
3940
"freq_bar": "float",
4041
"content": "str",
@@ -76,6 +77,7 @@ class GraphqlQuestionDetail(object):
7677
"bound_topic_id": "boundTopicId",
7778
"title": "title",
7879
"title_slug": "titleSlug",
80+
"category_title": "categoryTitle",
7981
"frequency": "frequency",
8082
"freq_bar": "freqBar",
8183
"content": "content",
@@ -118,6 +120,7 @@ def __init__(
118120
bound_topic_id=None,
119121
title=None,
120122
title_slug=None,
123+
category_title=None,
121124
frequency=None,
122125
freq_bar=None,
123126
content=None,
@@ -158,6 +161,7 @@ def __init__(
158161
self._bound_topic_id = None
159162
self._title = None
160163
self._title_slug = None
164+
self._category_title = None
161165
self._frequency = None
162166
self._freq_bar = None
163167
self._content = None
@@ -202,6 +206,8 @@ def __init__(
202206
self.title = title
203207
if title_slug is not None:
204208
self.title_slug = title_slug
209+
if category_title is not None:
210+
self.category_title = category_title
205211
if frequency is not None:
206212
self.frequency = frequency
207213
if freq_bar is not None:
@@ -374,6 +380,27 @@ def title_slug(self, title_slug):
374380

375381
self._title_slug = title_slug
376382

383+
@property
384+
def category_title(self):
385+
"""Gets the category_title of this GraphqlQuestionDetail. # noqa: E501
386+
387+
388+
:return: The category_title of this GraphqlQuestionDetail. # noqa: E501
389+
:rtype: str
390+
"""
391+
return self._category_title
392+
393+
@category_title.setter
394+
def category_title(self, category_title):
395+
"""Sets the category_title of this GraphqlQuestionDetail.
396+
397+
398+
:param category_title: The category_title of this GraphqlQuestionDetail. # noqa: E501
399+
:type: str
400+
"""
401+
402+
self._category_title = category_title
403+
377404
@property
378405
def frequency(self):
379406
"""Gets the frequency of this GraphqlQuestionDetail. # noqa: E501

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from setuptools import find_packages, setup # noqa: H301
1515

1616
NAME = "python-leetcode"
17-
VERSION = "1.2.0"
17+
VERSION = "1.2.1"
1818

1919
with open("README.md") as readme:
2020
DESCRIPTION: str = readme.read()

0 commit comments

Comments
 (0)