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.StringgetEventId()protected java.util.Collection<java.lang.Object>getFragments()java.lang.StringgetMessage()protected java.lang.StringgetPrefix()booleanisSuccess()static NostrOKMessageparse(java.util.List<java.lang.Object> data)voidthrowException()
-
-
-
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:
getPrefixin classNostrMessage
-
getFragments
protected java.util.Collection<java.lang.Object> getFragments()
- Specified by:
getFragmentsin classNostrMessage
-
parse
public static NostrOKMessage parse(java.util.List<java.lang.Object> data)
-
-