Skip to content

How to send the result to an external class inside my project #3

@abelardogit

Description

@abelardogit

Hello there!

This message is not really an issue as is, but a question related how I could return a boolean (true/false) from the onSuccess/onFailure methods to an external class.

I created this class: DiscordNotifier. Inside this class there is a method: notify where your code to send a message via webhook to a channel lives. At the topmost line of this method notify, a boolean wasOK is declared.

When the message was successfully sent, the method onSuccess is executed. I wonder how to set "true" to that boolean wasOK declared at the topmost of the notify method.

At a glance:

Image

Do you know about I am asking for?
If so, how could I do it?

Thanks in advance. Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions