Builder class for a concrete instance of GameRequestContent
Hereda de: | Object |
Implementa: | ShareModelBuilder |
Paquete: | model |
GameRequestContent.Builder()
public GameRequestContent.Builder()
setMessage(String)
Sets the message users receiving the request will see. The maximum length is 60 characters.
public Builder setMessage(String message)
Parámetro | Descripción |
---|---|
message | The message |
setTo(String)
Sets the user ID or user name the request will be sent to. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.
public Builder setTo(String to)
Parámetro | Descripción |
---|---|
to | The id or user name to send the request to |
setData(String)
Sets optional data which can be used for tracking; maximum length is 255 characters.
public Builder setData(String data)
Parámetro | Descripción |
---|---|
data | The data |
setTitle(String)
Sets an optional title for the dialog; maximum length is 50 characters.
public Builder setTitle(String title)
Parámetro | Descripción |
---|---|
title | The title |
setActionType(ActionType)
Sets the action type for this request
public Builder setActionType(ActionType actionType)
Parámetro | Descripción |
---|---|
actionType |
setObjectId(String)
Sets the open graph id of the object that action type will be performed on Only valid (and required) for ActionTypes SEND, ASKFOR
public Builder setObjectId(String objectId)
Parámetro | Descripción |
---|---|
objectId |
setFilters(Filters)
Sets the filters for everybody/app users/non app users
public Builder setFilters(Filters filters)
Parámetro | Descripción |
---|---|
filters |
setSuggestions(ArrayList)
Sets a list of user ids suggested as request receivers
public Builder setSuggestions(ArrayList suggestions)
Parámetro | Descripción |
---|---|
suggestions |
build()
Builds the object.
public Object build()
build()
public GameRequestContent build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
Parámetro | Descripción |
---|---|
model | The source ShareModel |
readFrom(GameRequestContent)
public Builder readFrom(GameRequestContent content)
Parámetro | Descripción |
---|---|
content |
readFrom(Parcel)
Reads the values from a parcel into the builder. The parcel must have packaged an instance of the ShareModel that came from the same type of builder.
public ShareModelBuilder readFrom(Parcel parcel)
Parámetro | Descripción |
---|---|
parcel | The Parcel that contains the ShareModel. |
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
Parámetro | Descripción |
---|---|
parcel |