-
public final class resultsKt
-
-
Method Summary
Modifier and Type Method Description final JsonObject
toJson(DisplayResult $self)
Convenience method for converting nullable DisplayResult to JSON final String
setDisplayId(Map<String, JsonElement> $self, String id, Boolean force)
Sets display ID to JSON. final MimeTypedResult
MIME(Pair<String, String> mimeToData)
final MimeTypedResult
HTML(String text, Boolean isolated)
final MimeTypedResult
mimeResult(Pair<String, String> mimeToData)
final MimeTypedResult
textResult(String text)
final MimeTypedResult
htmlResult(String text, Boolean isolated)
-
-
Method Detail
-
toJson
final JsonObject toJson(DisplayResult $self)
Convenience method for converting nullable DisplayResult to JSON
-
setDisplayId
final String setDisplayId(Map<String, JsonElement> $self, String id, Boolean force)
Sets display ID to JSON. If ID was not set, sets it to id and returns it back If ID was set and force is false, just returns old ID If ID was set, force is true and id is
null
, just returns old ID If ID was set, force is true and id is notnull
, sets ID to id and returns it back
-
MIME
final MimeTypedResult MIME(Pair<String, String> mimeToData)
-
HTML
final MimeTypedResult HTML(String text, Boolean isolated)
-
mimeResult
final MimeTypedResult mimeResult(Pair<String, String> mimeToData)
-
textResult
final MimeTypedResult textResult(String text)
-
htmlResult
final MimeTypedResult htmlResult(String text, Boolean isolated)
-
-
-
-