1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package epson.print.screen;
- import android.os.Parcel;
- import android.os.Parcelable;
- public class PaperSourceSetting implements Parcelable {
- public static final Parcelable.Creator<PaperSourceSetting> CREATOR = new Parcelable.Creator<PaperSourceSetting>() {
- public PaperSourceSetting createFromParcel(Parcel parcel) {
- return new PaperSourceSetting(parcel);
- }
- public PaperSourceSetting[] newArray(int i) {
- return new PaperSourceSetting[i];
- }
- };
- public boolean bSupportESCPR;
- public int paperSizeId;
- public int paperSource;
- public int paperTypeId;
- public int describeContents() {
- return 0;
- }
- public PaperSourceSetting() {
- this.bSupportESCPR = true;
- }
- private PaperSourceSetting(Parcel parcel) {
- this.bSupportESCPR = true;
- this.paperSource = parcel.readInt();
- this.paperSizeId = parcel.readInt();
- this.paperTypeId = parcel.readInt();
- this.bSupportESCPR = ((Boolean) parcel.readValue(Boolean.class.getClassLoader())).booleanValue();
- }
- public void writeToParcel(Parcel parcel, int i) {
- parcel.writeInt(this.paperSource);
- parcel.writeInt(this.paperSizeId);
- parcel.writeInt(this.paperTypeId);
- parcel.writeValue(Boolean.valueOf(this.bSupportESCPR));
- }
- public boolean equals(PaperSourceSetting paperSourceSetting) {
- if (this.paperSizeId == paperSourceSetting.paperSizeId && this.paperTypeId == paperSourceSetting.paperTypeId && this.paperSource == paperSourceSetting.paperSource) {
- return true;
- }
- return false;
- }
- }
|