mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
- Implementation on all features in `clientSettings` - Code optimization - More detail exceptions - Downloading gifts
22 lines
514 B
Java
22 lines
514 B
Java
package io.github.jwdeveloper.tiktok;
|
|
|
|
import io.github.jwdeveloper.tiktok.live.ConnectionState;
|
|
import io.github.jwdeveloper.tiktok.live.LiveRoomInfo;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class TikTokRoomInfo implements LiveRoomInfo
|
|
{
|
|
private int viewersCount;
|
|
|
|
private String roomId;
|
|
|
|
private String userName;
|
|
private ConnectionState connectionState = ConnectionState.DISCONNECTED;
|
|
|
|
public boolean hasConnectionState(ConnectionState state)
|
|
{
|
|
return connectionState == state;
|
|
}
|
|
}
|