Exemplo n.º 1
0
 public ReceivedRequest(
     EntityId entityId,
     long requestId,
     string callerWorkerId,
     List <string> callerAttributeSet,
     global::Improbable.Gdk.Core.Empty request)
 {
     EntityId           = entityId;
     RequestId          = requestId;
     CallerWorkerId     = callerWorkerId;
     CallerAttributeSet = callerAttributeSet;
     Payload            = request;
 }
Exemplo n.º 2
0
 public Request(
     EntityId targetEntityId,
     global::Improbable.Gdk.Core.Empty request,
     uint?timeoutMillis        = null,
     bool allowShortCircuiting = false,
     object context            = null)
 {
     TargetEntityId       = targetEntityId;
     Payload              = request;
     TimeoutMillis        = timeoutMillis;
     AllowShortCircuiting = allowShortCircuiting;
     Context              = context;
 }
Exemplo n.º 3
0
 public ReceivedResponse(
     Unity.Entities.Entity sendingEntity,
     EntityId entityId,
     string message,
     StatusCode statusCode,
     global::Improbable.Gdk.Core.Empty?response,
     global::Improbable.Gdk.Core.Empty request,
     global::System.Object context,
     long requestId)
 {
     SendingEntity   = sendingEntity;
     EntityId        = entityId;
     Message         = message;
     StatusCode      = statusCode;
     ResponsePayload = response;
     RequestPayload  = request;
     Context         = context;
     RequestId       = requestId;
 }
        public void SendPlayerHeartbeatCommand(EntityId targetEntityId, global::Improbable.Gdk.Core.Empty request, Action <global::Improbable.Gdk.PlayerLifecycle.PlayerHeartbeatClient.PlayerHeartbeat.ReceivedResponse> callback = null)
        {
            var commandRequest = new PlayerHeartbeatClient.PlayerHeartbeat.Request(targetEntityId, request);

            SendPlayerHeartbeatCommand(commandRequest, callback);
        }
 public void SendPlayerHeartbeatResponse(long requestId, global::Improbable.Gdk.Core.Empty response)
 {
     commandSystem.SendResponse(new global::Improbable.Gdk.PlayerLifecycle.PlayerHeartbeatClient.PlayerHeartbeat.Response(requestId, response));
 }
Exemplo n.º 6
0
 public Response(long requestId, global::Improbable.Gdk.Core.Empty payload)
 {
     RequestId      = requestId;
     Payload        = payload;
     FailureMessage = null;
 }