LogoLogo
HomeLibraryDonateAbout
  • Introduction
  • JS
    • EC
      • ECommerceInterface
      • ECDeviceInfo
      • ECProgress
      • Payment Objects
        • ECPrice
        • ECCreditCardPayment
        • ECCreditCardEncryptedPayment
        • ECECardPayment
        • ECAccountPayment
        • ECTransactionInfo
      • Title Objects
        • ECTitleLimit
        • ECTitleInfo
        • ECTicketInfo
    • DL Tasks
    • Keyboard
    • Mii
    • NWC24
    • SD Card
    • Shop
    • Sound
  • SOAP
    • Base Format
    • IAS
      • CheckRegistration
      • GetRegistrationInfo
      • SyncRegistration
      • GetChallenge
      • Register
      • Unregister
    • ECS
      • AcceptGiftTitle
      • ConfirmCSS
      • CheckAccountBalance
      • CheckDeviceStatus
      • DeleteETickets
      • GetECConfig
      • GetETickets
      • GiftTitle
      • ListETickets
      • ListPurchaseHistory
      • MigrateETickets
      • MigratePoints
      • NotifyETicketsSynced
      • PurchaseTitle
      • PurchasePoints
      • RedeemAllSCATitles
    • CAS
      • GetCountryAttributes
      • ListContentSets
      • ListContentSetGroups
Powered by GitBook
On this page
  • Properties
  • Limit Types
  • ECTitleLimits
  • Properties

Was this helpful?

  1. JS
  2. EC
  3. Title Objects

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:

var ticket = ec.getTicketInfos("0000000100000002").get(0);
var limit = ticket.limits(0);

It is also possible to instantiate one yourself.

var limit = new ECTitleLimit(code, limit, consumed);

Properties

Property Name
Discussion

code

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.

// Instantiation
var limits = new ECTitleLimits(/* up to 8 limits */);
// Existing metadata
var ticket = ec.getTicketInfos("0000000100000002").get(0);
var limits = ticket.limits;

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)

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.

PreviousTitle ObjectsNextECTitleInfo

Last updated 3 years ago

Was this helpful?

A name as a string.

Returns the for this index. This property may not be set.

ECTitleLimit
Limit Type