performOperation method

  1. @override
void performOperation(
  1. ModCheckSignersDTO dto
)
override

Abstraction to perform some operation using params received. Must be overriden by children.

Implementation

@override
void performOperation(ModCheckSignersDTO dto) async {

  var res;
  try {
    var data = await this.repo.checkSignersAvailable(dto.targets);

    res = this.buildResult(data: data);

  } on ModDataException {
    res = this.buildResult(data: null, code: ModErrorCodes.CHECK_METHODS);

  } on Exception  {
    res = this.buildResult(data: null, code: ModErrorCodes.CHECK_METHODS);

  } finally {
    this.processData(res);
  }
}