Offer class

An Offer for creating a License for a Title identified by ptr.

Constructors

Offer()

Properties

description String?
A human-readable description for the license.
no setter
expiry DateTime?
The expiration of the License. Null for no expiration.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
The Offer unique identifier. If none is set, it creates a random UUID.
no setter
ptr String
The Pointer Record of the data stored.
no setter
requiredPermissions List<Permission>
A list of device-specific Permission required for the license.
no setter
reward Image?
An image that represents the reward.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>
The tags that describes the represented data asset.
no setter
terms String?
The legal terms of the offer.
no setter
usedBullet List<UsedBullet>
The bullets that describes how the user data will be used.
no setter
uses List<String>
The Use cases for the license.
no setter

Methods

add() TikiSdk
Adds the built Offer to the TikiSdk.offers list
addReqPermission(Permission permission) Offer
Adds an item in the requiredPermissions list.
addTag(String tag) Offer
Adds an item in the tags list.
addUse(String use) Offer
Adds an item in the uses list.
addUsedBullet(UsedBullet usedBullet) Offer
Adds a usedBullet
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDescription(String description) Offer
Sets the description
setExpiry(DateTime expiry) Offer
Sets the expiry
setId(String id) Offer
Sets the id
setPtr(String ptr) Offer
Sets the ptr
setReqPermissions(List<Permission> permissions) Offer
Sets the requiredPermissions
setReward(Image reward) Offer
Sets the reward
setTags(List<String> tags) Offer
Sets the tags
setTerms(String terms) Offer
Sets the terms
setUsedBullet(List<UsedBullet> usedBullet) Offer
Sets the usedBullet
setUses(List<String> uses) Offer
Sets the uses
toString() String
A string representation of this object.
inherited

Operators

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