1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <oadrSignedObject xmlns="http://openadr.org/oadr-2.0b/2012/07" id="oadrSignedObject">
- <oadrCreatedPartyRegistration ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
- <ei:eiResponse>
- <ei:responseCode>{{ response.response_code }}</ei:responseCode>
- <ei:responseDescription>{{ response.response_description }}</ei:responseDescription>
- <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ response.request_id }}</requestID>
- </ei:eiResponse>
- {% if registration_id %}
- <ei:registrationID>{{ registration_id }}</ei:registrationID>
- {% else %}
- <ei:registrationID />
- {% endif %}
- {% if ven_id %}
- <ei:venID>{{ ven_id }}</ei:venID>
- {% else %}
- <ei:venID />
- {% endif %}
- <ei:vtnID>{{ vtn_id }}</ei:vtnID>
- <oadrProfiles>
- {% for profile in profiles %}
- <oadrProfile>
- <oadrProfileName>{{ profile.profile_name }}</oadrProfileName>
- <oadrTransports>
- {% for transport in profile.transports %}
- <oadrTransport>
- <oadrTransportName>simpleHttp</oadrTransportName>
- </oadrTransport>
- {% endfor %}
- </oadrTransports>
- </oadrProfile>
- {% endfor %}
- </oadrProfiles>
- {% if requested_oadr_poll_freq %}
- <oadrRequestedOadrPollFreq>
- <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">{{ requested_oadr_poll_freq|timedeltaformat }}</duration>
- </oadrRequestedOadrPollFreq>
- {% endif %}
- </oadrCreatedPartyRegistration>
- </oadrSignedObject>
|