SubscriptionUpdated
Smile emits this message after subscription data is changed.
This message contains the current data for a subscription, such as its properties and status, but it does not specify what has been changed or removed. To determine which properties have changed, listeners must persist their own set of properties and compare this set to the set in the message.
Message header
The following table lists the parameters in the SubscriptionUpdated message header.
Parameter | Type | Values |
---|---|---|
sid | integer | The service ID |
usn | string | The unique subscription ID number for the subscription |
smileMessageType | string | "SubscriptionUpdated" |
Message body
The message body contains the
<SubscriptionUpdated> element and has the following format:
{http://xml.inomial.com/smile/2.xsd}SubscriptionUpdated
Example: The <SubscriptionUpdated> element
This example shows a SubscriptionUpdated XML document that contains the <SubscriptionUpdated> element.
<SubscriptionUpdated xmlns="http://xml.inomial.com/smile/2.xsd">
<Subscription>
<USN>2142426697</USN>
<SID>17</SID>
<ServiceName>Smile Access</ServiceName>
<Parent>2142426689</Parent>
<Properties>
<Object>
<String name="emailAddress">joe@example.com</String>
<String name="username">joe@example.com</String>
</Object>
</Properties>
<ProvisionStatus>Provisioned</ProvisionStatus>
<SuspendStatus>Active</SuspendStatus>
<ActivateStatus>NotActivated</ActivateStatus>
<EnableStatus>Enabled</EnableStatus>
</Subscription>
</SubscriptionUpdated>