import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Returns a list of contacts connected to a user profiles' contact.
*/
@Api(Description="Returns a list of contacts connected to a user profiles' contact.")
public static class GetConnectedContacts
{
/**
* The user's Guid. Contacts retrieved will be connected to this user.
*/
@ApiMember(DataType="Guid", Description="The user's Guid. Contacts retrieved will be connected to this user.", IsRequired=true, Name="UserId", ParameterType="query")
public UUID UserId = null;
/**
* The user profiles Contact Guid. Contacts connected to the user will be filted by this profiles contact ID.
*/
@ApiMember(DataType="Guid", Description="The user profiles Contact Guid. Contacts connected to the user will be filted by this profiles contact ID.", IsRequired=true, Name="ContactId", ParameterType="query")
public UUID ContactId = null;
/**
* The suite id list. Gets contacts connected to the user filted by the suite IDs in this list..
*/
@ApiMember(DataType="List<Guid>", Description="The suite id list. Gets contacts connected to the user filted by the suite IDs in this list..", Name="SuiteIds", ParameterType="query")
public ArrayList<UUID> SuiteIds = null;
public UUID getUserId() { return UserId; }
public GetConnectedContacts setUserId(UUID value) { this.UserId = value; return this; }
public UUID getContactId() { return ContactId; }
public GetConnectedContacts setContactId(UUID value) { this.ContactId = value; return this; }
public ArrayList<UUID> getSuiteIds() { return SuiteIds; }
public GetConnectedContacts setSuiteIds(ArrayList<UUID> value) { this.SuiteIds = value; return this; }
}
public static class UserContacts
{
/**
* A list of contact connections assigned to the user.
*/
@ApiMember(DataType="List<UserContactConnectionModel>", Description="A list of contact connections assigned to the user.", Name="ContactConnections", ParameterType="query")
public ArrayList<UserContactConnectionModel> ContactConnections = null;
/**
* A list of connected contacts and their email addresses.
*/
@ApiMember(DataType="List<ContactEmailAddressBook>", Description="A list of connected contacts and their email addresses.", Name="EmailAddressBook", ParameterType="query")
public ArrayList<ContactEmailAddress> EmailAddressBook = null;
public ArrayList<UserContactConnectionModel> getContactConnections() { return ContactConnections; }
public UserContacts setContactConnections(ArrayList<UserContactConnectionModel> value) { this.ContactConnections = value; return this; }
public ArrayList<ContactEmailAddress> getEmailAddressBook() { return EmailAddressBook; }
public UserContacts setEmailAddressBook(ArrayList<ContactEmailAddress> value) { this.EmailAddressBook = value; return this; }
}
public static class UserContactConnectionModel
{
/**
* The Contact Role Id, that links the Contact to their role.
*/
@ApiMember(DataType="Guid", Description="The Contact Role Id, that links the Contact to their role.", Name="ContactRoleId", ParameterType="query")
public UUID ContactRoleId = null;
/**
* The role name.
*/
@ApiMember(DataType="string", Description="The role name.", Name="ContactRoleName", ParameterType="query")
public String ContactRoleName = null;
/**
* The list item role Id.
*/
@ApiMember(DataType="Guid", Description="The list item role Id.", Name="ContactListItemRoleId", ParameterType="query")
public UUID ContactListItemRoleId = null;
/**
* The URL of the contact role's image icon.
*/
@ApiMember(DataType="string", Description="The URL of the contact role's image icon.", Name="ContactRolePrimaryImageURL", ParameterType="query")
public String ContactRolePrimaryImageURL = null;
/**
* The URL of the contact role's thumbnail image icon.
*/
@ApiMember(DataType="string", Description="The URL of the contact role's thumbnail image icon.", Name="ContactRolePrimaryImageThumbnailURL", ParameterType="query")
public String ContactRolePrimaryImageThumbnailURL = null;
/**
* The Guid of the contact role's media file containing the image icon details.
*/
@ApiMember(DataType="string", Description="The Guid of the contact role's media file containing the image icon details.", Name="ContactRolePrimaryImageId", ParameterType="query")
public UUID ContactRolePrimaryImageId = null;
/**
* The connected contacts Id. (licensee)
*/
@ApiMember(DataType="string", Description="The connected contacts Id. (licensee)", Name="ConnectionContactId", ParameterType="query")
public UUID ConnectionContactId = null;
/**
* The connected contacts Full Name.
*/
@ApiMember(DataType="string", Description="The connected contacts Full Name.", Name="ConnectionContactName", ParameterType="query")
public String ConnectionContactName = null;
/**
* The connected contacts role.
*/
@ApiMember(DataType="string", Description="The connected contacts role.", Name="ConnectionContactRoleName", ParameterType="query")
public String ConnectionContactRoleName = null;
/**
* The connected contacts role Id.
*/
@ApiMember(DataType="Guid", Description="The connected contacts role Id.", Name="ConnectionContactRoleId", ParameterType="query")
public UUID ConnectionContactRoleId = null;
/**
* The connected contacts list item role Id.
*/
@ApiMember(DataType="Guid", Description="The connected contacts list item role Id.", Name="ConnectionContactListItemRoleId", ParameterType="query")
public UUID ConnectionContactListItemRoleId = null;
/**
* The Contacts Type.
*/
@ApiMember(DataType="string", Description="The Contacts Type.", Name="ContactTypeName", ParameterType="query")
public String ContactTypeName = null;
/**
* The URL to the Connected Contacts Photo.
*/
@ApiMember(DataType="string", Description="The URL to the Connected Contacts Photo.", Name="ConnectionContactPhotoURL", ParameterType="query")
public String ConnectionContactPhotoURL = null;
/**
* .
*/
@ApiMember(DataType="bool", Description=".", Name="IsContactLicenseeRole", ParameterType="query")
public Boolean IsContactLicenseeRole = null;
/**
* If the connection is as a licensee this is true.
*/
@ApiMember(DataType="bool", Description="If the connection is as a licensee this is true.", Name="IsConnectionLicenseeRole", ParameterType="query")
public Boolean IsConnectionLicenseeRole = null;
/**
* The status of the connection with the contact.
*/
@ApiMember(DataType="string", Description="The status of the connection with the contact.", Name="ConnectionStatusName", ParameterType="query")
public String ConnectionStatusName = null;
/**
* The status Id of the connection with the contact.
*/
@ApiMember(DataType="Guid", Description="The status Id of the connection with the contact.", Name="ConnectionStatusId", ParameterType="query")
public UUID ConnectionStatusId = null;
/**
* The ContactRoleConnectionId of an active connection with the contact.
*/
@ApiMember(DataType="Guid", Description="The ContactRoleConnectionId of an active connection with the contact.", Name="ConnectionId", ParameterType="query")
public UUID ConnectionId = null;
/**
* The ContactRoleConnectionRequest of a pending connection with the contact.
*/
@ApiMember(DataType="Guid", Description="The ContactRoleConnectionRequest of a pending connection with the contact.", Name="ConnectionRequestId", ParameterType="query")
public UUID ConnectionRequestId = null;
public UUID getContactRoleId() { return ContactRoleId; }
public UserContactConnectionModel setContactRoleId(UUID value) { this.ContactRoleId = value; return this; }
public String getContactRoleName() { return ContactRoleName; }
public UserContactConnectionModel setContactRoleName(String value) { this.ContactRoleName = value; return this; }
public UUID getContactListItemRoleId() { return ContactListItemRoleId; }
public UserContactConnectionModel setContactListItemRoleId(UUID value) { this.ContactListItemRoleId = value; return this; }
public String getContactRolePrimaryImageURL() { return ContactRolePrimaryImageURL; }
public UserContactConnectionModel setContactRolePrimaryImageURL(String value) { this.ContactRolePrimaryImageURL = value; return this; }
public String getContactRolePrimaryImageThumbnailURL() { return ContactRolePrimaryImageThumbnailURL; }
public UserContactConnectionModel setContactRolePrimaryImageThumbnailURL(String value) { this.ContactRolePrimaryImageThumbnailURL = value; return this; }
public UUID getContactRolePrimaryImageId() { return ContactRolePrimaryImageId; }
public UserContactConnectionModel setContactRolePrimaryImageId(UUID value) { this.ContactRolePrimaryImageId = value; return this; }
public UUID getConnectionContactId() { return ConnectionContactId; }
public UserContactConnectionModel setConnectionContactId(UUID value) { this.ConnectionContactId = value; return this; }
public String getConnectionContactName() { return ConnectionContactName; }
public UserContactConnectionModel setConnectionContactName(String value) { this.ConnectionContactName = value; return this; }
public String getConnectionContactRoleName() { return ConnectionContactRoleName; }
public UserContactConnectionModel setConnectionContactRoleName(String value) { this.ConnectionContactRoleName = value; return this; }
public UUID getConnectionContactRoleId() { return ConnectionContactRoleId; }
public UserContactConnectionModel setConnectionContactRoleId(UUID value) { this.ConnectionContactRoleId = value; return this; }
public UUID getConnectionContactListItemRoleId() { return ConnectionContactListItemRoleId; }
public UserContactConnectionModel setConnectionContactListItemRoleId(UUID value) { this.ConnectionContactListItemRoleId = value; return this; }
public String getContactTypeName() { return ContactTypeName; }
public UserContactConnectionModel setContactTypeName(String value) { this.ContactTypeName = value; return this; }
public String getConnectionContactPhotoURL() { return ConnectionContactPhotoURL; }
public UserContactConnectionModel setConnectionContactPhotoURL(String value) { this.ConnectionContactPhotoURL = value; return this; }
public Boolean getIsContactLicenseeRole() { return IsContactLicenseeRole; }
public UserContactConnectionModel setIsContactLicenseeRole(Boolean value) { this.IsContactLicenseeRole = value; return this; }
public Boolean getIsConnectionLicenseeRole() { return IsConnectionLicenseeRole; }
public UserContactConnectionModel setIsConnectionLicenseeRole(Boolean value) { this.IsConnectionLicenseeRole = value; return this; }
public String getConnectionStatusName() { return ConnectionStatusName; }
public UserContactConnectionModel setConnectionStatusName(String value) { this.ConnectionStatusName = value; return this; }
public UUID getConnectionStatusId() { return ConnectionStatusId; }
public UserContactConnectionModel setConnectionStatusId(UUID value) { this.ConnectionStatusId = value; return this; }
public UUID getConnectionId() { return ConnectionId; }
public UserContactConnectionModel setConnectionId(UUID value) { this.ConnectionId = value; return this; }
public UUID getConnectionRequestId() { return ConnectionRequestId; }
public UserContactConnectionModel setConnectionRequestId(UUID value) { this.ConnectionRequestId = value; return this; }
}
public static class ContactEmailAddress
{
/**
* The Contact Id of the contact.
*/
@ApiMember(DataType="Guid", Description="The Contact Id of the contact.", Name="ContactId", ParameterType="query")
public UUID ContactId = null;
/**
* The Contact Full Name
*/
@ApiMember(DataType="string", Description="The Contact Full Name", Name="ContactName", ParameterType="query")
public String ContactName = null;
/**
* The Contact Email Address.
*/
@ApiMember(DataType="string", Description="The Contact Email Address.", Name="EmailAddress", ParameterType="query")
public String EmailAddress = null;
/**
* The Contact Photo URL
*/
@ApiMember(DataType="string", Description="The Contact Photo URL", Name="ContactPhotoURL", ParameterType="query")
public String ContactPhotoURL = null;
public UUID getContactId() { return ContactId; }
public ContactEmailAddress setContactId(UUID value) { this.ContactId = value; return this; }
public String getContactName() { return ContactName; }
public ContactEmailAddress setContactName(String value) { this.ContactName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public ContactEmailAddress setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getContactPhotoURL() { return ContactPhotoURL; }
public ContactEmailAddress setContactPhotoURL(String value) { this.ContactPhotoURL = value; return this; }
}
}
Java GetConnectedContacts DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/GetConnectedContacts HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetConnectedContacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<ContactId>00000000-0000-0000-0000-000000000000</ContactId>
<SuiteIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</SuiteIds>
<UserId>00000000-0000-0000-0000-000000000000</UserId>
</GetConnectedContacts>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UserContacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<ContactConnections>
<UserContactConnectionModel>
<ConnectionContactId>00000000-0000-0000-0000-000000000000</ConnectionContactId>
<ConnectionContactListItemRoleId>00000000-0000-0000-0000-000000000000</ConnectionContactListItemRoleId>
<ConnectionContactName>String</ConnectionContactName>
<ConnectionContactPhotoURL>String</ConnectionContactPhotoURL>
<ConnectionContactRoleId>00000000-0000-0000-0000-000000000000</ConnectionContactRoleId>
<ConnectionContactRoleName>String</ConnectionContactRoleName>
<ConnectionId>00000000-0000-0000-0000-000000000000</ConnectionId>
<ConnectionRequestId>00000000-0000-0000-0000-000000000000</ConnectionRequestId>
<ConnectionStatusId>00000000-0000-0000-0000-000000000000</ConnectionStatusId>
<ConnectionStatusName>String</ConnectionStatusName>
<ContactListItemRoleId>00000000-0000-0000-0000-000000000000</ContactListItemRoleId>
<ContactRoleId>00000000-0000-0000-0000-000000000000</ContactRoleId>
<ContactRoleName>String</ContactRoleName>
<ContactRolePrimaryImageId>00000000-0000-0000-0000-000000000000</ContactRolePrimaryImageId>
<ContactRolePrimaryImageThumbnailURL>String</ContactRolePrimaryImageThumbnailURL>
<ContactRolePrimaryImageURL>String</ContactRolePrimaryImageURL>
<ContactTypeName>String</ContactTypeName>
<IsConnectionLicenseeRole>false</IsConnectionLicenseeRole>
<IsContactLicenseeRole>false</IsContactLicenseeRole>
</UserContactConnectionModel>
</ContactConnections>
<EmailAddressBook>
<ContactEmailAddress>
<ContactId>00000000-0000-0000-0000-000000000000</ContactId>
<ContactName>String</ContactName>
<ContactPhotoURL>String</ContactPhotoURL>
<EmailAddress>String</EmailAddress>
</ContactEmailAddress>
</EmailAddressBook>
</UserContacts>