(self, message)
| 65 | @handle_for_type('location') |
| 66 | class LocationMessage(WechatMessage): |
| 67 | def __init__(self, message): |
| 68 | try: |
| 69 | location_x = message.pop('Location_X') |
| 70 | location_y = message.pop('Location_Y') |
| 71 | self.location = (float(location_x), float(location_y)) |
| 72 | self.scale = int(message.pop('Scale')) |
| 73 | self.label = message.pop('Label') |
| 74 | except KeyError: |
| 75 | raise ParseError() |
| 76 | super(LocationMessage, self).__init__(message) |
| 77 | |
| 78 | |
| 79 | @handle_for_type('link') |
nothing calls this directly
no test coverage detected