create
public static ApiEvent create(ApiEventType eventType,
ApiEventParameters parameters,
ContextHelper contextHelper,
CountryHelper countryHelper,
ConfigurationRepository configurationRepository,
ConsentRepository consentRepository,
io.didomi.sdk.user.OrganizationUserRepository organizationUserRepository,
java.lang.String userId,
java.lang.String userIdType)
Generic method used to create API events.
- Parameters:
eventType - type of the event to be created.
contextHelper - computed information about the context.
configurationRepository - instance that represents the configuration file.
consentRepository - required to obtain the consent token.
- Returns:
- a newly created event.