def custom_params(self): params = {} params['add'] = utils.join_items(self._channels) params['type'] = utils.push_type_to_string(self._push_type) return params
def custom_params(self): params = { 'remove': utils.join_items(self._channels), 'type': utils.push_type_to_string(self._push_type) } return params
def custom_params(self): params = {} if self._push_type != PNPushType.APNS2: params['type'] = utils.push_type_to_string(self._push_type) else: if self._environment is None: self._environment = PNPushEnvironment.DEVELOPMENT params['environment'] = self._environment params['topic'] = self._topic return params
def custom_params(self): params = {} params['type'] = utils.push_type_to_string(self._push_type) return params
def custom_params(self): params = {'remove': utils.join_items(self._channels), 'type': utils.push_type_to_string(self._push_type)} return params