def _render_android(self): user_collapse_key = "{}_favorite_update".format(self.user_id) if self.sending_device_key in self.keys[ClientType.OS_ANDROID]: self.keys[ClientType.OS_ANDROID].remove(self.sending_device_key) data = self._build_dict() return GCMMessage(self.keys[ClientType.OS_ANDROID], data, collapse_key=user_collapse_key)
def _render_android(self): from controllers.gcm.gcm import GCMMessage user_collapse_key = "{}_subscriptions_update".format(self.user_id) if self.sending_device_key in self.keys[ClientType.OS_ANDROID]: self.keys[ClientType.OS_ANDROID].remove(self.sending_device_key) data = self._build_dict() return GCMMessage(self.keys[ClientType.OS_ANDROID], data, collapse_key=user_collapse_key)
def _render_android(self): gcm_keys = self.keys[ClientType.OS_ANDROID] data = self._build_dict() return GCMMessage(gcm_keys, data)
def _render_gcm(self, client_type): from controllers.gcm.gcm import GCMMessage gcm_keys = self.keys[client_type] data = self._build_dict() return GCMMessage(gcm_keys, data, priority=self._priority)
def _render_web(self): from controllers.gcm.gcm import GCMMessage gcm_keys = self.keys[ClientType.WEB] data = self._build_dict() return GCMMessage(gcm_keys, data, priority=self._priority)
def _render_android(self): from controllers.gcm.gcm import GCMMessage gcm_keys = self.keys[ClientType.OS_ANDROID] data = self._build_dict() return GCMMessage(gcm_keys, data, priority=self._priority)
def _render_web(self): gcm_keys = self.keys[ClientType.WEB] data = self._build_dict() return GCMMessage(gcm_keys, data, priority=self._priority)