Class PrinterContract
- java.lang.Object
-
- com.clover.sdk.v1.printer.PrinterContract
-
public final class PrinterContract extends Object
Contract defining printers for use in Clover applications.The printers contract is composed of two tables and one view. The
Devices
table lists all known printer devices. TheCategories
table maps a printer device to a printing category, either receipt or order.Conceptually, the
PrinterContract.Devices
class represents the printers that are configured on any device belong to the merchant. ThePrinterContract.Categories
class maps a printer device to a printer category, and represents the printer devices that are configured on this device.The
PrinterContract.DeviceCategories
class is a join of thePrinterContract.Devices
andPrinterContract.Categories
class where the category is not null. In other words,PrinterContract.DeviceCategories
is the configured devices and their category.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrinterContract.Categories
static interface
PrinterContract.CategoriesColumns
static class
PrinterContract.DeviceCategories
static interface
PrinterContract.DeviceCategoriesColumns
static class
PrinterContract.Devices
static interface
PrinterContract.DevicesColumns
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORITY
static Uri
AUTHORITY_URI
static String
PARAM_ACCOUNT_NAME
static String
PARAM_ACCOUNT_TYPE
static String
PARAM_SYNC
-
Constructor Summary
Constructors Constructor Description PrinterContract()
-
-
-
Field Detail
-
PARAM_ACCOUNT_NAME
public static final String PARAM_ACCOUNT_NAME
- See Also:
- Constant Field Values
-
PARAM_ACCOUNT_TYPE
public static final String PARAM_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
PARAM_SYNC
public static final String PARAM_SYNC
- See Also:
- Constant Field Values
-
AUTHORITY
public static final String AUTHORITY
- See Also:
- Constant Field Values
-
AUTHORITY_URI
public static final Uri AUTHORITY_URI
-
-
Method Detail
-
isSync
public static boolean isSync(Uri uri)
-
-