Events class

代表事件的類別。

建構函式

Events(PersonalizerClientContext)

建立事件。

方法

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

建構函式詳細資料

Events(PersonalizerClientContext)

建立事件。

new Events(client: PersonalizerClientContext)

參數

client
PersonalizerClientContext

服務用戶端的參考。

方法詳細資料

activate(string, RequestOptionsBase)

function activate(eventId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

eventId

string

此啟用套用的事件識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

activate(string, RequestOptionsBase, ServiceCallback<void>)

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

參數

eventId

string

此啟用套用的事件識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

activate(string, ServiceCallback<void>)

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

參數

eventId

string

此啟用套用的事件識別碼。

callback

ServiceCallback<void>

回呼

reward(string, RewardRequest, RequestOptionsBase)

function reward(eventId: string, rewardParameter: RewardRequest, options?: RequestOptionsBase): Promise<RestResponse>

參數

eventId

string

此獎勵適用的事件識別碼。

rewardParameter
RewardRequest

獎勵應該是浮點數。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

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

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

參數

eventId

string

此獎勵適用的事件識別碼。

rewardParameter
RewardRequest

獎勵應該是浮點數。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

reward(string, RewardRequest, ServiceCallback<void>)

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

參數

eventId

string

此獎勵適用的事件識別碼。

rewardParameter
RewardRequest

獎勵應該是浮點數。

callback

ServiceCallback<void>

回呼