Vouchers class

Inheritance

Constructors

Vouchers(Controller controller)

Properties

controller Controller
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(int minutes, {int count = 1, int quota = 1, int? up, int? down, int? megabytes, String? note, String? siteId}) Future<int>
minutes: number of valid minutes after activation count: number of vouchers to create quota: number of claims available note: note up: upload speed in kbps down: download speed in kbps megabytes: data transfer limit in mb
dispose() → void
override
list({int? createTime, String? siteId}) Future<List<Map<String, dynamic>>>
Returns a list of Voucher since createTime
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke(String id, {String? siteId}) Future<void>
Delete a voucher with id Throw ApiException if not successful
toString() String
A string representation of this object.
inherited

Operators

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