class MCProtocol::ProgressNotificationParams

Included Modules

Defined in:

mcprotocol/progress_notification.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(progress : Float64, progressToken : ProgressToken, total : Float64 | Nil = Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def progress : Float64 #

The progress thus far. This should increase every time progress is made, even if the total is unknown.


[View source]
def progressToken : ProgressToken #

The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.


[View source]
def total : Float64 | Nil #

Total number of items to process (or total progress required), if known.


[View source]