Package com.clover.sdk.v1.printer
Class Printer
- java.lang.Object
-
- com.clover.sdk.v1.printer.Printer
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
public class Printer extends Object implements Parcelable, JSONifiable
Instances of this class may be obtained from thePrinterConnector
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Printer.Builder
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description Category
category
static Parcelable.Creator<Printer>
CREATOR
String
ip
static JSONifiable.Creator<Printer>
JSON_CREATOR
String
mac
String
name
Type
type
String
uuid
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
Category
getCategory()
May be null if a new category is introduced and sent to an app compiled with an older version of the Category enum.String
getIp()
JSONObject
getJSONObject()
String
getMac()
String
getName()
Merchant chosen name describing this printer.Type
getType()
Formerly the Type contained a bunch of details, now that information can be found inTypeDetails
.String
getUniqueId()
This is not the same as UUID, the returned value depends on the printer and is used to associateTag
instances.String
getUuid()
int
hashCode()
boolean
isLocal()
Deprecated.String
toString()
void
writeToParcel(Parcel out)
void
writeToParcel(Parcel parcel, int i)
-
-
-
Field Detail
-
uuid
public final String uuid
-
type
public final Type type
-
name
public final String name
-
ip
public final String ip
-
mac
public final String mac
-
category
public final Category category
-
CREATOR
public static final Parcelable.Creator<Printer> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Printer> JSON_CREATOR
-
-
Method Detail
-
getUuid
public String getUuid()
-
getType
public Type getType()
Formerly the Type contained a bunch of details, now that information can be found inTypeDetails
.
-
getName
public String getName()
Merchant chosen name describing this printer.
-
getIp
public String getIp()
-
getMac
public String getMac()
-
getCategory
public Category getCategory()
May be null if a new category is introduced and sent to an app compiled with an older version of the Category enum.
-
isLocal
@Deprecated public boolean isLocal()
Deprecated.Deprecated. PreferTypeDetails.isLocal()
to this.
-
getUniqueId
public String getUniqueId()
This is not the same as UUID, the returned value depends on the printer and is used to associateTag
instances.
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel parcel, int i)
- Specified by:
writeToParcel
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel out)
-
getJSONObject
public JSONObject getJSONObject()
- Specified by:
getJSONObject
in interfaceJSONifiable
-
-