Events class

Class representing a Events.

Constructors

Events(PersonalizerClientContext)

Create a Events.

Methods

activate(string, msRest.RequestOptionsBase)
activate(string, RequestOptionsBase, ServiceCallback<void>)
activate(string, ServiceCallback<void>)
reward(string, RewardRequest, msRest.RequestOptionsBase)
reward(string, RewardRequest, RequestOptionsBase, ServiceCallback<void>)
reward(string, RewardRequest, ServiceCallback<void>)

Constructor Details

Events(PersonalizerClientContext)

Create a Events.

new Events(client: PersonalizerClientContext)

Parameters

client
PersonalizerClientContext

Reference to the service client.

Method Details

activate(string, msRest.RequestOptionsBase)

function activate(eventId: string, options?: msRest.RequestOptionsBase)

Parameters

eventId
string

The event ID this activation applies to.

options
msRest.RequestOptionsBase

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

activate(string, RequestOptionsBase, ServiceCallback<void>)

function activate(eventId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

eventId
string

The event ID this activation applies to.

options
RequestOptionsBase

The optional parameters

callback
ServiceCallback<void>

The callback

activate(string, ServiceCallback<void>)

function activate(eventId: string, callback: ServiceCallback<void>)

Parameters

eventId
string

The event ID this activation applies to.

callback
ServiceCallback<void>

The callback

reward(string, RewardRequest, msRest.RequestOptionsBase)

function reward(eventId: string, rewardParameter: RewardRequest, options?: msRest.RequestOptionsBase)

Parameters

eventId
string

The event id this reward applies to.

rewardParameter
RewardRequest

The reward should be a floating point number.

options
msRest.RequestOptionsBase

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

reward(string, RewardRequest, RequestOptionsBase, ServiceCallback<void>)

function reward(eventId: string, rewardParameter: RewardRequest, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

eventId
string

The event id this reward applies to.

rewardParameter
RewardRequest

The reward should be a floating point number.

options
RequestOptionsBase

The optional parameters

callback
ServiceCallback<void>

The callback

reward(string, RewardRequest, ServiceCallback<void>)

function reward(eventId: string, rewardParameter: RewardRequest, callback: ServiceCallback<void>)

Parameters

eventId
string

The event id this reward applies to.

rewardParameter
RewardRequest

The reward should be a floating point number.

callback
ServiceCallback<void>

The callback