Skip to content

LiveMapperHelper

interface io.github.jwdeveloper.tiktok.api.mappers.LiveMapperHelper

public interface LiveMapperHelper
ProtoBufferObject bytesToProtoBufferStructure(byte[] bytes)

See also: ProtoBufferObject

  • bytes (byte[]) — protocol buffer data bytes

ProtoBufferObject — tree structure of protocol buffer object

<T extends GeneratedMessage> T bytesToWebcastObject(byte[] bytes, Class<T> messageClass)
  • bytes (byte[]) — protocol buffer data bytes
  • messageClass (Class<T>) — class that we want to serialize bytes to

T — object of type @messageClass

Object bytesToWebcastObject(byte[] bytes, String messageName)
  • bytes (byte[]) — protocol buffer data bytes
  • messageName (String) — class that we want to serialize bytes to

Object — protocol buffer objects if class for @messageName has been found

boolean isMessageHasProtoClass(String messageName)
  • messageName (String) — checks wheaten TikTokLiveJava has class representation for certain protocol-buffer message name

boolean — false if class is not found

String toJson(Object obj)

Converts object to json

  • obj (Object) — any object

String — pretty formatted json

API/src/main/java/io/github/jwdeveloper/tiktok/api/mappers/LiveMapperHelper.java:29