Пример #1
0
        public IActionResult Write([FromQuery(Name = "event")] string eventName, [FromQuery(Name = "data")] uint data)
        {
            eventName = eventName.ToUpper();
            _writeService.Write(eventName, data);

            var response = new WriteEventResponse(eventName, data);

            return(Ok(response));
        }
    void OnWriteSuccess(WriteEventResponse response)
    {
        var request       = response.Request as WriteClientPlayerEventRequest;
        var stringBuilder = new StringBuilder();

        stringBuilder.AppendFormat("{0}:{1}\n", request.EventName, response.EventId);
        if (request.Body != null)
        {
            foreach (var item in request.Body)
            {
                stringBuilder.AppendFormat("{0}:{1}\n", item.Key, item.Value);
            }
        }
        Debug.Log(stringBuilder);
    }
Пример #3
0
 private void WriteEventCallback(WriteEventResponse result)
 {
     // There's nothing else useful to test about this right now
     ((UUnitTestContext)result.CustomData).EndTest(UUnitFinishState.PASSED, null);
 }
 private void WriteEventCallback(WriteEventResponse result)
 {
     lastReceivedMessage = "WriteEvent posted successfully.";
 }
Пример #5
0
 private void OnPlaySendEventSuccess(WriteEventResponse result)
 {
     Debug.LogWarning("Report sended");
 }