Class QuotasStatusAbstract
-
- All Implemented Interfaces:
public class QuotasStatusAbstract
-
-
Field Summary
Fields Modifier and Type Field Description public final static long
FIVE_MINUTES_MS
public Plan
mPlan
public PlanDescription
mPlanDescription
public ArrayList<Product>
mProducts
public int
mAnalysisShortToday
public int
mAnalysisDetailedToday
public int
mAnalysisShortThisMonth
public int
mAnalysisDetailedThisMonth
public int
mRemoteCreatedToday
public int
mRemoteCreatedThisMonth
public int
mRollingCodesGeneratedToday
public int
mRollingCodesGeneratedThisMonth
public int
mSecureDecryptCreatedToday
public int
mSecureDecryptCreatedThisMonth
public Array<String>
mQuotasRefusedMsgList
public boolean
mRequestViaApiAuthorized
-
Constructor Summary
Constructors Constructor Description QuotasStatusAbstract()
-
Method Summary
Modifier and Type Method Description boolean
isDailyQuotaAnalysisShortExceeded()
boolean
isDailyQuotaAnalysisDetailedExceeded()
boolean
isMonthlyQuotaAnalysisShortExceeded()
boolean
isMonthlyQuotaAnalysisDetailedExceeded()
boolean
isDailyQuotaRemotesCreatedExceeded()
boolean
isMonthlyQuotaRemotesCreatedExceeded()
boolean
isDailyQuotaRollingCodeGeneratedExceeded()
boolean
isMonthlyQuotaRollingCodeGeneratedExceeded()
boolean
isDailyQuotaSecureDecryptExceeded()
boolean
isMonthlyQuotaSecureDecryptExceeded()
boolean
isPossibleToRequestAnalysisShort()
boolean
isPossibleToRequestAnalysisDetailed()
boolean
isEligibleToRequestAnalysisDetailed()
boolean
isDeviceAlreadyAssociated(String bleAddress)
Check if the given ble address is already associated to the current kaiju account. int
getCountOfRemoteCreationAuthorized()
return the count of remotes creation authorized according to the current QuotasStatus's values. int
getCountOfDetailedAnalysisAuthorized()
return the count of detailed analysis authorized according to the current QuotasStatus's values. int
getCountOfShortAnalysisAuthorized()
return the count of short analysis authorized according to the current QuotasStatus's values. int
getCountRollingCodesGenerationAuthorized()
return the count of rolling codes generation authorized according to the current QuotasStatus's values. int
getCountOfRemainingTokens()
boolean
isAllowedToGenerateTpms()
boolean
isAllowedToGenerateGateOpener()
boolean
isAllowedToGenerateCar()
boolean
isAllowedToGenerateCarAlarm()
boolean
isAllowedSecureDecrypt()
boolean
isInputTooBig(String data)
int
getCountOfActiveLicences()
Get count of available licences. List<Licence>
getLicensesByProduct(Product product)
Return list of licenses associated to the given product (product is a dongle) Product
getProductByBleAddress(String bleAddress)
boolean
isUnlimitedNextCodeGeneration()
Indicates if this kaiju account is allowed to generate unlimited number of rolling codes. void
setDownloadedAt(long downloadedAt)
long
getDownloadedAt()
boolean
isExpired()
Indicates if current object is expired. -
-
Method Detail
-
isDailyQuotaAnalysisShortExceeded
boolean isDailyQuotaAnalysisShortExceeded()
-
isDailyQuotaAnalysisDetailedExceeded
boolean isDailyQuotaAnalysisDetailedExceeded()
-
isMonthlyQuotaAnalysisShortExceeded
boolean isMonthlyQuotaAnalysisShortExceeded()
-
isMonthlyQuotaAnalysisDetailedExceeded
boolean isMonthlyQuotaAnalysisDetailedExceeded()
-
isDailyQuotaRemotesCreatedExceeded
boolean isDailyQuotaRemotesCreatedExceeded()
-
isMonthlyQuotaRemotesCreatedExceeded
boolean isMonthlyQuotaRemotesCreatedExceeded()
-
isDailyQuotaRollingCodeGeneratedExceeded
boolean isDailyQuotaRollingCodeGeneratedExceeded()
-
isMonthlyQuotaRollingCodeGeneratedExceeded
boolean isMonthlyQuotaRollingCodeGeneratedExceeded()
-
isDailyQuotaSecureDecryptExceeded
boolean isDailyQuotaSecureDecryptExceeded()
-
isMonthlyQuotaSecureDecryptExceeded
boolean isMonthlyQuotaSecureDecryptExceeded()
-
isPossibleToRequestAnalysisShort
boolean isPossibleToRequestAnalysisShort()
-
isPossibleToRequestAnalysisDetailed
boolean isPossibleToRequestAnalysisDetailed()
-
isEligibleToRequestAnalysisDetailed
boolean isEligibleToRequestAnalysisDetailed()
-
isDeviceAlreadyAssociated
boolean isDeviceAlreadyAssociated(String bleAddress)
Check if the given ble address is already associated to the current kaiju account.
-
getCountOfRemoteCreationAuthorized
int getCountOfRemoteCreationAuthorized()
return the count of remotes creation authorized according to the current QuotasStatus's values.
-
getCountOfDetailedAnalysisAuthorized
int getCountOfDetailedAnalysisAuthorized()
return the count of detailed analysis authorized according to the current QuotasStatus's values.
-
getCountOfShortAnalysisAuthorized
int getCountOfShortAnalysisAuthorized()
return the count of short analysis authorized according to the current QuotasStatus's values.
-
getCountRollingCodesGenerationAuthorized
int getCountRollingCodesGenerationAuthorized()
return the count of rolling codes generation authorized according to the current QuotasStatus's values.
-
getCountOfRemainingTokens
int getCountOfRemainingTokens()
-
isAllowedToGenerateTpms
boolean isAllowedToGenerateTpms()
-
isAllowedToGenerateGateOpener
boolean isAllowedToGenerateGateOpener()
-
isAllowedToGenerateCar
boolean isAllowedToGenerateCar()
-
isAllowedToGenerateCarAlarm
boolean isAllowedToGenerateCarAlarm()
-
isAllowedSecureDecrypt
boolean isAllowedSecureDecrypt()
-
isInputTooBig
boolean isInputTooBig(String data)
-
getCountOfActiveLicences
int getCountOfActiveLicences()
Get count of available licences. If all licences are expired -> 0 If N licences are available -> return N
- Returns:
[0.. Max.INT]
-
getLicensesByProduct
@NonNull() List<Licence> getLicensesByProduct(Product product)
Return list of licenses associated to the given product (product is a dongle)
-
getProductByBleAddress
@Nullable() Product getProductByBleAddress(String bleAddress)
-
isUnlimitedNextCodeGeneration
boolean isUnlimitedNextCodeGeneration()
Indicates if this kaiju account is allowed to generate unlimited number of rolling codes.
-
setDownloadedAt
void setDownloadedAt(long downloadedAt)
-
getDownloadedAt
long getDownloadedAt()
-
isExpired
boolean isExpired()
Indicates if current object is expired. If expired, this object must be refreshed.
-
-
-
-