Class BpkbParam

java.lang.Object
glair.vision.model.param.BpkbParam

public class BpkbParam extends Object
Represents parameters for a BPKB (Buku Pemilik Kendaraan Bermotor) operation.
  • Constructor Details

    • BpkbParam

      public BpkbParam(String imagePath)
      Constructs a new BpkbParam object with the given image path and default page number.
      Parameters:
      imagePath - The path to the image.
    • BpkbParam

      public BpkbParam(String imagePath, int page)
      Constructs a new BpkbParam object with the given image path and page number.
      Parameters:
      imagePath - The path to the image.
      page - The page number (1 - 4).
  • Method Details

    • getImagePath

      public String getImagePath()
      Get the path to the image.
      Returns:
      The image path.
    • getPage

      public int getPage()
      Get the page number.
      Returns:
      The page number.
    • toString

      public String toString()
      Generate a JSON representation of the parameter object.
      Overrides:
      toString in class Object
      Returns:
      The JSON string.