mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-05-03 10:50:16 +00:00
14 lines
385 B
Java
14 lines
385 B
Java
package org.asamk.signal.json;
|
|
|
|
import io.micronaut.jsonschema.JsonSchema;
|
|
|
|
import org.asamk.signal.manager.api.TextStyle;
|
|
|
|
@JsonSchema(title = "TextStyle")
|
|
public record JsonTextStyle(String style, int start, int length) {
|
|
|
|
static JsonTextStyle from(TextStyle textStyle) {
|
|
return new JsonTextStyle(textStyle.style().name(), textStyle.start(), textStyle.length());
|
|
}
|
|
}
|