Package org.opencabstandard.provider
Class IdentityContract.DriverSession
- java.lang.Object
-
- org.opencabstandard.provider.IdentityContract.DriverSession
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- IdentityContract
public static class IdentityContract.DriverSession extends java.lang.Object implements android.os.Parcelable
Object containing the driver session.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<IdentityContract.DriverSession>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description DriverSession()
protected
DriverSession(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
IdentityContract.LoginCredentials
getLoginCredentials()
Retrieve login credentialsjava.lang.String
getUsername()
Retrieve driver user namevoid
setLoginCredentials(IdentityContract.LoginCredentials loginCredentials)
Set user credentialsvoid
setUsername(java.lang.String username)
Set user namevoid
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<IdentityContract.DriverSession> CREATOR
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Retrieve driver user name- Returns:
- username
-
setUsername
public void setUsername(java.lang.String username)
Set user name- Parameters:
username
-
-
getLoginCredentials
public IdentityContract.LoginCredentials getLoginCredentials()
Retrieve login credentials- Returns:
-
setLoginCredentials
public void setLoginCredentials(IdentityContract.LoginCredentials loginCredentials)
Set user credentials- Parameters:
loginCredentials
-
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
-