oadrCreatedEvent.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. <oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
  2. <oadr:oadrCreatedEvent ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
  3. <eiCreatedEvent xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">
  4. <ei:eiResponse>
  5. <ei:responseCode>{{ response.response_code }}</ei:responseCode>
  6. <ei:responseDescription>{{ response.response_description }}</ei:responseDescription>
  7. {% if response.request_id is defined and response.request_id is not none %}
  8. <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ response.request_id }}</requestID>
  9. {% endif %}
  10. </ei:eiResponse>
  11. {% if event_responses is defined and event_response is not none %}
  12. <ei:eventResponses>
  13. {% for event_response in event_responses %}
  14. <ei:eventResponse>
  15. <ei:responseCode>{{ event_response.response_code }}</ei:responseCode>
  16. {% if event_response.response_description is defined and event_response.response_description is not none %}
  17. <ei:responseDescription>{{ event_response.response_description }}</ei:responseDescription>
  18. {% endif %}
  19. <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ event_response.request_id }}</requestID>
  20. <ei:qualifiedEventID>
  21. <ei:eventID>{{ event_response.event_id }}</ei:eventID>
  22. <ei:modificationNumber>{{ event_response.modification_number }}</ei:modificationNumber>
  23. </ei:qualifiedEventID>
  24. <ei:optType>{{ event_response.opt_type }}</ei:optType>
  25. </ei:eventResponse>
  26. {% endfor %}
  27. </ei:eventResponses>
  28. {% endif %}
  29. <ei:venID>{{ ven_id }}</ei:venID>
  30. </eiCreatedEvent>
  31. </oadr:oadrCreatedEvent>
  32. </oadr:oadrSignedObject>