X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/ce70a623c21a267679d59838d041f9bc1d486cd9..eca3c6fa30a8c6c72599a80cea39d674db1c0d65:/src/main/java/org/asamk/signal/jsonrpc/JsonRpcRequest.java diff --git a/src/main/java/org/asamk/signal/jsonrpc/JsonRpcRequest.java b/src/main/java/org/asamk/signal/jsonrpc/JsonRpcRequest.java index ac54c7b7..e90d740c 100644 --- a/src/main/java/org/asamk/signal/jsonrpc/JsonRpcRequest.java +++ b/src/main/java/org/asamk/signal/jsonrpc/JsonRpcRequest.java @@ -6,28 +6,28 @@ import com.fasterxml.jackson.databind.node.ValueNode; /** * Represents a JSON-RPC request. - * https://www.jsonrpc.org/specification#request_object + * https://www.jsonrpc.org/specification#request_object */ public final class JsonRpcRequest extends JsonRpcMessage { /** * A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0". */ - String jsonrpc; + private String jsonrpc; /** * A String containing the name of the method to be invoked. * Method names that begin with the word rpc followed by a period character (U+002E or ASCII 46) * are reserved for rpc-internal methods and extensions and MUST NOT be used for anything else. */ - String method; + private String method; /** * A Structured value that holds the parameter values to be used during the invocation of the method. * This member MAY be omitted. */ @JsonInclude(JsonInclude.Include.NON_NULL) - ContainerNode params; + private ContainerNode params; /** * An identifier established by the Client that MUST contain a String, Number, or NULL value if included. @@ -35,7 +35,7 @@ public final class JsonRpcRequest extends JsonRpcMessage { * The value SHOULD normally not be Null and Numbers SHOULD NOT contain fractional parts */ @JsonInclude(JsonInclude.Include.NON_NULL) - ValueNode id; + private ValueNode id; public static JsonRpcRequest forNotification( final String method, final ContainerNode params, final ValueNode id