ECTitleLimit
Easily accessible title limits
If title limits are available on a ticket, it's possible to query them. For example, to retrieve the first limit for the System Menu:
1
var ticket = ec.getTicketInfos("0000000100000002").get(0);
2
var limit = ticket.limits(0);
Copied!
It is also possible to instantiate one yourself.
1
var limit = new ECTitleLimit(code, limit, consumed);
Copied!

Properties

Property Name
Discussion
code
A Limit Type name as a string.
limit
The amount for this limit type.
consumed
Unknown.

Limit Types

Limit Name
Limit Value
Description
PR
0
Permanent
TR
1
Trial
DR
2
Demo
SR
3
Subscription
LR
4
Service(?)
AT
100
?

ECTitleLimits

ECTitleLimits manages multiple of an ECTitleLimit.
You have the ability instantiate one yourself, or have one provided to you via existing metadata.
1
// Instantiation
2
var limits = new ECTitleLimits(/* up to 8 limits */);
Copied!
1
// Existing metadata
2
var ticket = ec.getTicketInfos("0000000100000002").get(0);
3
var limits = ticket.limits;
Copied!

Properties

Property Name
Discussion
limits.length
Returns the length of this limits array. You may also set a new length for this array, resizing it.
limits.get(index)
Returns the ECTitleLimit for this index. This property may not be set.
limits.set(index, code, limit)
Sets the limit at the given index to have a new code and limit. This property may not be retrieved.
Last modified 7d ago