quizmous_api.api.swagger.models package

Submodules

quizmous_api.api.swagger.models.answer module

class quizmous_api.api.swagger.models.answer.Answer(answer_id: int = None, answer: str = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

property answer

Gets the answer of this Answer.

Returns

The answer of this Answer.

Return type

str

property answer_id

Gets the answer_id of this Answer.

Returns

The answer_id of this Answer.

Return type

int

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.answer.Answer

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The Answer of this Answer. # noqa: E501

Return type

Answer

quizmous_api.api.swagger.models.base_model_ module

class quizmous_api.api.swagger.models.base_model_.Model

Bases: object

attribute_map = {}
classmethod from_dict(dikt) → T

Returns the dict as a model

swagger_types = {}
to_dict()

Returns the model properties as a dict

Return type

dict

to_str()

Returns the string representation of the model

Return type

str

quizmous_api.api.swagger.models.body module

class quizmous_api.api.swagger.models.body.Body(user: quizmous_api.api.swagger.models.post_user.PostUser = None, answers: quizmous_api.api.swagger.models.user_answers.UserAnswers = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

property answers

Gets the answers of this Body.

Returns

The answers of this Body.

Return type

UserAnswers

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.body.Body

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The body of this Body. # noqa: E501

Return type

Body

property user

Gets the user of this Body.

Returns

The user of this Body.

Return type

PostUser

quizmous_api.api.swagger.models.get_user module

class quizmous_api.api.swagger.models.get_user.GetUser(user_id: int = None, nick: str = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.get_user.GetUser

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The GetUser of this GetUser. # noqa: E501

Return type

GetUser

property nick

Gets the nick of this GetUser.

Returns

The nick of this GetUser.

Return type

str

property user_id

Gets the user_id of this GetUser.

Returns

The user_id of this GetUser.

Return type

int

quizmous_api.api.swagger.models.inline_response200 module

class quizmous_api.api.swagger.models.inline_response200.InlineResponse200(taken: bool = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.inline_response200.InlineResponse200

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The inline_response_200 of this InlineResponse200. # noqa: E501

Return type

InlineResponse200

property taken

Gets the taken of this InlineResponse200.

Returns

The taken of this InlineResponse200.

Return type

bool

quizmous_api.api.swagger.models.post_user module

class quizmous_api.api.swagger.models.post_user.PostUser(nick: str = None, password: str = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.post_user.PostUser

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The PostUser of this PostUser. # noqa: E501

Return type

PostUser

property nick

Gets the nick of this PostUser.

Returns

The nick of this PostUser.

Return type

str

property password

Gets the password of this PostUser.

This has to be hashed # noqa: E501

Returns

The password of this PostUser.

Return type

str

quizmous_api.api.swagger.models.question module

class quizmous_api.api.swagger.models.question.Question(question_id: int = None, question: str = None, type: quizmous_api.api.swagger.models.question_type.QuestionType = None, required: bool = None, answers: List[quizmous_api.api.swagger.models.answer.Answer] = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

property answers

Gets the answers of this Question.

Returns

The answers of this Question.

Return type

List[Answer]

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.question.Question

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The Question of this Question. # noqa: E501

Return type

Question

property question

Gets the question of this Question.

Returns

The question of this Question.

Return type

str

property question_id

Gets the question_id of this Question.

Returns

The question_id of this Question.

Return type

int

property required

Gets the required of this Question.

Returns

The required of this Question.

Return type

bool

property type

Gets the type of this Question.

Returns

The type of this Question.

Return type

QuestionType

quizmous_api.api.swagger.models.question_type module

class quizmous_api.api.swagger.models.question_type.QuestionType

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

CHOICE = 'CHOICE'
OPEN = 'OPEN'
RADIO = 'RADIO'
YES_NO = 'YES_NO'
classmethod from_dict(dikt) → quizmous_api.api.swagger.models.question_type.QuestionType

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The QuestionType of this QuestionType. # noqa: E501

Return type

QuestionType

quizmous_api.api.swagger.models.quiz module

class quizmous_api.api.swagger.models.quiz.Quiz(quiz_id: int = None, author: quizmous_api.api.swagger.models.get_user.GetUser = None, name: str = None, description: str = None, questions: List[quizmous_api.api.swagger.models.question.Question] = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

property author

Gets the author of this Quiz.

Returns

The author of this Quiz.

Return type

GetUser

property description

Gets the description of this Quiz.

Returns

The description of this Quiz.

Return type

str

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.quiz.Quiz

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The Quiz of this Quiz. # noqa: E501

Return type

Quiz

property name

Gets the name of this Quiz.

Returns

The name of this Quiz.

Return type

str

property questions

Gets the questions of this Quiz.

Returns

The questions of this Quiz.

Return type

List[Question]

property quiz_id

Gets the quiz_id of this Quiz.

Returns

The quiz_id of this Quiz.

Return type

int

quizmous_api.api.swagger.models.user_answers module

class quizmous_api.api.swagger.models.user_answers.UserAnswers

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.user_answers.UserAnswers

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The UserAnswers of this UserAnswers. # noqa: E501

Return type

UserAnswers

quizmous_api.api.swagger.models.user_answers_inner module

class quizmous_api.api.swagger.models.user_answers_inner.UserAnswersInner(question_id: quizmous_api.api.swagger.models.user_answers_inner_question_id.UserAnswersInnerQuestionId = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.user_answers_inner.UserAnswersInner

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The UserAnswers_inner of this UserAnswersInner. # noqa: E501

Return type

UserAnswersInner

property question_id

Gets the question_id of this UserAnswersInner.

Returns

The question_id of this UserAnswersInner.

Return type

UserAnswersInnerQuestionId

quizmous_api.api.swagger.models.user_answers_inner_question_id module

class quizmous_api.api.swagger.models.user_answers_inner_question_id.UserAnswersInnerQuestionId(answer_id: List[int] = None, value: str = None)

Bases: quizmous_api.api.swagger.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

property answer_id

Gets the answer_id of this UserAnswersInnerQuestionId.

Returns

The answer_id of this UserAnswersInnerQuestionId.

Return type

List[int]

classmethod from_dict(dikt) → quizmous_api.api.swagger.models.user_answers_inner_question_id.UserAnswersInnerQuestionId

Returns the dict as a model

Parameters

dikt – A dict.

Type

dict

Returns

The UserAnswers_inner_question_id of this UserAnswersInnerQuestionId. # noqa: E501

Return type

UserAnswersInnerQuestionId

property value

Gets the value of this UserAnswersInnerQuestionId.

Returns

The value of this UserAnswersInnerQuestionId.

Return type

str

Module contents