Package org.ngengine.nostr4j.proto.impl
Class NostrOKMessage
- java.lang.Object
-
- org.ngengine.nostr4j.proto.NostrMessageFragment
-
- org.ngengine.nostr4j.proto.NostrMessage
-
- org.ngengine.nostr4j.proto.impl.NostrOKMessage
-
public class NostrOKMessage extends NostrMessage
-
-
Constructor Summary
Constructors Constructor Description NostrOKMessage(java.lang.String eventId, boolean success, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEventId()
protected java.util.Collection<java.lang.Object>
getFragments()
java.lang.String
getMessage()
protected java.lang.String
getPrefix()
boolean
isSuccess()
static NostrOKMessage
parse(java.util.List<java.lang.Object> data)
void
throwException()
-
-
-
Method Detail
-
getEventId
public java.lang.String getEventId()
-
isSuccess
public boolean isSuccess()
-
getMessage
public java.lang.String getMessage()
-
throwException
public void throwException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrefix
protected java.lang.String getPrefix()
- Specified by:
getPrefix
in classNostrMessage
-
getFragments
protected java.util.Collection<java.lang.Object> getFragments()
- Specified by:
getFragments
in classNostrMessage
-
parse
public static NostrOKMessage parse(java.util.List<java.lang.Object> data)
-
-