def get_payload(self, timezones, return_full_timezone_data):
    payload = create_element(('m:%s' % self.SERVICE_NAME), attrs=dict(ReturnFullTimeZoneData=('true' if return_full_timezone_data else 'false')))
    if (timezones is not None):
        (is_empty, timezones) = peek(timezones)
        if (not is_empty):
            tz_ids = create_element('m:Ids')
            for timezone in timezones:
                tz_id = set_xml_value(create_element('t:Id'), timezone.ms_id, version=self.protocol.version)
                tz_ids.append(tz_id)
            payload.append(tz_ids)
    return payload
def get_payload(self, timezones, return_full_timezone_data):
    payload = create_element(('m:%s' % self.SERVICE_NAME), attrs=dict(ReturnFullTimeZoneData=('true' if return_full_timezone_data else 'false')))
    if (timezones is not None):
        (is_empty, timezones) = peek(timezones)
        if (not is_empty):
            tz_ids = create_element('m:Ids')
            for timezone in timezones:
                tz_id = set_xml_value(create_element('t:Id'), timezone.ms_id, version=self.protocol.version)
                tz_ids.append(tz_id)
            payload.append(tz_ids)
    return payload