public class BpkbParam
extends Object
Represents parameters for a BPKB (Buku Pemilik Kendaraan Bermotor) operation.
-
Constructor Summary
Constructors
Constructs a new BpkbParam object with the given image path and default page number.
Constructs a new BpkbParam object with the given image path and page number.
-
Method Summary
Get the path to the image.
int
Generate a JSON representation of the parameter object.
-
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
Get the path to the image.
- Returns:
- The image path.
-
getPage
public int getPage()
Get the page number.
- Returns:
- The page number.
-
toString
Generate a JSON representation of the parameter object.
- Overrides:
toString in class Object
- Returns:
- The JSON string.