コード例 #1
0
        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;
        }
コード例 #2
0
 public Driver( string uname, string upass, GPS loc )
     : base(uname, upass, "Driver", loc)
 {
     pickup = null;
     dropoff = null;
 }
コード例 #3
0
 public Donor( string uname, string upass, GPS loc )
     : base(uname, upass, "Donor", loc)
 {
     status = "empty";
 }
コード例 #4
0
 public double difference( GPS other )
 {
     return Math.Pow((this.latitude-other.latitude),2.0)
          + Math.Pow((this.longitude-other.longitude),2.0);
 }
コード例 #5
0
 public void updateLoc( GPS loc )
 {
     location = loc;
 }
コード例 #6
0
 public User( string uname, string upass, string role, GPS loc )
 {
     uName = uname; uPass = upass;
     location = loc; this.role = role;
 }
コード例 #7
0
 public User()
 {
     uName = ""; uPass = "";
     role = ""; location = null;
 }
コード例 #8
0
 public Place( DateTime t, GPS l, string m )
 {
     time = t;
     location = l;
     message = m;
 }