import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Returns a list of licensee contacts connected to a user profile' contact.
*/
@Api(Description="Returns a list of licensee contacts connected to a user profile' contact.")
public static class GetLicenseeConnectedContacts
{
/**
* 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 getContactId() { return ContactId; }
public GetLicenseeConnectedContacts setContactId(UUID value) { this.ContactId = value; return this; }
public ArrayList<UUID> getSuiteIds() { return SuiteIds; }
public GetLicenseeConnectedContacts 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 GetLicenseeConnectedContacts DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/GetLicenseeConnectedContacts HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ContactId":"00000000-0000-0000-0000-000000000000","SuiteIds":["00000000-0000-0000-0000-000000000000"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ContactConnections":[{"ContactRoleId":"00000000-0000-0000-0000-000000000000","ContactRoleName":"String","ContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactRolePrimaryImageURL":"String","ContactRolePrimaryImageThumbnailURL":"String","ContactRolePrimaryImageId":"00000000-0000-0000-0000-000000000000","ConnectionContactId":"00000000-0000-0000-0000-000000000000","ConnectionContactName":"String","ConnectionContactRoleName":"String","ConnectionContactRoleId":"00000000-0000-0000-0000-000000000000","ConnectionContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactTypeName":"String","ConnectionContactPhotoURL":"String","IsContactLicenseeRole":false,"IsConnectionLicenseeRole":false,"ConnectionStatusName":"String","ConnectionStatusId":"00000000-0000-0000-0000-000000000000","ConnectionId":"00000000-0000-0000-0000-000000000000","ConnectionRequestId":"00000000-0000-0000-0000-000000000000"}],"EmailAddressBook":[{"ContactId":"00000000-0000-0000-0000-000000000000","ContactName":"String","EmailAddress":"String","ContactPhotoURL":"String"}]}