GalaxyMobile App API

<back to all web services

ConfirmOtp


export 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 ApiKey: string;

    /**
    * Latitude of the user making this request
    */
    // @ApiMember(DataType="double", Description="Latitude of the user making this request")
    public Latitude: number;

    /**
    * Longitude of the user making this request
    */
    // @ApiMember(DataType="double", Description="Longitude of the user making this request")
    public Longitude: number;

    public constructor(init?: Partial<ApiServiceRequest>) { (Object as any).assign(this, init); }
}

export class ApiServiceResponse implements IServiceResponse
{
    public Description: string;
    public Heading: string;
    public WasSuccessful: boolean;
    public ModelState: Object;

    public constructor(init?: Partial<ApiServiceResponse>) { (Object as any).assign(this, init); }
}

// @Flags()
export enum IntegrationProviderType
{
    None = 0,
    EA = 1,
    IlluminaHubProtectMe = 2,
    MyLegalHand = 3,
    AccidentAngels = 4,
    EmergencyServices = 5,
    MightyMobile = 6,
    Pulsit = 7,
    Bolt = 8,
}

export class SystemUserProductAttachmentData
{
    public Id: number;
    public FileName: string;
    public MainFileUrl: string;
    public ThumbnailUrl: string;
    public IsVideo: boolean;
    public IsImage: boolean;
    public IsPdf: boolean;

    public constructor(init?: Partial<SystemUserProductAttachmentData>) { (Object as any).assign(this, init); }
}

export class SystemUserProductData
{
    public IntegrationType: IntegrationProviderType;
    public ProductId: number;
    public Name: string;
    public NameAfrikaans: string;
    public PanicId: number;
    public UserHasProduct: boolean;
    public CanActivate: boolean;
    public Enquired: boolean;
    public DashImage: string;
    public ShowOnDash: boolean;
    public ActionUrl: string;
    public Attachments: SystemUserProductAttachmentData[];
    public DescriptionEng: string;
    public SummaryEng: string;
    public DescriptionAfr: string;
    public SummaryAfr: string;

    public constructor(init?: Partial<SystemUserProductData>) { (Object as any).assign(this, init); }
}

export class DependentData
{
    public DependentId: number;
    public FirstName: string;
    public Surname: string;
    public MobileNumber: string;
    public Email: string;
    public IdNumber: string;

    public constructor(init?: Partial<DependentData>) { (Object as any).assign(this, init); }
}

export class LoginData
{
    public SystemUserId: number;
    public RefreshToken: string;
    public FirstName: string;
    public IsDependent: boolean;
    public FullName: string;
    public AllProducts: SystemUserProductData[];
    public UserProducts: SystemUserProductData[];
    public OtherProducts: SystemUserProductData[];
    public ContactNumber: string;
    public Dependents: DependentData[];
    public UnreadMessageCount: number;
    public PendingFeedbackIds: number[];

    public constructor(init?: Partial<LoginData>) { (Object as any).assign(this, init); }
}

export class ConfirmOtpResponse extends ApiServiceResponse
{
    public Data: LoginData;
    public MustSetPin: boolean;

    public constructor(init?: Partial<ConfirmOtpResponse>) { super(init); (Object as any).assign(this, init); }
}

export class ConfirmOtp extends ApiServiceRequest
{
    public SystemUserId: number;
    public Otp: string;
    public UtcOffset: number;

    public constructor(init?: Partial<ConfirmOtp>) { super(init); (Object as any).assign(this, init); }
}

TypeScript ConfirmOtp 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/ConfirmOtp HTTP/1.1 
Host: galaxymobile.api.dev.86degrees.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ConfirmOtp 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>
  <Otp>String</Otp>
  <SystemUserId>0</SystemUserId>
  <UtcOffset>0</UtcOffset>
</ConfirmOtp>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ConfirmOtpResponse 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>
  <MustSetPin>false</MustSetPin>
</ConfirmOtpResponse>