Skip to main content
Version: 5.7.0

AddEvent

Adds a stream event.

ServiceOperation
playbackStreamADD_EVENT

Method Parameters

ParameterDescription
playbackStreamIdIdentifies the stream to read
eventDataDescribes the event
summaryCurrent summary data as of this event

Usage

http://localhost:3000
string playbackStreamId = "stream";
string jsonEventData = "{\"value\":1}";
string jsonSummary = "{\"total\":5}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlaybackStreamService.AddEvent(playbackStreamId, jsonEventData, jsonSummary, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}