isAwaitedSuccessMessage

abstract fun isAwaitedSuccessMessage(sender: String, message: String, requiredSender: String, submissionId: Int, submissionType: SubmissionType): Single<Boolean>

Check if a message is the expected one or not

Return

single with true if the message is the response for the current submit case; false otherwise. Returns the error RECEIVED_ERROR is the message is the awaited one but it contains an error.

Parameters

sender

number of the sender

message

received message

requiredSender

messages from other senders will not be read

submissionId

submission ID to recognize message

submissionType

submission type to recognize message