commonMain.com.algolia.client.model.insights.ViewedObjectIDs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.insights
import kotlinx.serialization.*
import kotlinx.serialization.json.*
/**
* Use this event to track when users viewed items in the search results.
*
* @param eventName Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework.
* @param eventType
* @param index Index name (case-sensitive) to which the event's items belong.
* @param objectIDs Object IDs of the records that are part of the event.
* @param userToken Anonymous or pseudonymous user identifier. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
* @param authenticatedUserToken Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
* @param timestamp Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp.
*/
@Serializable
public data class ViewedObjectIDs(
/** Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework. */
@SerialName(value = "eventName") val eventName: String,
@SerialName(value = "eventType") val eventType: ViewEvent,
/** Index name (case-sensitive) to which the event's items belong. */
@SerialName(value = "index") val index: String,
/** Object IDs of the records that are part of the event. */
@SerialName(value = "objectIDs") val objectIDs: List,
/** Anonymous or pseudonymous user identifier. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). */
@SerialName(value = "userToken") val userToken: String,
/** Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). */
@SerialName(value = "authenticatedUserToken") val authenticatedUserToken: String? = null,
/** Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp. */
@SerialName(value = "timestamp") val timestamp: Long? = null,
) : EventsItems
© 2015 - 2024 Weber Informatics LLC | Privacy Policy