Offer class

An Offer represents usage terms and conditions for a particular TitleRecord. Offers can be used to create or update a LicenseRecord in the pre-built UI.

Constructors

Offer()

Properties

getBullets List<Bullet>
An array of Bullet objects that describe the data usage permissions included in this Offer, to be shown in the pre-built UI.
no setter
getDescription String?
A brief human-readable description for the license. This property is used to inform the user about the Offer, and is also used as the description for the LicenseRecord associated with this Offer.
no setter
getExpiry DateTime?
The expiration date of the LicenseRecord applied to this Offer.
no setter
getId String
The unique identifier of the Offer.
no setter
getPermissions List<Permission>
An array of Permission required for this Offer.
no setter
getPtr String
The pointer record for the TitleRecord to which this Offer applies.
no setter
getReward Image?
An image that represents the reward.
no setter
getTags List<TitleTag>
An array of TitleTag that apply to this Offer.
no setter
getTerms String
The legal terms and conditions of the Offer.
no setter
getUses List<LicenseUse>
An array of LicenseUse that apply to this Offer. Each LicenseUse specifies how the TitleRecord can be used under this Offer.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add() TikiSdk
Adds the built Offer to the TikiSdk.offers list
bullet(String text, bool isUsed) Offer
An array of Bullet objects that describe the data usage permissions included in this Offer, to be shown in the pre-built UI.
description(String description) Offer
Sets the _description of this Offer.
duration(Duration duration) Offer
Determine the duration of the LicenseRecord applied to this Offer.
id(String id) Offer
Sets the unique identifier for this Offer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permission(Permission permission) Offer
Adds a new required Permission for this Offer.
ptr(String ptr) Offer
Sets the pointer record of the data asset associated to this Offer.
reward(Image reward) Offer
Defines the image that represents the Offer.
tag(TitleTag tag) Offer
Adds a TitleTag that describe the data attached to this Offer.
terms(String terms) Offer
Sets the file that contains legal terms and conditions of the Offer.
toString() String
A string representation of this object.
inherited
use(List<LicenseUsecase> usecases, {List<String> destinations = const []}) Offer
Adds a LicenceUse to the Offer.

Operators

operator ==(Object other) bool
The equality operator.
inherited