{%- macro profile_id(profile) %} Cid {{ cid_format(profile.user.uuid, decimal = True) }} {%- if profile.puid is none %} Unspecified {%- else %} Puid {{ profile.puid }} {%- endif %} Unspecified {%- endmacro %} {%- macro profile_view(profile) %} WLX.DC.CoreProfile 1 PublicProfile.ResourceId{{ profile.cid }}!106 PublicProfile.DisplayName{{ (profile.user.first_name or '')|e }} PublicProfile.DisplayName.LastModified{{ now }} PublicProfile.DisplayLastName{{ (profile.user.last_name or '')|e }} PublicProfile.DisplayLastName.LastModified{{ now }} ExpressionProfile.ResourceId{{ profile.cid }}!118 ExpressionProfile.DisplayName{{ (profile.roaming_info.name or profile.user.status.name or '')|e }} ExpressionProfile.DisplayName.LastModified{{ date_format(profile.roaming_info.name_last_modified) }} ExpressionProfile.PersonalStatus{{ (profile.roaming_info.message or '')|e }} ExpressionProfile.PersonalStatus.LastModified{{ date_format(profile.roaming_info.message_last_modified) }} ExpressionProfile.StaticUserTilePublicURLhttps://{{ host }}/avatar/{{ profile.user.uuid }}/im UserTileStaticUrlhttps://{{ host }}/avatar/{{ profile.user.uuid }}/im PictureProfile.UserTileStatic.ResourceId{{ profile.cid }}!205 LastModified{{ now }} {%- endmacro %} <{{ action }}Response xmlns="http://profile.live.com/"> <{{ action }}Result> {{ host }} 0 {%- if action == 'GetMany' %} {%- for profile in profiles %} {{ profile_id(profile) }} {%- endfor %} {%- else %} {{ profile_id(profiles[0]) }} {%- endif %} {%- if action == 'GetMany' %} {%- for profile in profiles %}{{ profile_view(profile) }}{%- endfor %} {%- else %}{{ profile_view(profiles[0]) }}{%- endif %}