| | |
| | | package com.driver.igotrip.bean; |
| | | |
| | | import android.text.TextUtils; |
| | | |
| | | public class UserInfoBean { |
| | | |
| | | /** |
| | |
| | | private int userId = -1; |
| | | private int id = -1; |
| | | private long addTime; |
| | | private String avatar=""; |
| | | private String avatar = ""; |
| | | private String nickname; |
| | | private String brand; |
| | | private String licensePlate; |
| | |
| | | private String email; |
| | | public String birthday; |
| | | public String driveCard; |
| | | //接单最小余额 |
| | | public String orderMinBalance; |
| | | |
| | | public String getEmail() { |
| | | return email; |
| | |
| | | } |
| | | |
| | | public double getLaveBusinessNextWeekMoney() { |
| | | if (laveBusinessNextWeekMoney == null || laveBusinessNextWeekMoney.isEmpty()){ |
| | | if (laveBusinessNextWeekMoney == null || laveBusinessNextWeekMoney.isEmpty()) { |
| | | return 0.0; |
| | | }else { |
| | | } else { |
| | | return Double.valueOf(laveBusinessNextWeekMoney); |
| | | } |
| | | } |
| | |
| | | * 获取账户剩余 |
| | | */ |
| | | public double getAccountBalance() { |
| | | return balance + laveBusinessMoney; |
| | | return balance; |
| | | } |
| | | |
| | | public String getOrderMinBalance() { |
| | | return orderMinBalance; |
| | | } |
| | | |
| | | public void setOrderMinBalance(String orderMinBalance) { |
| | | this.orderMinBalance = orderMinBalance; |
| | | } |
| | | |
| | | //是否能够接单 |
| | | public boolean couldTakeOrder() { |
| | | return getAccountBalance() >= Double.parseDouble(TextUtils.isEmpty(orderMinBalance) ? "0" : orderMinBalance); |
| | | } |
| | | } |