Package io.didomi.sdk.purpose.mobile
Class PurposeVendorsViewModel
-
- All Implemented Interfaces:
@Singleton() public class PurposeVendorsViewModel extends ViewModelView model associated to list of vendor names using a specific Purpose.
-
-
Field Summary
Fields Modifier and Type Field Description private VendorsInfoTypeselectedInfoTypeprivate StringselectedItemNameprivate final Stringtitleprivate final StringaccessibilityCloseDescription
-
Constructor Summary
Constructors Constructor Description PurposeVendorsViewModel(VendorRepository vendorRepository, LanguagesHelper languagesHelper)
-
Method Summary
Modifier and Type Method Description final VendorsInfoTypegetSelectedInfoType()final UnitsetSelectedInfoType(VendorsInfoType selectedInfoType)final StringgetSelectedItemName()final UnitsetSelectedItemName(String selectedItemName)final StringgetTitle()final StringgetAccessibilityCloseDescription()final UnitinitializeCategory(PurposeCategory category)final UnitinitializePurpose(InternalPurpose purpose, VendorsInfoType vendorsInfoType)final StringgetNonIabVendorsCountLabel()Get the label for the count of non-IAB vendors associated with the purpose final StringgetIabVendorsCountLabel()Get the label for the count of IAB vendors associated with the purpose final List<PurposeVendorDisplay>getVendorDisplayList()Get the list of Vendor names to display -
-
Constructor Detail
-
PurposeVendorsViewModel
PurposeVendorsViewModel(VendorRepository vendorRepository, LanguagesHelper languagesHelper)
-
-
Method Detail
-
getSelectedInfoType
final VendorsInfoType getSelectedInfoType()
-
setSelectedInfoType
final Unit setSelectedInfoType(VendorsInfoType selectedInfoType)
-
getSelectedItemName
final String getSelectedItemName()
-
setSelectedItemName
final Unit setSelectedItemName(String selectedItemName)
-
getAccessibilityCloseDescription
final String getAccessibilityCloseDescription()
-
initializeCategory
final Unit initializeCategory(PurposeCategory category)
-
initializePurpose
final Unit initializePurpose(InternalPurpose purpose, VendorsInfoType vendorsInfoType)
-
getNonIabVendorsCountLabel
final String getNonIabVendorsCountLabel()
Get the label for the count of non-IAB vendors associated with the purpose
-
getIabVendorsCountLabel
final String getIabVendorsCountLabel()
Get the label for the count of IAB vendors associated with the purpose
-
getVendorDisplayList
final List<PurposeVendorDisplay> getVendorDisplayList()
Get the list of Vendor names to display
-
-
-
-