Back to project page BusTicketer.
The source code is released under:
Copyright (c) 2013, Nelspike All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Red...
If you think the Android project BusTicketer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package bus.ticketer.objects; //from w w w .j ava 2 s.com import java.util.Date; import android.graphics.Bitmap; public class Ticket { private Date creationDate; private Date validationDate; private int busID, ticketID; private Bitmap QRCode; public Ticket() { } public Ticket(int id) { this.setTicketID(id); } public Ticket(Date creationDate) { this.setCreationDate(creationDate); } public Date getValidationDate() { return validationDate; } public void setValidationDate(Date validationDate) { this.validationDate = validationDate; } public Date getCreationDate() { return creationDate; } public void setCreationDate(Date creationDate) { this.creationDate = creationDate; } public int getBusID() { return busID; } public void setBusID(int busID) { this.busID = busID; } public int getTicketID() { return ticketID; } public void setTicketID(int ticketID) { this.ticketID = ticketID; } public Bitmap getQRCode() { return QRCode; } public void setQRCode(Bitmap qRCode) { QRCode = qRCode; } @Override public boolean equals(Object obj) { return this.ticketID == ((Ticket) obj).ticketID; } }