-
- All Implemented Interfaces:
-
android.os.Parcelable,io.didomi.sdk.models.DataProcessing
public final class Purpose implements DataProcessing
Model class for purposes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPurpose.Companion
-
Field Summary
Fields Modifier and Type Field Description private transient PurposeCategorycategoryprivate final Stringidprivate final StringiabIdprivate Stringnameprivate Stringdescriptionprivate StringdescriptionLegalprivate transient BooleanisConsentprivate transient BooleanisEssentialprivate transient BooleanisLegitimateInterestprivate transient BooleanisSpecialFeature
-
Constructor Summary
Constructors Constructor Description Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature, String type)Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature)Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest)Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential)Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent)Purpose(String id, String iabId, String name, String description, String descriptionLegal)Purpose(String id, String iabId, String name, String description)Purpose(String id, String iabId, String name)Purpose(String id, String iabId)Purpose(String id)
-
Method Summary
Modifier and Type Method Description final PurposeCategorygetCategory()final UnitsetCategory(PurposeCategory category)StringgetId()Purpose id used internally by Didomi. StringgetIabId()Purpose id as defined by IAB. StringgetName()Purpose human-readable name or translation key. UnitsetName(@SerializedName(value = "name") String name)Purpose human-readable name or translation key. StringgetDescription()Purpose description. UnitsetDescription(@SerializedName(value = "description") String description)Purpose description. StringgetDescriptionLegal()Purpose legal description. UnitsetDescriptionLegal(@SerializedName(value = "descriptionLegal") String descriptionLegal)Purpose legal description. final BooleanisConsent()Whether the purpose is used as a consent based data processing. final UnitsetConsent(Boolean isConsent)Whether the purpose is used as a consent based data processing. final BooleanisEssential()Whether this is an essential purpose. final UnitsetEssential(Boolean isEssential)Whether this is an essential purpose. final BooleanisLegitimateInterest()Whether the purpose is used as a legitimate interest based data processing. final UnitsetLegitimateInterest(Boolean isLegitimateInterest)Whether the purpose is used as a legitimate interest based data processing. final BooleanisSpecialFeature()Whether this is a special feature displayed as a purpose. final UnitsetSpecialFeature(Boolean isSpecialFeature)Whether this is a special feature displayed as a purpose. final BooleanisConsentNotEssential()Whether the purpose is used as a consent based data processing final BooleanisLegitimateInterestNotEssential()Whether the purpose is used as a legitimate interest based data processing final BooleanisLegitimateInterestOnly()Whether the purpose is used as legitimate interest legal base only. -
-
Constructor Detail
-
Purpose
Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature, String type)
-
Purpose
Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature)
-
Purpose
Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest)
-
Purpose
Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent, Boolean isEssential)
-
Purpose
Purpose(String id, String iabId, String name, String description, String descriptionLegal, Boolean isConsent)
-
Purpose
Purpose(String id)
-
-
Method Detail
-
getCategory
final PurposeCategory getCategory()
-
setCategory
final Unit setCategory(PurposeCategory category)
-
setName
Unit setName(@SerializedName(value = "name") String name)
Purpose human-readable name or translation key.
-
getDescription
String getDescription()
Purpose description.
-
setDescription
Unit setDescription(@SerializedName(value = "description") String description)
Purpose description.
-
getDescriptionLegal
String getDescriptionLegal()
Purpose legal description.
-
setDescriptionLegal
Unit setDescriptionLegal(@SerializedName(value = "descriptionLegal") String descriptionLegal)
Purpose legal description.
-
setConsent
final Unit setConsent(Boolean isConsent)
Whether the purpose is used as a consent based data processing.
-
isEssential
final Boolean isEssential()
Whether this is an essential purpose.
-
setEssential
final Unit setEssential(Boolean isEssential)
Whether this is an essential purpose.
-
isLegitimateInterest
final Boolean isLegitimateInterest()
Whether the purpose is used as a legitimate interest based data processing.
-
setLegitimateInterest
final Unit setLegitimateInterest(Boolean isLegitimateInterest)
Whether the purpose is used as a legitimate interest based data processing.
-
isSpecialFeature
final Boolean isSpecialFeature()
Whether this is a special feature displayed as a purpose.
-
setSpecialFeature
final Unit setSpecialFeature(Boolean isSpecialFeature)
Whether this is a special feature displayed as a purpose.
-
isConsentNotEssential
final Boolean isConsentNotEssential()
Whether the purpose is used as a consent based data processing
-
isLegitimateInterestNotEssential
final Boolean isLegitimateInterestNotEssential()
Whether the purpose is used as a legitimate interest based data processing
-
isLegitimateInterestOnly
final Boolean isLegitimateInterestOnly()
Whether the purpose is used as legitimate interest legal base only.
-
-
-
-