31 """ Payload object class """
33 for key, value
in kwargs.iteritems():
34 setattr(self, key, value)
38 """! Equality method """
39 return self.
serialize() == other.serialize()
43 """! Append key-value pairs to the request payload.
45 @param **kwargs - Keyword arguments. Key-Value pairs to append to the
48 for key, value
in kwargs.iteritems():
49 setattr(self, key, value)
53 """! Remove payload properties
55 @param toDelAttr (Array) - Array of Strings for properties to remove from
58 for key
in kwargs.iteritems():
63 """! Serialize to Dictionary
65 @return dictionary - Request Payload dictionary.
67 return { k:v
for k,v
in vars(self).items()
if not k.startswith(
'_')
or callable(v) }
71 """! Serialize to Dictionary and create a json string
73 @return json - Request Payload json string.
def make_json
Serialize to Dictionary and create a json string.
def append
Append key-value pairs to the request payload.
def serialize
Serialize to Dictionary.
def __eq__
Equality method.
def remove
Remove payload properties.