import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AutoLogin extends ApiServiceRequest
{
public Integer UtcOffset = null;
public Integer SystemUserId = null;
public String RefreshToken = null;
public Integer getUtcOffset() { return UtcOffset; }
public AutoLogin setUtcOffset(Integer value) { this.UtcOffset = value; return this; }
public Integer getSystemUserId() { return SystemUserId; }
public AutoLogin setSystemUserId(Integer value) { this.SystemUserId = value; return this; }
public String getRefreshToken() { return RefreshToken; }
public AutoLogin setRefreshToken(String value) { this.RefreshToken = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo, IHasClientId
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String ApiKey = null;
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
public Double Latitude = null;
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
public Double Longitude = null;
public String getApiKey() { return ApiKey; }
public ApiServiceRequest setApiKey(String value) { this.ApiKey = value; return this; }
public Double getLatitude() { return Latitude; }
public ApiServiceRequest setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public ApiServiceRequest setLongitude(Double value) { this.Longitude = value; return this; }
}
public static class AutoLoginResponse extends ApiServiceResponse
{
public LoginData Data = null;
public LoginData getData() { return Data; }
public AutoLoginResponse setData(LoginData value) { this.Data = value; return this; }
}
public static class ApiServiceResponse implements IServiceResponse
{
public String Description = null;
public String Heading = null;
public Boolean WasSuccessful = null;
public Object ModelState = null;
public String getDescription() { return Description; }
public ApiServiceResponse setDescription(String value) { this.Description = value; return this; }
public String getHeading() { return Heading; }
public ApiServiceResponse setHeading(String value) { this.Heading = value; return this; }
public Boolean isWasSuccessful() { return WasSuccessful; }
public ApiServiceResponse setWasSuccessful(Boolean value) { this.WasSuccessful = value; return this; }
public Object getModelState() { return ModelState; }
public ApiServiceResponse setModelState(Object value) { this.ModelState = value; return this; }
}
public static class LoginData
{
public Integer SystemUserId = null;
public String RefreshToken = null;
public String FirstName = null;
public Boolean IsDependent = null;
public String FullName = null;
public ArrayList<SystemUserProductData> AllProducts = null;
public ArrayList<SystemUserProductData> UserProducts = null;
public ArrayList<SystemUserProductData> OtherProducts = null;
public String ContactNumber = null;
public ArrayList<DependentData> Dependents = null;
public Integer UnreadMessageCount = null;
public ArrayList<Integer> PendingFeedbackIds = null;
public Integer getSystemUserId() { return SystemUserId; }
public LoginData setSystemUserId(Integer value) { this.SystemUserId = value; return this; }
public String getRefreshToken() { return RefreshToken; }
public LoginData setRefreshToken(String value) { this.RefreshToken = value; return this; }
public String getFirstName() { return FirstName; }
public LoginData setFirstName(String value) { this.FirstName = value; return this; }
public Boolean getIsDependent() { return IsDependent; }
public LoginData setIsDependent(Boolean value) { this.IsDependent = value; return this; }
public String getFullName() { return FullName; }
public LoginData setFullName(String value) { this.FullName = value; return this; }
public ArrayList<SystemUserProductData> getAllProducts() { return AllProducts; }
public LoginData setAllProducts(ArrayList<SystemUserProductData> value) { this.AllProducts = value; return this; }
public ArrayList<SystemUserProductData> getUserProducts() { return UserProducts; }
public LoginData setUserProducts(ArrayList<SystemUserProductData> value) { this.UserProducts = value; return this; }
public ArrayList<SystemUserProductData> getOtherProducts() { return OtherProducts; }
public LoginData setOtherProducts(ArrayList<SystemUserProductData> value) { this.OtherProducts = value; return this; }
public String getContactNumber() { return ContactNumber; }
public LoginData setContactNumber(String value) { this.ContactNumber = value; return this; }
public ArrayList<DependentData> getDependents() { return Dependents; }
public LoginData setDependents(ArrayList<DependentData> value) { this.Dependents = value; return this; }
public Integer getUnreadMessageCount() { return UnreadMessageCount; }
public LoginData setUnreadMessageCount(Integer value) { this.UnreadMessageCount = value; return this; }
public ArrayList<Integer> getPendingFeedbackIds() { return PendingFeedbackIds; }
public LoginData setPendingFeedbackIds(ArrayList<Integer> value) { this.PendingFeedbackIds = value; return this; }
}
public static class SystemUserProductData
{
public IntegrationProviderType IntegrationType = null;
public Integer ProductId = null;
public String Name = null;
public String NameAfrikaans = null;
public Long PanicId = null;
public Boolean UserHasProduct = null;
public Boolean CanActivate = null;
public Boolean Enquired = null;
public String DashImage = null;
public Boolean ShowOnDash = null;
public String ActionUrl = null;
public ArrayList<SystemUserProductAttachmentData> Attachments = null;
public String DescriptionEng = null;
public String SummaryEng = null;
public String DescriptionAfr = null;
public String SummaryAfr = null;
public IntegrationProviderType getIntegrationType() { return IntegrationType; }
public SystemUserProductData setIntegrationType(IntegrationProviderType value) { this.IntegrationType = value; return this; }
public Integer getProductId() { return ProductId; }
public SystemUserProductData setProductId(Integer value) { this.ProductId = value; return this; }
public String getName() { return Name; }
public SystemUserProductData setName(String value) { this.Name = value; return this; }
public String getNameAfrikaans() { return NameAfrikaans; }
public SystemUserProductData setNameAfrikaans(String value) { this.NameAfrikaans = value; return this; }
public Long getPanicId() { return PanicId; }
public SystemUserProductData setPanicId(Long value) { this.PanicId = value; return this; }
public Boolean isUserHasProduct() { return UserHasProduct; }
public SystemUserProductData setUserHasProduct(Boolean value) { this.UserHasProduct = value; return this; }
public Boolean isCanActivate() { return CanActivate; }
public SystemUserProductData setCanActivate(Boolean value) { this.CanActivate = value; return this; }
public Boolean isEnquired() { return Enquired; }
public SystemUserProductData setEnquired(Boolean value) { this.Enquired = value; return this; }
public String getDashImage() { return DashImage; }
public SystemUserProductData setDashImage(String value) { this.DashImage = value; return this; }
public Boolean isShowOnDash() { return ShowOnDash; }
public SystemUserProductData setShowOnDash(Boolean value) { this.ShowOnDash = value; return this; }
public String getActionUrl() { return ActionUrl; }
public SystemUserProductData setActionUrl(String value) { this.ActionUrl = value; return this; }
public ArrayList<SystemUserProductAttachmentData> getAttachments() { return Attachments; }
public SystemUserProductData setAttachments(ArrayList<SystemUserProductAttachmentData> value) { this.Attachments = value; return this; }
public String getDescriptionEng() { return DescriptionEng; }
public SystemUserProductData setDescriptionEng(String value) { this.DescriptionEng = value; return this; }
public String getSummaryEng() { return SummaryEng; }
public SystemUserProductData setSummaryEng(String value) { this.SummaryEng = value; return this; }
public String getDescriptionAfr() { return DescriptionAfr; }
public SystemUserProductData setDescriptionAfr(String value) { this.DescriptionAfr = value; return this; }
public String getSummaryAfr() { return SummaryAfr; }
public SystemUserProductData setSummaryAfr(String value) { this.SummaryAfr = value; return this; }
}
@Flags()
public static enum IntegrationProviderType
{
@SerializedName("0") None(0),
@SerializedName("1") Ea(1),
@SerializedName("2") IlluminaHubProtectMe(2),
@SerializedName("3") MyLegalHand(3),
@SerializedName("4") AccidentAngels(4),
@SerializedName("5") EmergencyServices(5),
@SerializedName("6") MightyMobile(6),
@SerializedName("7") Pulsit(7),
@SerializedName("8") Bolt(8);
private final int value;
IntegrationProviderType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class SystemUserProductAttachmentData
{
public Integer Id = null;
public String FileName = null;
public String MainFileUrl = null;
public String ThumbnailUrl = null;
public Boolean IsVideo = null;
public Boolean IsImage = null;
public Boolean IsPdf = null;
public Integer getId() { return Id; }
public SystemUserProductAttachmentData setId(Integer value) { this.Id = value; return this; }
public String getFileName() { return FileName; }
public SystemUserProductAttachmentData setFileName(String value) { this.FileName = value; return this; }
public String getMainFileUrl() { return MainFileUrl; }
public SystemUserProductAttachmentData setMainFileUrl(String value) { this.MainFileUrl = value; return this; }
public String getThumbnailUrl() { return ThumbnailUrl; }
public SystemUserProductAttachmentData setThumbnailUrl(String value) { this.ThumbnailUrl = value; return this; }
public Boolean getIsVideo() { return IsVideo; }
public SystemUserProductAttachmentData setIsVideo(Boolean value) { this.IsVideo = value; return this; }
public Boolean getIsImage() { return IsImage; }
public SystemUserProductAttachmentData setIsImage(Boolean value) { this.IsImage = value; return this; }
public Boolean getIsPdf() { return IsPdf; }
public SystemUserProductAttachmentData setIsPdf(Boolean value) { this.IsPdf = value; return this; }
}
public static class DependentData
{
public Integer DependentId = null;
public String FirstName = null;
public String Surname = null;
public String MobileNumber = null;
public String Email = null;
public String IdNumber = null;
public Integer getDependentId() { return DependentId; }
public DependentData setDependentId(Integer value) { this.DependentId = value; return this; }
public String getFirstName() { return FirstName; }
public DependentData setFirstName(String value) { this.FirstName = value; return this; }
public String getSurname() { return Surname; }
public DependentData setSurname(String value) { this.Surname = value; return this; }
public String getMobileNumber() { return MobileNumber; }
public DependentData setMobileNumber(String value) { this.MobileNumber = value; return this; }
public String getEmail() { return Email; }
public DependentData setEmail(String value) { this.Email = value; return this; }
public String getIdNumber() { return IdNumber; }
public DependentData setIdNumber(String value) { this.IdNumber = 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.
POST /xml/reply/AutoLogin HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AutoLogin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
<ApiKey xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">String</ApiKey>
<Latitude xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">0</Latitude>
<Longitude xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">0</Longitude>
<RefreshToken>String</RefreshToken>
<SystemUserId>0</SystemUserId>
<UtcOffset>0</UtcOffset>
</AutoLogin>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AutoLoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
<Description xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Description>
<Heading xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Heading>
<ModelState xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base" />
<WasSuccessful xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">false</WasSuccessful>
<Data>
<AllProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</AllProducts>
<Dependents>
<DependentData>
<DependentId>0</DependentId>
<Email>String</Email>
<FirstName>String</FirstName>
<IdNumber>String</IdNumber>
<MobileNumber>String</MobileNumber>
<Surname>String</Surname>
</DependentData>
</Dependents>
<FirstName>String</FirstName>
<IsDependent>false</IsDependent>
<OtherProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</OtherProducts>
<PendingFeedbackIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</PendingFeedbackIds>
<RefreshToken>String</RefreshToken>
<SystemUserId>0</SystemUserId>
<UnreadMessageCount>0</UnreadMessageCount>
<UserProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</UserProducts>
</Data>
</AutoLoginResponse>