import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ConfirmOtp extends ApiServiceRequest
{
public Integer SystemUserId = null;
public String Otp = null;
public Integer UtcOffset = null;
public Integer getSystemUserId() { return SystemUserId; }
public ConfirmOtp setSystemUserId(Integer value) { this.SystemUserId = value; return this; }
public String getOtp() { return Otp; }
public ConfirmOtp setOtp(String value) { this.Otp = value; return this; }
public Integer getUtcOffset() { return UtcOffset; }
public ConfirmOtp setUtcOffset(Integer value) { this.UtcOffset = 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 ConfirmOtpResponse extends ApiServiceResponse
{
public LoginData Data = null;
public Boolean MustSetPin = null;
public LoginData getData() { return Data; }
public ConfirmOtpResponse setData(LoginData value) { this.Data = value; return this; }
public Boolean isMustSetPin() { return MustSetPin; }
public ConfirmOtpResponse setMustSetPin(Boolean value) { this.MustSetPin = 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/ConfirmOtp HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SystemUserId: 0,
Otp: String,
UtcOffset: 0,
ApiKey: String,
Latitude: 0,
Longitude: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data:
{
SystemUserId: 0,
RefreshToken: String,
FirstName: String,
IsDependent: False,
FullName: String,
AllProducts:
[
{
IntegrationType: 0,
ProductId: 0,
Name: String,
NameAfrikaans: String,
PanicId: 0,
UserHasProduct: False,
CanActivate: False,
Enquired: False,
DashImage: String,
ShowOnDash: False,
ActionUrl: String,
Attachments:
[
{
Id: 0,
FileName: String,
MainFileUrl: String,
ThumbnailUrl: String,
IsVideo: False,
IsImage: False,
IsPdf: False
}
],
DescriptionEng: String,
SummaryEng: String,
DescriptionAfr: String,
SummaryAfr: String
}
],
UserProducts:
[
{
IntegrationType: 0,
ProductId: 0,
Name: String,
NameAfrikaans: String,
PanicId: 0,
UserHasProduct: False,
CanActivate: False,
Enquired: False,
DashImage: String,
ShowOnDash: False,
ActionUrl: String,
Attachments:
[
{
Id: 0,
FileName: String,
MainFileUrl: String,
ThumbnailUrl: String,
IsVideo: False,
IsImage: False,
IsPdf: False
}
],
DescriptionEng: String,
SummaryEng: String,
DescriptionAfr: String,
SummaryAfr: String
}
],
OtherProducts:
[
{
IntegrationType: 0,
ProductId: 0,
Name: String,
NameAfrikaans: String,
PanicId: 0,
UserHasProduct: False,
CanActivate: False,
Enquired: False,
DashImage: String,
ShowOnDash: False,
ActionUrl: String,
Attachments:
[
{
Id: 0,
FileName: String,
MainFileUrl: String,
ThumbnailUrl: String,
IsVideo: False,
IsImage: False,
IsPdf: False
}
],
DescriptionEng: String,
SummaryEng: String,
DescriptionAfr: String,
SummaryAfr: String
}
],
ContactNumber: String,
Dependents:
[
{
DependentId: 0,
FirstName: String,
Surname: String,
MobileNumber: String,
Email: String,
IdNumber: String
}
],
UnreadMessageCount: 0,
PendingFeedbackIds:
[
0
]
},
MustSetPin: False,
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}