Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy-Diagram

UML class diagram of TapjawApiCommand

Legend

icon for an abstract class in the UML class diagram abstract class
icon for an interface in the UML class diagram interface
icon for a protected property in the UML class diagram protected property
icon for a public method in the UML class diagram public method
icon for a protected method in the UML class diagram protected method
underlined static property/method
italic abstract property/method

Hierarchy

  • TapjawApiCommand

Implements

Index

Constructors

Properties

iterator: TapjawIterator

Methods

  • Implement this function to return a callback that provides the implementation on how to call an adapters method. This allows for arguments and flags from this method to adjust the behaviour from the Adapter's method.

    Basic Example:

      getAdapterCallback(args: TapjawCommandArgs, flags: TapjawCommandFlags): TapjawAdapterCallback {
    return (async function* (): AsyncGenerator<TapjawMessage> {
    yield* implementedAdapter.myMethodToExecute();
    });
    }

    Broader Example:

      getAdapterCallback(args: TapjawCommandArgs, flags: TapjawCommandFlags): TapjawAdapterCallback {
    const category = args.category || undefined;

    return (async function* (): AsyncGenerator<TapjawMessage> {
    yield* implementedAdapter.myMethodToExecute(flags.onlyActiveItems, category);
    });
    }
    see

    TapjawAdapter

    Parameters

    Returns TapjawAdapterCallback<TapjawMessage>

    TapjawAdapterCallback

Generated using TypeDoc