validateStickerPack static method

void validateStickerPack(
  1. StickerPack stickerPack
)

Validates stickerPack

Implementation

static void validateStickerPack(StickerPack stickerPack) {
  Validators.illegalCharacters('Identifier', stickerPack.identifier);
  Validators.stringLength('Identifier', stickerPack.identifier);
  Validators.stringLength('Name', stickerPack.name);
  Validators.stringLength('Publisher', stickerPack.publisher);

  _validateTrayImage(stickerPack.trayImage);

  _validateStickers(stickerPack.stickers);
}