mobi.voiceassistant.base
Class Session

java.lang.Object
  extended by mobi.voiceassistant.base.Session
All Implemented Interfaces:
IInterface, Parcelable, IIntentExecutor

public final class Session
extends Object
implements Parcelable, IIntentExecutor


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Nested classes/interfaces inherited from interface mobi.voiceassistant.base.IIntentExecutor
IIntentExecutor.Stub
 
Field Summary
static Parcelable.Creator<Session> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Session(IBinder iBinder, Uri uri)
           
Session(Parcel parcel)
           
 
Method Summary
 void addResponse(Response response)
           
 IBinder asBinder()
           
 int describeContents()
           
 void execute(Intent intent)
           
protected  String generateTag()
           
 Uri getUri()
           
 void processInput(PendingInput input)
           
 void processRequest(PendingRequest request)
           
 void putResponse(Uri uri, Response response)
           
protected static Session readSessionOrNullFromParcel(Parcel parcel)
           
 void removeResponse(Response response)
           
 void replaceResponse(Response oldResponse, Response withResponse)
           
 void updateResponse(Response response)
           
protected static void writeSessionOrNullFromParcel(Parcel parcel, Session session, int flags)
           
 void writeToParcel(Parcel parcel, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<Session> CREATOR
Constructor Detail

Session

public Session(IBinder iBinder,
               Uri uri)

Session

public Session(Parcel parcel)
Method Detail

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

asBinder

public IBinder asBinder()
Specified by:
asBinder in interface IInterface

getUri

public Uri getUri()

generateTag

protected String generateTag()

addResponse

public void addResponse(Response response)

updateResponse

public void updateResponse(Response response)

replaceResponse

public void replaceResponse(Response oldResponse,
                            Response withResponse)

removeResponse

public void removeResponse(Response response)

putResponse

public void putResponse(Uri uri,
                        Response response)

processInput

public void processInput(PendingInput input)

processRequest

public void processRequest(PendingRequest request)

execute

public void execute(Intent intent)
Specified by:
execute in interface IIntentExecutor

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

readSessionOrNullFromParcel

protected static Session readSessionOrNullFromParcel(Parcel parcel)

writeSessionOrNullFromParcel

protected static void writeSessionOrNullFromParcel(Parcel parcel,
                                                   Session session,
                                                   int flags)