<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="../notes.xsl"?>
<Documentation>
	<Title code="0145">AddressBookGroupListEntry</Title>
	<Overview>
		<p>Schema used to return contacts that belong to a specific group.</p>
	</Overview>
	<Request schema="0145_RequestAddressBookGroupListEntry.xsd">
		<p>The 'UserID' and 'Password' elements identify the account.
			The 'ServiceName' element must be set to 'AddressBookGroupListEntry'.
			The 'SoftwareVersion' element is for internal 2SMS use only and should not be set.</p>
		<p>The 'ServiceDetail' must contain one of the following child elements:</p>
		<ul>
			<li>A 'GroupID' element with the 'GroupID' of the group to be listed.
				The user must have 'high' or 'medium' access to the group
				(see method code <a href="./0140_documentation.xml">0140</a>).</li>
			<li>A 'GroupName' element with the 'GroupName' of the group to be listed.
				The user must have 'high' or 'medium' access to the group.</li>
		</ul>
	</Request>
	<Response schema="0145_ResponseAddressBookGroupListEntry.xsd">
		<p>This method returns a succesful "00/OK" response if a list of contacts from the requested group was obtained.
			The 'Result' element confirms this and reports the number of entries returned, and how many are from the user's own address book.</p>
		<p>The 'Detail' element contains a set of 'Record' children, each of which provides information on a group member:</p>
		<ul>
			<li>'PersonNumber' is the value used by 2SMS to uniquely identify the contact.
				Address book entries are added and removed from a group using this value (see method codes
				<a href="./0170_documentation.xml">0170</a> and
				<a href="./0180_documentation.xml">0180</a>).</li>
			<li>The 'ownEntry' attribute of 'PersonNumber' is set to 'true' if the entry was taken from the user's own address book.</li>
			<li>'FirstName' contains the first-name of the contact.</li>
			<li>'LastName' contains the last-name of the contact.</li>
			<li>'MobilePhone' contains the mobile phone number of the contact (may be empty).</li>
			<li>'EmailAddress' contains the email address of the contact (may be empty).</li>
		</ul>
		<p>The 'Detail' element also contains an 'Entries' element with a 'total' attribute that reports the total number of group members
			and an 'own' attribute that reports how many of these were taken from the user's own address book.</p>
	</Response>
</Documentation>