def __init__(self, content=None, content_type=UNSPECIFIED, id=None, subject=None, user_id=None, reply_to=None, correlation_id=None, durable=None, priority=None, ttl=None, properties=None): this = _cqpid.new_Message('') try: self.this.append(this) except: self.this = this if content : self.content = content if content_type != UNSPECIFIED : self.content_type = content_type if id is not None : self.id = id if subject is not None : self.subject = subject if user_id is not None : self.user_id = user_id if reply_to is not None : self.reply_to = reply_to if correlation_id is not None : self.correlation_id = correlation_id if durable is not None : self.durable = durable if priority is not None : self.priority = priority if ttl is not None : self.ttl = ttl if properties is not None : # Can't set properties via (inst).getProperties, because # the typemaps make a copy of the underlying properties. # Instead, set via setProperty for the time-being for k, v in properties.iteritems() : self.setProperty(k, v)
def __init__(self, content=None, content_type=UNSPECIFIED, id=None, subject=None, user_id=None, reply_to=None, correlation_id=None, durable=None, priority=None, ttl=None, properties=None): this = _cqpid.new_Message('') try: self.this.append(this) except: self.this = this if content: self.content = content if content_type != UNSPECIFIED: self.content_type = content_type if id is not None: self.id = id if subject is not None: self.subject = subject if user_id is not None: self.user_id = user_id if reply_to is not None: self.reply_to = reply_to if correlation_id is not None: self.correlation_id = correlation_id if durable is not None: self.durable = durable if priority is not None: self.priority = priority if ttl is not None: self.ttl = ttl if properties is not None: # Can't set properties via (inst).getProperties, because # the typemaps make a copy of the underlying properties. # Instead, set via setProperty for the time-being for k, v in properties.iteritems(): self.setProperty(k, v)
def __init__(self, *args): this = _cqpid.new_Message(*args) try: self.this.append(this) except: self.this = this