enums.py 690 Bytes
class Table:
  id = "id"
  path = "path"
  file = "file"
  serv = "serv"
  dest = "dest"
  type = "type"
  state = "state"

class States:
  queued = "queued"
  delivered = "delivered"

class Services:
  wpp1 = "wpp1"

  @staticmethod
  def validate(serv):
    if serv == Services.wpp1:
      return True
    return False

class Datatypes:
  text = "text"
  image = "image"
  document = "document"
  link = "link"

  @staticmethod
  def validate(datatype):
    if datatype == Datatypes.text:
      return True
    if datatype == Datatypes.image:
      return True
    if datatype == Datatypes.document:
      return True
    if datatype == Datatypes.link:
      return True
    return False