Topic


class Topic
kotlin.Any
   ↳ android.adservices.topics.Topic

Represent the topic result from the getTopics API.

Summary

Public constructors
Topic(mTaxonomyVersion: Long, mModelVersion: Long, mTopicId: Int)

Creates an object which represents the result from the getTopics API.

Public methods
Boolean
equals(other: Any?)

Long

Get the ModelVersion.

Long

Get the TaxonomyVersion.

Int

Get the Topic ID.

Int

String

Public constructors

Topic

Topic(
    mTaxonomyVersion: Long,
    mModelVersion: Long,
    mTopicId: Int)

Creates an object which represents the result from the getTopics API.

Parameters
mTaxonomyVersion Long: a long representing the version of the taxonomy.
mModelVersion Long: a long representing the version of the model.
mTopicId Int: an integer representing the unique id of a topic.

Public methods

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getModelVersion

fun getModelVersion(): Long

Get the ModelVersion.

getTaxonomyVersion

fun getTaxonomyVersion(): Long

Get the TaxonomyVersion.

getTopicId

fun getTopicId(): Int

Get the Topic ID.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 34
fun toString(): String
Return
String a string representation of the object.