mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-01-09 15:30:06 -05:00
Rename ParkingChoices to ParkingChoice
This commit is contained in:
parent
6955ef0b09
commit
6a37e14a47
@ -1,6 +1,6 @@
|
|||||||
package com.uncc.gameday.parking;
|
package com.uncc.gameday.parking;
|
||||||
|
|
||||||
public enum ParkingChoices {
|
public enum ParkingChoice {
|
||||||
GREEN ("GREEN"),
|
GREEN ("GREEN"),
|
||||||
BLACK ("BLACK"),
|
BLACK ("BLACK"),
|
||||||
RED ("RED"),
|
RED ("RED"),
|
||||||
@ -14,6 +14,6 @@ public enum ParkingChoices {
|
|||||||
GOLD ("GOLD");
|
GOLD ("GOLD");
|
||||||
|
|
||||||
String choice;
|
String choice;
|
||||||
ParkingChoices(String choice) { this.choice = choice; }
|
ParkingChoice(String choice) { this.choice = choice; }
|
||||||
public String getValue() { return choice; }
|
public String getValue() { return choice; }
|
||||||
}
|
}
|
@ -25,7 +25,7 @@ public class ParkingClient {
|
|||||||
return gds.listLots();
|
return gds.listLots();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ParkingLot listLot(ParkingChoices choice) {
|
public ParkingLot listLot(ParkingChoice choice) {
|
||||||
return gds.listLot(choice.getValue());
|
return gds.listLot(choice.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ public class ParkingClient {
|
|||||||
return gds.listLot(lot.getLocation().getValue());
|
return gds.listLot(lot.getLocation().getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rateLot(RatingChoices rating, ParkingChoices parkingLot) {
|
public void rateLot(RatingChoices rating, ParkingChoice parkingLot) {
|
||||||
ParkingRating pRating = new ParkingRating();
|
ParkingRating pRating = new ParkingRating();
|
||||||
pRating.setParkingLot(parkingLot);
|
pRating.setParkingLot(parkingLot);
|
||||||
pRating.setRating(rating);
|
pRating.setRating(rating);
|
||||||
@ -50,7 +50,7 @@ public class ParkingClient {
|
|||||||
return mMap;
|
return mMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<ParkingLot, ParkingLocation> listLotLocation(ParkingChoices c) {
|
public Map<ParkingLot, ParkingLocation> listLotLocation(ParkingChoice c) {
|
||||||
HashMap<ParkingLot, ParkingLocation> mMap = new HashMap<ParkingLot, ParkingLocation>();
|
HashMap<ParkingLot, ParkingLocation> mMap = new HashMap<ParkingLot, ParkingLocation>();
|
||||||
ParkingLot mParkingLot = new ParkingLot();
|
ParkingLot mParkingLot = new ParkingLot();
|
||||||
mParkingLot.setLocation(c);
|
mParkingLot.setLocation(c);
|
||||||
|
@ -2,7 +2,7 @@ package com.uncc.gameday.parking;
|
|||||||
|
|
||||||
public class ParkingLot {
|
public class ParkingLot {
|
||||||
|
|
||||||
private ParkingChoices location;
|
private ParkingChoice location;
|
||||||
private int filled_pct;
|
private int filled_pct;
|
||||||
|
|
||||||
public int getFilledPct() {
|
public int getFilledPct() {
|
||||||
@ -11,10 +11,10 @@ public class ParkingLot {
|
|||||||
public void setFilledPct(int filled_pct) {
|
public void setFilledPct(int filled_pct) {
|
||||||
this.filled_pct = filled_pct;
|
this.filled_pct = filled_pct;
|
||||||
}
|
}
|
||||||
public ParkingChoices getLocation() {
|
public ParkingChoice getLocation() {
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
public void setLocation(ParkingChoices location) {
|
public void setLocation(ParkingChoice location) {
|
||||||
this.location = location;
|
this.location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.uncc.gameday.parking;
|
package com.uncc.gameday.parking;
|
||||||
|
|
||||||
public class ParkingRating {
|
public class ParkingRating {
|
||||||
private ParkingChoices parking_lot;
|
private ParkingChoice parking_lot;
|
||||||
private RatingChoices rating;
|
private RatingChoices rating;
|
||||||
|
|
||||||
public ParkingChoices getParkingLot() {
|
public ParkingChoice getParkingLot() {
|
||||||
return parking_lot;
|
return parking_lot;
|
||||||
}
|
}
|
||||||
public void setParkingLot(ParkingChoices parking_lot) {
|
public void setParkingLot(ParkingChoice parking_lot) {
|
||||||
this.parking_lot = parking_lot;
|
this.parking_lot = parking_lot;
|
||||||
}
|
}
|
||||||
public RatingChoices getRating() {
|
public RatingChoices getRating() {
|
||||||
|
@ -6,7 +6,7 @@ import retrofit.RestAdapter;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
import com.uncc.gameday.R;
|
import com.uncc.gameday.R;
|
||||||
import com.uncc.gameday.parking.ParkingChoices;
|
import com.uncc.gameday.parking.ParkingChoice;
|
||||||
import com.uncc.gameday.parking.ParkingLot;
|
import com.uncc.gameday.parking.ParkingLot;
|
||||||
import com.uncc.gameday.parking.ParkingLotCallback;
|
import com.uncc.gameday.parking.ParkingLotCallback;
|
||||||
import com.uncc.gameday.parking.ParkingRating;
|
import com.uncc.gameday.parking.ParkingRating;
|
||||||
|
Loading…
Reference in New Issue
Block a user