public class Printer extends Object implements Parcelable, JSONifiable
PrinterConnector
.Modifier and Type | Class and Description |
---|---|
static class |
Printer.Builder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
JSONifiable.Creator<T>
Modifier and Type | Field and Description |
---|---|
Category |
category |
static Parcelable.Creator<Printer> |
CREATOR |
String |
ip |
static JSONifiable.Creator<Printer> |
JSON_CREATOR |
String |
mac |
String |
name |
Type |
type |
String |
uuid |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and 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 in
TypeDetails . |
String |
getUniqueId()
This is not the same as UUID, the returned value depends on the printer and is used to
associate
Tag instances. |
String |
getUuid() |
int |
hashCode() |
boolean |
isLocal()
Deprecated.
|
String |
toString() |
void |
writeToParcel(Parcel out) |
void |
writeToParcel(Parcel parcel,
int i) |
public final String uuid
public final Type type
public final String name
public final String ip
public final String mac
public final Category category
public static final Parcelable.Creator<Printer> CREATOR
public static final JSONifiable.Creator<Printer> JSON_CREATOR
public String getUuid()
public Type getType()
TypeDetails
.public String getName()
public String getIp()
public String getMac()
public Category getCategory()
@Deprecated public boolean isLocal()
TypeDetails.isLocal()
to this.public String getUniqueId()
Tag
instances.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel parcel, int i)
writeToParcel
in interface Parcelable
public void writeToParcel(Parcel out)
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable