mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-03 04:50:37 +00:00
10 lines
308 B
Java
10 lines
308 B
Java
package org.asamk.signal.json;
|
|
|
|
import org.asamk.signal.manager.api.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());
|
|
}
|
|
}
|