| GET | /Entity-Contacts/Contact |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetEntityContact
{
}
public static class EntityContactViewModel
{
public Integer Id = null;
public UUID Guid = null;
public Integer EntityId = null;
public String FirstName = null;
public String LastName = null;
public String Initials = null;
public String Password = null;
public String EmailAddress = null;
public Boolean DarkMode = null;
public EntityViewModel Entity = null;
public Date LastActive = null;
public UUID ImageGuid = null;
public Integer DialingCodeCountryId = null;
public String TelephoneNumber = null;
public Boolean IsBridgeClient = null;
public ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> AccessLevels = null;
public Integer getId() { return Id; }
public EntityContactViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public EntityContactViewModel setGuid(UUID value) { this.Guid = value; return this; }
public Integer getEntityId() { return EntityId; }
public EntityContactViewModel setEntityId(Integer value) { this.EntityId = value; return this; }
public String getFirstName() { return FirstName; }
public EntityContactViewModel setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public EntityContactViewModel setLastName(String value) { this.LastName = value; return this; }
public String getInitials() { return Initials; }
public EntityContactViewModel setInitials(String value) { this.Initials = value; return this; }
public String getPassword() { return Password; }
public EntityContactViewModel setPassword(String value) { this.Password = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public EntityContactViewModel setEmailAddress(String value) { this.EmailAddress = value; return this; }
public Boolean isDarkMode() { return DarkMode; }
public EntityContactViewModel setDarkMode(Boolean value) { this.DarkMode = value; return this; }
public EntityViewModel getEntity() { return Entity; }
public EntityContactViewModel setEntity(EntityViewModel value) { this.Entity = value; return this; }
public Date getLastActive() { return LastActive; }
public EntityContactViewModel setLastActive(Date value) { this.LastActive = value; return this; }
public UUID getImageGuid() { return ImageGuid; }
public EntityContactViewModel setImageGuid(UUID value) { this.ImageGuid = value; return this; }
public Integer getDialingCodeCountryId() { return DialingCodeCountryId; }
public EntityContactViewModel setDialingCodeCountryId(Integer value) { this.DialingCodeCountryId = value; return this; }
public String getTelephoneNumber() { return TelephoneNumber; }
public EntityContactViewModel setTelephoneNumber(String value) { this.TelephoneNumber = value; return this; }
public Boolean getIsBridgeClient() { return IsBridgeClient; }
public EntityContactViewModel setIsBridgeClient(Boolean value) { this.IsBridgeClient = value; return this; }
public ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> getAccessLevels() { return AccessLevels; }
public EntityContactViewModel setAccessLevels(ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> value) { this.AccessLevels = value; return this; }
}
public static class EntityViewModel
{
public Integer Id = null;
public UUID Guid = null;
public String Type = null;
public String Name = null;
public Boolean SuperTrader = null;
public String CompanyDomain = null;
public Integer KYCStartedBy = null;
public Integer KYCCompletedBy = null;
public String ETSMOHAAccount = null;
public Integer getId() { return Id; }
public EntityViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public EntityViewModel setGuid(UUID value) { this.Guid = value; return this; }
public String getType() { return Type; }
public EntityViewModel setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public EntityViewModel setName(String value) { this.Name = value; return this; }
public Boolean isSuperTrader() { return SuperTrader; }
public EntityViewModel setSuperTrader(Boolean value) { this.SuperTrader = value; return this; }
public String getCompanyDomain() { return CompanyDomain; }
public EntityViewModel setCompanyDomain(String value) { this.CompanyDomain = value; return this; }
public Integer getKycStartedBy() { return KYCStartedBy; }
public EntityViewModel setKycStartedBy(Integer value) { this.KYCStartedBy = value; return this; }
public Integer getKycCompletedBy() { return KYCCompletedBy; }
public EntityViewModel setKycCompletedBy(Integer value) { this.KYCCompletedBy = value; return this; }
public String getEtsmohaAccount() { return ETSMOHAAccount; }
public EntityViewModel setEtsmohaAccount(String value) { this.ETSMOHAAccount = value; return this; }
}
public static class GetAllAccessLevelsForEntityContactIdViewModel
{
public Integer Id = null;
public Boolean Allowed = null;
public String Name = null;
public String Description = null;
public String PrettyText = null;
public Integer getId() { return Id; }
public GetAllAccessLevelsForEntityContactIdViewModel setId(Integer value) { this.Id = value; return this; }
public Boolean isAllowed() { return Allowed; }
public GetAllAccessLevelsForEntityContactIdViewModel setAllowed(Boolean value) { this.Allowed = value; return this; }
public String getName() { return Name; }
public GetAllAccessLevelsForEntityContactIdViewModel setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public GetAllAccessLevelsForEntityContactIdViewModel setDescription(String value) { this.Description = value; return this; }
public String getPrettyText() { return PrettyText; }
public GetAllAccessLevelsForEntityContactIdViewModel setPrettyText(String value) { this.PrettyText = value; return this; }
}
}
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.
GET /Entity-Contacts/Contact HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EntityContactViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<AccessLevels>
<GetAllAccessLevelsForEntityContactIdViewModel>
<Allowed>false</Allowed>
<Description>String</Description>
<Id>0</Id>
<Name>String</Name>
<PrettyText>String</PrettyText>
</GetAllAccessLevelsForEntityContactIdViewModel>
</AccessLevels>
<DarkMode>false</DarkMode>
<DialingCodeCountryId>0</DialingCodeCountryId>
<EmailAddress>String</EmailAddress>
<Entity>
<CompanyDomain>String</CompanyDomain>
<ETSMOHAAccount>String</ETSMOHAAccount>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<KYCCompletedBy>0</KYCCompletedBy>
<KYCStartedBy>0</KYCStartedBy>
<Name>String</Name>
<SuperTrader>false</SuperTrader>
<Type>String</Type>
</Entity>
<EntityId>0</EntityId>
<FirstName>String</FirstName>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<ImageGuid>00000000-0000-0000-0000-000000000000</ImageGuid>
<Initials>String</Initials>
<IsBridgeClient>false</IsBridgeClient>
<LastActive>0001-01-01T00:00:00</LastActive>
<LastName>String</LastName>
<Password>String</Password>
<TelephoneNumber>String</TelephoneNumber>
</EntityContactViewModel>