menu
unifi package
documentation
extensions/vouchers.dart
Vouchers class
Vouchers class
dark_mode
light_mode
Vouchers
class
Inheritance
Object
Ext
Vouchers
Constructors
Vouchers
(
Controller
controller
)
Properties
controller
→
Controller
final
inherited
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
unifi package
documentation
extensions/vouchers
Vouchers class
vouchers library