mobi.voiceassistant.base
Class PendingRequest

java.lang.Object
  extended by mobi.voiceassistant.base.PendingRequest
All Implemented Interfaces:
Parcelable

public final class PendingRequest
extends Object
implements Parcelable


Nested Class Summary
static class PendingRequest.Builder
          Builder for PendingRequest
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<PendingRequest> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
PendingRequest(Uri origin, Class<?> cls, int dispatchId, Token token)
          Deprecated. Use PendingRequest.Builder
PendingRequest(Uri origin, ComponentName component, ResId dispatch, Token token)
          Deprecated. Use PendingRequest.Builder
PendingRequest(Uri origin, int dispatchId, Token token)
          Deprecated. Use PendingRequest.Builder
 
Method Summary
 int describeContents()
           
 String getAction()
          Returns action for this PendingRequest.
 ComponentName getComponent()
          Returns component name for this request.
<T> T
getContent()
          Returns content for this PendingRequest
 ResId getDispatch()
          Returns dispatch for this PendingRequest.
 Label getLabel()
          Returns label for this PendingRequest.
 Uri getOrigin()
          Returns origin of this PendingRequest.
 PendingIntent getPendingIntent(Context context)
           
 PendingIntent getPendingIntent(Context context, int requestCode)
           
 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<PendingRequest> CREATOR
Constructor Detail

PendingRequest

@Deprecated
public PendingRequest(Uri origin,
                                 int dispatchId,
                                 Token token)
Deprecated. Use PendingRequest.Builder


PendingRequest

@Deprecated
public PendingRequest(Uri origin,
                                 Class<?> cls,
                                 int dispatchId,
                                 Token token)
Deprecated. Use PendingRequest.Builder


PendingRequest

@Deprecated
public PendingRequest(Uri origin,
                                 ComponentName component,
                                 ResId dispatch,
                                 Token token)
Deprecated. Use PendingRequest.Builder

Method Detail

getLabel

public Label getLabel()
Returns label for this PendingRequest.

Returns:
Label or null
See Also:
PendingRequest.Builder.setLabel(Label)

getAction

public String getAction()
Returns action for this PendingRequest.

Returns:
Action or null
See Also:
PendingRequest.Builder.setAction(String), Request.getAction()

getOrigin

public Uri getOrigin()
Returns origin of this PendingRequest.

Returns:
Origin
See Also:
PendingRequest.Builder.build(Uri), Request.getOrigin()

getComponent

public ComponentName getComponent()
Returns component name for this request.

Returns:
Component
See Also:
PendingRequest.Builder.setComponent(ComponentName), Request.getComponent()

getDispatch

public ResId getDispatch()
Returns dispatch for this PendingRequest.

Returns:
Dispatch
See Also:
PendingRequest.Builder.setDispatch(ResId), PendingRequest.Builder.setDispatchId(int), Request.getDispatch(), Request.getDispatchId()

getContent

public <T> T getContent()
Returns content for this PendingRequest

Returns:
Content
See Also:
PendingRequest.Builder.setContent(Object), Request.getContent()

getPendingIntent

public PendingIntent getPendingIntent(Context context)

describeContents

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

writeToParcel

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

getPendingIntent

public PendingIntent getPendingIntent(Context context,
                                      int requestCode)