GameRequestContent.Builder
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Builder class for a concrete instance of GameRequestContent

확장:Object
구현:ShareModelBuilder
패키지: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)
매개변수설명
messageThe message
Returns
The builder
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)
매개변수설명
toThe id or user name to send the request to
Returns
The builder
setRecipients(List)

An array of user IDs, usernames or invite tokens of people to send request. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.

This is equivalent to the "to" parameter when using the web game request dialog.

public Builder setRecipients(List recipients)
매개변수설명
recipientsThe list of user ids to send the request to
Returns
The builder
setData(String)

Sets optional data which can be used for tracking; maximum length is 255 characters.

public Builder setData(String data)
매개변수설명
dataThe data
Returns
The builder
setTitle(String)

Sets an optional title for the dialog; maximum length is 50 characters.

public Builder setTitle(String title)
매개변수설명
titleThe title
Returns
The builder
setActionType(ActionType)

Sets the action type for this request

public Builder setActionType(ActionType actionType)
매개변수설명
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)
매개변수설명
objectId
setFilters(Filters)

Sets the filters for everybody/app users/non app users

public Builder setFilters(Filters filters)
매개변수설명
filters
setSuggestions(List)

Sets a list of user ids suggested as request receivers

public Builder setSuggestions(List suggestions)
매개변수설명
suggestions
build()

Builds the object.

public Object build()
Returns
The built object.
build()
public GameRequestContent build()
readFrom(ShareModel)

Reads the values from a ShareModel into the builder.

public ShareModelBuilder readFrom(ShareModel model)
매개변수설명
modelThe source ShareModel
Returns
The builder.
readFrom(GameRequestContent)
public Builder readFrom(GameRequestContent content)
매개변수설명
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)
매개변수설명
parcelThe Parcel that contains the ShareModel.
Returns
The builder.
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
매개변수설명
parcel