class MCProtocol::CancelledNotificationParams

Included Modules

Defined in:

mcprotocol/cancelled_notification.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(requestId : RequestId, reason : String | Nil = Nil) #

[View source]

Instance Method Detail

def reason : String | Nil #

An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.


[View source]
def requestId : RequestId #

The ID of the request to cancel.

This MUST correspond to the ID of a request previously issued in the same direction.


[View source]