GalaxyMobile App API

<back to all web services

AutoLogin

import java.math.*
import java.util.*
import net.servicestack.client.*


open class AutoLogin : ApiServiceRequest()
{
    var UtcOffset:Int? = null
    var SystemUserId:Int? = null
    var RefreshToken:String? = null
}

open class ApiServiceRequest : IServiceRequest, IHasApiKey, IHasDeviceInfo, IHasClientId
{
    /**
    * The API Key required for authentication
    */
    @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
    var ApiKey:String? = null

    /**
    * Latitude of the user making this request
    */
    @ApiMember(DataType="double", Description="Latitude of the user making this request")
    var Latitude:Double? = null

    /**
    * Longitude of the user making this request
    */
    @ApiMember(DataType="double", Description="Longitude of the user making this request")
    var Longitude:Double? = null
}

open class AutoLoginResponse : ApiServiceResponse()
{
    var Data:LoginData? = null
}

open class ApiServiceResponse : IServiceResponse
{
    var Description:String? = null
    var Heading:String? = null
    var WasSuccessful:Boolean? = null
    var ModelState:Object? = null
}

open class LoginData
{
    var SystemUserId:Int? = null
    var RefreshToken:String? = null
    var FirstName:String? = null
    var IsDependent:Boolean? = null
    var FullName:String? = null
    var AllProducts:ArrayList<SystemUserProductData> = ArrayList<SystemUserProductData>()
    var UserProducts:ArrayList<SystemUserProductData> = ArrayList<SystemUserProductData>()
    var OtherProducts:ArrayList<SystemUserProductData> = ArrayList<SystemUserProductData>()
    var ContactNumber:String? = null
    var Dependents:ArrayList<DependentData> = ArrayList<DependentData>()
    var UnreadMessageCount:Int? = null
    var PendingFeedbackIds:ArrayList<Int> = ArrayList<Int>()
}

open class SystemUserProductData
{
    var IntegrationType:IntegrationProviderType? = null
    var ProductId:Int? = null
    var Name:String? = null
    var NameAfrikaans:String? = null
    var PanicId:Long? = null
    var UserHasProduct:Boolean? = null
    var CanActivate:Boolean? = null
    var Enquired:Boolean? = null
    var DashImage:String? = null
    var ShowOnDash:Boolean? = null
    var ActionUrl:String? = null
    var Attachments:ArrayList<SystemUserProductAttachmentData> = ArrayList<SystemUserProductAttachmentData>()
    var DescriptionEng:String? = null
    var SummaryEng:String? = null
    var DescriptionAfr:String? = null
    var SummaryAfr:String? = null
}

@Flags()
enum class IntegrationProviderType(val value:Int)
{
    @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),
}

open class SystemUserProductAttachmentData
{
    var Id:Int? = null
    var FileName:String? = null
    var MainFileUrl:String? = null
    var ThumbnailUrl:String? = null
    var IsVideo:Boolean? = null
    var IsImage:Boolean? = null
    var IsPdf:Boolean? = null
}

open class DependentData
{
    var DependentId:Int? = null
    var FirstName:String? = null
    var Surname:String? = null
    var MobileNumber:String? = null
    var Email:String? = null
    var IdNumber:String? = null
}

Kotlin AutoLogin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>