def render(self):
        if self.filter is not None and self.conditions is not None:
            raise PushwooshNotificationException('filter and conditions is mutually exclusive options')

        result = {}
        render_attrs(self, result, ('platforms', 'devices', 'filter', 'conditions'))
        return result
    def render(self):
        result = {
            'send_date': self.send_date,
            'content': self.content,
        }
        render_attrs(self, result, ('ignore_user_timezone', 'page_id', 'link', 'data'))

        if 'link' in result:
            result['minimize_link'] = self.minimize_link

        return result
 def compile(self):
     render_attrs(self, self._command, ['lat', 'lng'])
     BaseDeviceCommand.compile(self)
 def compile(self):
     render_attrs(self, self._command, ['hash'])
     BaseDeviceCommand.compile(self)
 def compile(self):
     render_attrs(self, self._command, ['device_type', 'push_token', 'language', 'timezone'])
     BaseDeviceCommand.compile(self)
 def compile(self):
     render_attrs(self, self._command, ['application', 'hwid'])
     BaseCommand.compile(self)
    def compile(self):
        if self.message is None:
            raise PushwooshCommandException('message is required')

        render_attrs(self, self._command, ['message'])
        BaseAuthCommand.compile(self)
 def render(self):
     result = {}
     render_attrs(self, result, ('blackberry_header',))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('adm_root_params', 'adm_sound', 'adm_header', 'adm_icon', 'adm_custom_icon',
                                 'adm_banner', 'adm_ttl'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('safari_title', 'safari_action', 'safari_url_args', 'safari_ttl'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('wns_content', 'wns_type', 'wns_tag'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('mac_badges', 'mac_sound', 'mac_root_params', 'mac_ttl'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('wp_type', 'wp_background', 'wp_backbackground', 'wp_backtitle', 'wp_count', 'wp_backcontent'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('android_root_params', 'android_sound', 'android_header', 'android_icon',
                                 'android_custom_icon', 'android_banner', 'android_gcm_ttl'))
     return result
 def render(self):
     result = {}
     render_attrs(self, result, ('ios_badges', 'ios_sound', 'ios_ttl', 'ios_root_params', 'apns_trim_content'))
     return result