Operator

Operator

The Operator class models a telecom operator and/or other service providers that offer products that can be recharged through the Magic Batua platform. So prepaid mobile companies, DTH operators and datacard companies all are instances of Operator.

Constructor

new Operator(json)

Initialises an Operator instance.

Parameters:
Name Type Description
json GetOperatorResponse

The GetOperatorResponse is defined in Source/Operator.ts.

Source:

Methods

(static) InitList()

Given an array of provider responses from Rocket in Pocket, instantiates and returns a Operator array.

Source:

(static) WithCode()

Returns an Operator with the given provider code amongst the list of operators given. If no match is found, returns null.

Source: