package com.victorsima.uber.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * Created by victorsima on 3/22/15.
 */
public class Driver {
    @Expose
    @SerializedName("phone_number")
    private String phoneNumber;
    @Expose
    @SerializedName("rating")
    private int rating;
    @Expose
    @SerializedName("picture_url")
    private String pictureUrl;
    @Expose
    @SerializedName("name")
    private String name;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
@@ -325,18 +325,20 @@
 private 
-in
+floa
 t rating
@@ -666,18 +666,20 @@
  public 
-in
+floa
 t getRat
@@ -742,18 +742,20 @@
 tRating(
-in
+floa
 t rating

Fix NumberFormatException when atempting to convert float to int in driver.rating