Builder
class Builder
| kotlin.Any | |
| ↳ | android.adservices.topics.GetTopicsResponse.Builder |
Builder for GetTopicsResponse objects. This class should be used in test implementation as expected response from Topics API
Summary
| Public constructors | |
|---|---|
Builder(topics: MutableList<Topic!>)Creates a |
|
Builder(topics: MutableList<Topic!>, encryptedTopics: MutableList<EncryptedTopic!>)Creates a |
|
| Public methods | |
|---|---|
| GetTopicsResponse |
build()Builds a |
Public constructors
Builder
Builder(topics: MutableList<Topic!>)
Deprecated: This function is deprecated.
Creates a Builder for GetTopicsResponse objects.
| Parameters | |
|---|---|
topics |
MutableList<Topic!>: The list of the returned Topics. This value cannot be null. |
Builder
Builder(
topics: MutableList<Topic!>,
encryptedTopics: MutableList<EncryptedTopic!>)
Creates a Builder for GetTopicsResponse objects.
| Parameters | |
|---|---|
topics |
MutableList<Topic!>: The list of the returned Topics. This value cannot be null. |
encryptedTopics |
MutableList<EncryptedTopic!>: The list of encrypted Topics. This value cannot be null. |
Public methods
build
fun build(): GetTopicsResponse
Builds a GetTopicsResponse instance.
| Return | |
|---|---|
GetTopicsResponse |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if any of the params are null. |