- added uid RiderVO prop
- fixed RiderCardDrawer layout - added fake avatars - avatars are now loaded dynammically
This commit is contained in:
+5
-2
@@ -1,10 +1,10 @@
|
||||
package vo;
|
||||
|
||||
class RiderVO {
|
||||
private static var currentIndex:Int = 0;
|
||||
|
||||
// constants for use with Reflect api when updating SelectedRider VO
|
||||
public static final ID:String = "id";
|
||||
public static final UID:String = "uid";
|
||||
public static final NAME:String = "name";
|
||||
public static final FIRST_NAME:String = "firstName";
|
||||
public static final AGE:String = "age";
|
||||
@@ -23,6 +23,7 @@ class RiderVO {
|
||||
public static final LEGAL_GUARDIAN_EMAIL:String = "legalGuardianEmail";
|
||||
|
||||
public var id:Int;
|
||||
public var uid:String;
|
||||
public var name:String;
|
||||
public var firstName:String;
|
||||
public var age:Int;
|
||||
@@ -42,6 +43,7 @@ class RiderVO {
|
||||
|
||||
|
||||
public function new(?pId:Int = 0,
|
||||
?pUId:String = "",
|
||||
?pName:String = "",
|
||||
?pFirstName:String = "",
|
||||
?pAge:Int = 0,
|
||||
@@ -59,7 +61,8 @@ class RiderVO {
|
||||
?pLegalGuardianPhoneNumber:String = "",
|
||||
?pLegalGuardianEmail:String = "") {
|
||||
|
||||
id = (pId == 0) ? currentIndex++ : pId;
|
||||
id = pId;
|
||||
uid = pUId;
|
||||
name = pName;
|
||||
firstName = pFirstName;
|
||||
age = pAge;
|
||||
|
||||
Reference in New Issue
Block a user