Class CreateGamingSquadPayload
Represents parameters used to configure a gaming squad.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class CreateGamingSquadPayload : JsObject
Constructors
CreateGamingSquadPayload()
Construct an instance of CreateGamingSquadPayload
Declaration
public CreateGamingSquadPayload()
CreateGamingSquadPayload(string, string, string)
Creates a new instance of CreateGamingSquadPayload
Declaration
public CreateGamingSquadPayload(string name = null, string image = null, string squadTerm = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | An optional prefill for the squad name input in the creation dialog. The player ultimately controls the actual name. |
| string | image | An optional Base64-encoded image that is associated with the gaming squad and appears in the creation dialog. It's also the profile icon for squad in the Messenger thread. |
| string | squadTerm | An optional localized term to use in place of Squad in the dialog. |
Properties
Image
An optional Base64-encoded image that is associated with the gaming squad and appears in the creation dialog. It's also the profile icon for squad in the Messenger thread.
Declaration
public string Image { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
An optional prefill for the squad name input in the creation dialog. The player ultimately controls the actual name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
SquadTerm
An optional localized term to use in place of Squad in the dialog.
Declaration
public string SquadTerm { get; }
Property Value
| Type | Description |
|---|---|
| string |