Player.IO

Build fun, powerful & scalable online and mobile games with the reliable backend your users expect

Sign Up | Sign In

.NET Client Reference

Multiplayer  class documentationClass PartnerPay

Namespace: PlayerIOClient
Language: C# / .NET

The Player.IO PartnerPay service.

Here's how to connect to Player.IO and setting a partner id:

This is how you check and set the partner id of a user:

Finally, here's how to trigger a custom action:

Properties

 
public string
CurrentPartner  [read-only]

The current partner id of the connected user, if any.

Methods

 
public void
SetTag (string partnerId, Callback successCallback)

Set (or change) the PartnerPay partner id of the connected user

public void
SetTag (string partnerId)

Set (or change) the PartnerPay partner id of the connected user

public void
SetTag (string partnerId, Callback successCallback, Callback<PlayerIOError> errorCallback)

Set (or change) the PartnerPay partner id of the connected user

public void
Trigger (string key)

Triggers the custom PartnerPay action identified by the given key

public void
Trigger (string key, uint count, Callback successCallback, Callback<PlayerIOError> errorCallback)

Triggers the custom PartnerPay action identified by the given key

public void
Trigger (string key, Callback successCallback)

Triggers the custom PartnerPay action identified by the given key

public void
Trigger (string key, uint count)

Triggers the custom PartnerPay action identified by the given key

public void
Trigger (string key, uint count, Callback successCallback)

Triggers the custom PartnerPay action identified by the given key

public void
Trigger (string key, Callback successCallback, Callback<PlayerIOError> errorCallback)

Triggers the custom PartnerPay action identified by the given key

PartnerPay.CurrentPartner

public string
CurrentPartner  [read-only]

The current partner id of the connected user, if any.

PartnerPay.SetTag

public void
SetTag (string partnerId, Callback successCallback)

Set (or change) the PartnerPay partner id of the connected user

Arguments

string partnerId
The PartnerPay partner id
Callback successCallback
Callback that will be called if the action is succesful.

PartnerPay.SetTag

public void
SetTag (string partnerId)

Set (or change) the PartnerPay partner id of the connected user

Arguments

string partnerId
The PartnerPay partner id

PartnerPay.SetTag

public void
SetTag (string partnerId, Callback successCallback, Callback<PlayerIOError> errorCallback)

Set (or change) the PartnerPay partner id of the connected user

Arguments

string partnerId
The PartnerPay partner id
Callback successCallback
Callback that will be called if the action is succesful.
Callback<PlayerIOError> errorCallback
Callback that will be called instead of successCallback if an error occurs.

PartnerPay.Trigger

public void
Trigger (string key)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action

PartnerPay.Trigger

public void
Trigger (string key, uint count, Callback successCallback, Callback<PlayerIOError> errorCallback)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action
uint count
The number of actions to trigger
Callback successCallback
Callback that will be called if the action is succesful.
Callback<PlayerIOError> errorCallback
Callback that will be called instead of successCallback if an error occurs.

PartnerPay.Trigger

public void
Trigger (string key, Callback successCallback)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action
Callback successCallback
Callback that will be called if the action is succesful.

PartnerPay.Trigger

public void
Trigger (string key, uint count)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action
uint count
The number of actions to trigger

PartnerPay.Trigger

public void
Trigger (string key, uint count, Callback successCallback)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action
uint count
The number of actions to trigger
Callback successCallback
Callback that will be called if the action is succesful.

PartnerPay.Trigger

public void
Trigger (string key, Callback successCallback, Callback<PlayerIOError> errorCallback)

Triggers the custom PartnerPay action identified by the given key

Arguments

string key
The key of the action
Callback successCallback
Callback that will be called if the action is succesful.
Callback<PlayerIOError> errorCallback
Callback that will be called instead of successCallback if an error occurs.