public Receiver( string uname, string pass, GPS loc, string contactName, string contactPhone, string extraDetails) : base(uname, pass, "Receiver", loc) { this.contactName = contactName; this.contactPhone = contactPhone; this.extraDetails = extraDetails; }
public Driver( string uname, string upass, GPS loc ) : base(uname, upass, "Driver", loc) { pickup = null; dropoff = null; }
public Donor( string uname, string upass, GPS loc ) : base(uname, upass, "Donor", loc) { status = "empty"; }
public double difference( GPS other ) { return Math.Pow((this.latitude-other.latitude),2.0) + Math.Pow((this.longitude-other.longitude),2.0); }
public void updateLoc( GPS loc ) { location = loc; }
public User( string uname, string upass, string role, GPS loc ) { uName = uname; uPass = upass; location = loc; this.role = role; }
public User() { uName = ""; uPass = ""; role = ""; location = null; }
public Place( DateTime t, GPS l, string m ) { time = t; location = l; message = m; }