class
MCProtocol::ProgressNotificationParams
- MCProtocol::ProgressNotificationParams
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/progress_notification.crConstructors
- .new(progress : Float64, progressToken : ProgressToken, total : Float64 | Nil = Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#progress : Float64
The progress thus far.
-
#progressToken : ProgressToken
The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
-
#total : Float64 | Nil
Total number of items to process (or total progress required), if known.
Constructor Detail
Instance Method Detail
def progress : Float64
#
The progress thus far. This should increase every time progress is made, even if the total is unknown.
def progressToken : ProgressToken
#
The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
def total : Float64 | Nil
#
Total number of items to process (or total progress required), if known.