-
- All Implemented Interfaces:
-
java.io.Serializable
public final class UserContext implements Serializable
Class that keeps all the user's profile data that need to be send to voice for parking and food flows IMPORTANT: It is mandatory to send all the UserContext data when updating some field. Otherwise the null fields will be reset on voice side.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
userAccessToken
private final Boolean
isPaymentAvailable
private final Boolean
hasParkingPermission
private final String
licensePlate
private final Boolean
isParkingFtue
private final String
firstName
private final String
lastName
private final String
phoneNumber
private final String
email
private final OccasionType
occasionType
private final PaymentType
paymentType
private final PickupTime
pickupTime
private List<Brand>
brands
private final Boolean
hasFoodPermission
private final Boolean
isFoodFtue
-
Constructor Summary
Constructors Constructor Description UserContext(String userAccessToken, Boolean isPaymentAvailable, Boolean hasParkingPermission, String licensePlate, Boolean isParkingFtue, String firstName, String lastName, String phoneNumber, String email, OccasionType occasionType, PaymentType paymentType, PickupTime pickupTime, List<Brand> brands, Boolean hasFoodPermission, Boolean isFoodFtue)
-
Method Summary
Modifier and Type Method Description final String
getUserAccessToken()
User's access token. final Boolean
getIsPaymentAvailable()
Specifies if a card is available for payment final Boolean
getHasParkingPermission()
Indicates that app permissions were set or not for parking flow E. final String
getLicensePlate()
Indicates the value for the license plate final Boolean
getIsParkingFtue()
Indicates if the user is in parking first time experience. final String
getFirstName()
User's first name final String
getLastName()
User's last name final String
getPhoneNumber()
User's phone number final String
getEmail()
User's email address final OccasionType
getOccasionType()
Occasion type final PaymentType
getPaymentType()
Type of payment final PickupTime
getPickupTime()
Pickup time for the food order. final List<Brand>
getBrands()
List of available brands final Unit
setBrands(@SerializedName(value = "brands") List<Brand> brands)
List of available brands final Boolean
getHasFoodPermission()
Indicates that app permissions were set or not for food E. final Boolean
getIsFoodFtue()
Indicates if the user is in food first time experience. -
-
Constructor Detail
-
UserContext
UserContext(String userAccessToken, Boolean isPaymentAvailable, Boolean hasParkingPermission, String licensePlate, Boolean isParkingFtue, String firstName, String lastName, String phoneNumber, String email, OccasionType occasionType, PaymentType paymentType, PickupTime pickupTime, List<Brand> brands, Boolean hasFoodPermission, Boolean isFoodFtue)
-
-
Method Detail
-
getUserAccessToken
final String getUserAccessToken()
User's access token.
-
getIsPaymentAvailable
final Boolean getIsPaymentAvailable()
Specifies if a card is available for payment
-
getHasParkingPermission
final Boolean getHasParkingPermission()
Indicates that app permissions were set or not for parking flow E.g location
-
getLicensePlate
final String getLicensePlate()
Indicates the value for the license plate
-
getIsParkingFtue
final Boolean getIsParkingFtue()
Indicates if the user is in parking first time experience.
-
getFirstName
final String getFirstName()
User's first name
-
getLastName
final String getLastName()
User's last name
-
getPhoneNumber
final String getPhoneNumber()
User's phone number
-
getOccasionType
final OccasionType getOccasionType()
Occasion type
-
getPaymentType
final PaymentType getPaymentType()
Type of payment
-
getPickupTime
final PickupTime getPickupTime()
Pickup time for the food order.
-
setBrands
final Unit setBrands(@SerializedName(value = "brands") List<Brand> brands)
List of available brands
-
getHasFoodPermission
final Boolean getHasFoodPermission()
Indicates that app permissions were set or not for food E.g location && call && microphone.
-
getIsFoodFtue
final Boolean getIsFoodFtue()
Indicates if the user is in food first time experience.
-
-
-
-