Class RemoteProcedureCallData

java.lang.Object
live.crowdcontrol.cc4j.websocket.data.RemoteProcedureCallData

public class RemoteProcedureCallData extends Object
Data holder for initiating a remote procedure call.
  • Constructor Details

    • RemoteProcedureCallData

      public RemoteProcedureCallData(@NotNull @NotNull String token, @NotNull @NotNull CallData<?> call)
      Creates a call.
      Parameters:
      token - the token used to authenticate
      call - the data of the call
  • Method Details

    • getToken

      @NotNull public @NotNull String getToken()
      Gets the token used to authenticate this call.
      Returns:
      JWT token
    • getCall

      @NotNull public @NotNull CallData<?> getCall()
      Gets the data of this call.
      Returns:
      call data