mirror of
https://github.com/Geniusay/ChopperBot.git
synced 2026-09-06 07:51:56 +08:00
更改项目模块名称,整合b站爬虫
This commit is contained in:
94
chopperbot-common/src/main/java/org/example/bean/Live.java
Normal file
94
chopperbot-common/src/main/java/org/example/bean/Live.java
Normal file
@@ -0,0 +1,94 @@
|
||||
package org.example.bean;
|
||||
|
||||
/**
|
||||
* @author Genius
|
||||
* @date 2023/07/18 22:24
|
||||
**/
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 热门直播抽象类
|
||||
*/
|
||||
public abstract class Live implements Serializable {
|
||||
private int watcherNum; //直播间观众数目
|
||||
private int liveId; //直播间ID
|
||||
private String liveName; //直播间名字
|
||||
|
||||
private String liver; //主播
|
||||
private String description; //直播间简介
|
||||
|
||||
private String platform;
|
||||
|
||||
public Live(int watcherNum, int liveId, String liveName, String description) {
|
||||
this.watcherNum = watcherNum;
|
||||
this.liveId = liveId;
|
||||
this.liveName = liveName;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Live(int watcherNum, int liveId, String liveName, String liver, String description) {
|
||||
this.watcherNum = watcherNum;
|
||||
this.liveId = liveId;
|
||||
this.liveName = liveName;
|
||||
this.liver = liver;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Live(int watcherNum, int liveId, String liveName, String liver, String description, String platform) {
|
||||
this.watcherNum = watcherNum;
|
||||
this.liveId = liveId;
|
||||
this.liveName = liveName;
|
||||
this.liver = liver;
|
||||
this.description = description;
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public int getWatcherNum() {
|
||||
return watcherNum;
|
||||
}
|
||||
|
||||
public void setWatcherNum(int watcherNum) {
|
||||
this.watcherNum = watcherNum;
|
||||
}
|
||||
|
||||
public int getLiveId() {
|
||||
return liveId;
|
||||
}
|
||||
|
||||
public void setLiveId(int liveId) {
|
||||
this.liveId = liveId;
|
||||
}
|
||||
|
||||
public String getLiveName() {
|
||||
return liveName;
|
||||
}
|
||||
|
||||
public void setLiveName(String liveName) {
|
||||
this.liveName = liveName;
|
||||
}
|
||||
|
||||
public String getLiver() {
|
||||
return liver;
|
||||
}
|
||||
|
||||
public void setLiver(String liver) {
|
||||
this.liver = liver;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getPlatform() {
|
||||
return platform;
|
||||
}
|
||||
|
||||
public void setPlatform(String platform) {
|
||||
this.platform = platform;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user