mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Test application
This commit is contained in:
19
API/pom.xml
19
API/pom.xml
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package io.github.jwdeveloper.tiktok.live;
|
||||
|
||||
public interface LiveMeta
|
||||
{
|
||||
int getViewersCount();
|
||||
|
||||
String getRoomId();
|
||||
String getUserName();
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package io.github.jwdeveloper.tiktok.live;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LiveRoomMeta
|
||||
{
|
||||
private int status;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user