-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
322 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
package com.victorsima.uber.model; | ||
|
||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Price model obj | ||
*/ | ||
public class Price { | ||
|
||
@Expose | ||
@SerializedName("product_id") | ||
private String productId; | ||
|
||
@Expose | ||
@SerializedName("currency_code") | ||
private String currencyCode;//TODO: parse to java.util.Currency | ||
|
||
@Expose | ||
@SerializedName("display_name") | ||
private String displayName; | ||
|
||
@Expose | ||
@SerializedName("estimate") | ||
private String estimate; | ||
|
||
@Expose | ||
@SerializedName("low_estimate") | ||
private int lowEstimate; | ||
|
||
@Expose | ||
@SerializedName("high_estimate") | ||
private int highEstimate; | ||
|
||
@Expose | ||
@SerializedName("surge_multiplier") | ||
private float surgeMultiplier; | ||
|
||
public String getProductId() { | ||
return productId; | ||
} | ||
|
||
public void setProductId(String productId) { | ||
this.productId = productId; | ||
} | ||
|
||
public String getCurrencyCode() { | ||
return currencyCode; | ||
} | ||
|
||
public void setCurrencyCode(String currencyCode) { | ||
this.currencyCode = currencyCode; | ||
} | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
|
||
public void setDisplayName(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
|
||
public String getEstimate() { | ||
return estimate; | ||
} | ||
|
||
public void setEstimate(String estimate) { | ||
this.estimate = estimate; | ||
} | ||
|
||
public int getLowEstimate() { | ||
return lowEstimate; | ||
} | ||
|
||
public void setLowEstimate(int lowEstimate) { | ||
this.lowEstimate = lowEstimate; | ||
} | ||
|
||
public int getHighEstimate() { | ||
return highEstimate; | ||
} | ||
|
||
public void setHighEstimate(int highEstimate) { | ||
this.highEstimate = highEstimate; | ||
} | ||
|
||
public float getSurgeMultiplier() { | ||
return surgeMultiplier; | ||
} | ||
|
||
public void setSurgeMultiplier(float surgeMultiplier) { | ||
this.surgeMultiplier = surgeMultiplier; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.victorsima.uber.model; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Prices model obj | ||
*/ | ||
public class Prices { | ||
|
||
|
||
@Expose | ||
@SerializedName("prices") | ||
private List<Price> prices; | ||
|
||
public List<Price> getPrices() { | ||
return prices; | ||
} | ||
|
||
public void setPrices(List<Price> prices) { | ||
this.prices = prices; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.victorsima.uber.model; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Time model obj | ||
*/ | ||
public class Time { | ||
|
||
@Expose | ||
@SerializedName("product_id") | ||
private String productId; | ||
|
||
@Expose | ||
@SerializedName("display_name") | ||
private String displayName; | ||
|
||
@Expose | ||
@SerializedName("estimate") | ||
private int estimate; | ||
|
||
public String getProductId() { | ||
return productId; | ||
} | ||
|
||
public void setProductId(String productId) { | ||
this.productId = productId; | ||
} | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
|
||
public void setDisplayName(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
|
||
public int getEstimate() { | ||
return estimate; | ||
} | ||
|
||
public void setEstimate(int estimate) { | ||
this.estimate = estimate; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.victorsima.uber.model; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Times model obj | ||
*/ | ||
public class Times { | ||
|
||
@Expose | ||
@SerializedName("times") | ||
private List<Time> times; | ||
|
||
public List<Time> getTimes() { | ||
return times; | ||
} | ||
|
||
public void setTimes(List<Time> times) { | ||
this.times = times; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.