Exemplo n.º 1
0
 def __str__(self):
     string = super().__str__()
     string += self.string_separator + wrap_strings(
         [('body', self.reply['body'])],
         separator=self.string_separator,
         equal=self.string_equal)
     return string
Exemplo n.º 2
0
 def __str__(self):
     string = super().__str__()
     items = [('width', self.width), ('height', self.height),
              ('thumbnail-URL', self.thumbnail_url)]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 3
0
 def __str__(self):
     string = super().__str__()
     items = [('latitude', self.reply['latitude']),
              ('longitude', self.reply['longitude'])]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 4
0
 def __str__(self):
     string = super().__str__()
     items = [('nickname', self.reply['nickName']),
              ('phone-number', self.reply['phoneNo']),
              ('avatar-URL', self.reply['avatarlUrl'])]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 5
0
 def __str__(self):
     string = super().__str__()
     items = [('width', self.reply['imageWidth']),
              ('height', self.reply['imageHeight']),
              ('thumbnail-URL', self.reply['thumbnailUrl'])]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 6
0
 def __str__(self):
     string = super().__str__()
     items = [('duration', self.reply['fileDuration'], 'ms'),
              ('thumbnail-width', self.reply['thumbnailWidth']),
              ('thumbnail-height', self.reply['thumbnailHeight']),
              ('thumbnail-URL', self.reply['thumbnailUrl'])]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 7
0
 def __str__(self):
     string = super().__str__()
     items = [('media-type', self.mediatype), ('name', self.name),
              ('size', self.size, "KB"), ('URL', self.url)]
     if self.body and self.body != ' ':
         items.insert(2, ('body', self.body))
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 8
0
 def __str__(self):
     string = super().__str__()
     items = [('media-type', self.reply['fileType']),
              ('name', self.reply['fileNme']),
              ('size', self.reply['fileSize'], "KB"),
              ('URL', self.reply['fileUrl'])]
     if self.body and self.body != ' ':
         items.insert(2, ('body', self.file['body']))
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 9
0
 def __str__(self):
     return wrap_strings([('type', self.type), ('to', self.reply['to'])],
                         separator=self.string_separator,
                         equal=self.string_equal)
Exemplo n.º 10
0
 def __str__(self):
     string = super().__str__()
     items = [('duration', self.reply['fileDuration'], 'ms')]
     string += self.string_separator + wrap_strings(
         items, separator=self.string_separator, equal=self.string_equal)
     return string
Exemplo n.º 11
0
 def __str__(self):
     return wrap_strings([('type', self.type), ('from', self.sender),
                          ('timestamp', self.time)],
                         separator=self.string_separator,
                         equal=self.string_equal)