-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayload_base.py
63 lines (43 loc) · 1.76 KB
/
payload_base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from typing import List
import json
class Caracteristicas(object):
def __init__(self, pessoa_ids: object, pessoa_descricao: object, pessoa_preferencias: object):
self.pessoa_ids = pessoa_ids
self.pessoa_descricao = pessoa_descricao
self.pessoa_preferencias = pessoa_preferencias
def caracteristicas(self):
caracteristicas = [self.pessoa_ids, self.pessoa_descricao, self.pessoa_preferencias]
return caracteristicas
class PessoaIds(object):
def __init__(self, id_nome: str, id_sexo: str, id_cor: str):
self.id_nome = id_nome
self.id_sexo = id_sexo
self.id_cor = id_cor
class PessoaDescricao(object):
def __init__(self, nome: str, sexo: str, cor: str):
self.nome = nome
self.sexo = sexo
self.cor = cor
class PessoaPreferencias(object):
def __init__(self, prato: str, doce: str, bebida: str):
self.prato = prato
self.doce = doce
self.bebida = bebida
class Qualificacoes(object):
def __init__(self, profissionais: object, animais: object):
self.profissionais = profissionais
self.animais = animais
class Profissionais(object):
def __init__(self, tempo_funcao: str, tipo_contrato: str, nome_ultima_empresa: str):
self.tempo_funcao = tempo_funcao
self.tipo_contrato = tipo_contrato
self.nome_ultima_empresa = nome_ultima_empresa
class Animais(object):
def __init__(self, domesticado: str, tipo: str):
self.domesticado = domesticado
self.tipo = tipo
class PayloadBase(object):
def __init__(self, topic: str, caracteristicas: List[Caracteristicas], qualificacoes: object):
self.topic = topic
self.caracteristicas = caracteristicas
self.qualificacoes = qualificacoes