Test application

This commit is contained in:
JW
2023-08-16 19:28:42 +02:00
parent f1b143fa06
commit b1c7828a2a
15 changed files with 134 additions and 155 deletions

View File

@@ -11,25 +11,6 @@
<artifactId>API</artifactId>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>

View File

@@ -2,9 +2,9 @@ package io.github.jwdeveloper.tiktok.live;
public interface LiveClient {
void run();
void connect();
void stop();
void disconnect();
LiveMeta getMeta();
LiveRoomInfo getRoomInfo();
}

View File

@@ -1,9 +0,0 @@
package io.github.jwdeveloper.tiktok.live;
public interface LiveMeta
{
int getViewersCount();
String getRoomId();
String getUserName();
}

View File

@@ -1,9 +1,9 @@
package io.github.jwdeveloper.tiktok.live;
import lombok.Data;
@Data
public class LiveRoomInfo
public interface LiveRoomInfo
{
private int status;
int getViewersCount();
String getRoomId();
String getUserName();
}

View File

@@ -0,0 +1,9 @@
package io.github.jwdeveloper.tiktok.live;
import lombok.Data;
@Data
public class LiveRoomMeta
{
private int status;
}

View File

@@ -3,7 +3,7 @@ package io.github.jwdeveloper.tiktok.live;
import lombok.Data;
@Data
public class TikTokLiveMeta implements LiveMeta
public class TikTokRoomInfo implements LiveRoomInfo
{
private int viewersCount;