Returns a string representing the command you have to type to obtain the same packet
(self)
| 1779 | return f |
| 1780 | |
| 1781 | def command(self): |
| 1782 | # type: () -> str |
| 1783 | """ |
| 1784 | Returns a string representing the command you have to type to |
| 1785 | obtain the same packet |
| 1786 | """ |
| 1787 | c = "%s(%s)" % ( |
| 1788 | self.__class__.__name__, |
| 1789 | ", ".join("%s=%s" % x for x in self._command()) |
| 1790 | ) |
| 1791 | pc = self.payload.command() |
| 1792 | if pc: |
| 1793 | c += "/" + pc |
| 1794 | return c |
| 1795 | |
| 1796 | def json(self): |
| 1797 | # type: () -> str |