Skip to content

Commit

Permalink
网络直播 (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
power721 authored Jan 18, 2025
1 parent da8c17f commit f6598a7
Show file tree
Hide file tree
Showing 59 changed files with 2,458 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class BilibiliCategories {
private List<BilibiliCategoryList> data;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class BilibiliCategoriesResponse extends BilibiliResponse<BilibiliCategories> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class BilibiliCategory {
private String id;
private String name;
private String pic;
private String parent_id;
private String parent_name;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class BilibiliCategoryList {
private int id;
private String name;
private List<BilibiliCategory> list;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class BilibiliResponse<T> {
private int code;
private T data;
private String message;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class BilibiliRoomInfo {
private int roomid;
private String title;
private String uname;
private String cover;
private String area_name;
private int online;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class BilibiliRoomList {
private List<BilibiliRoomInfo> list;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class BilibiliRoomPlayInfo {
private PlayInfo playurl_info;

@Data
public static class PlayInfo {
private PlayUrl playurl;
}

@Data
public static class PlayUrl {
private List<QnDesc> g_qn_desc;
private List<Stream> stream;
}

@Data
public static class QnDesc {
private String desc;
private int qn;
}

@Data
public static class Stream {
private String protocol_name;
private List<Format> format;
}

@Data
public static class Format {
private String format_name;
private List<Codec> codec;
}

@Data
public static class Codec {
private String base_url;
private String codec_name;
private int current_qn;
private List<UrlInfo> url_info;
}

@Data
public static class UrlInfo {
private String host;
private String extra;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class BilibiliRoomPlayResponse extends BilibiliResponse<BilibiliRoomPlayInfo> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class BilibiliRoomResponse extends BilibiliResponse<BilibiliRoomInfo> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class BilibiliRoomsResponse extends BilibiliResponse<BilibiliRoomList> {
}
10 changes: 10 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcCategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class CcCategory {
private String name;
private String gametype;
private String cover;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class CcCategoryInfo {
private CcCategoryList category_info;
}
10 changes: 10 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcCategoryList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class CcCategoryList {
private List<CcCategory> game_list;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class CcCategoryResponse extends CcResponse<CcCategoryInfo> {
}
15 changes: 15 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcPlayInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class CcPlayInfo {
private List<String> cdn_list;
private List<Integer> vbr_list;
private Map<String, Integer> tcvbr_list;
private Map<String, String> vbrname_mapping;
private String videourl;
}
10 changes: 10 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class CcResponse<T> {
private int code;
private T data;
private String msg;
}
14 changes: 14 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcRoomInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class CcRoomInfo {
private String cuteid;
private String title;
private String poster;
private String nickname;
private String gamename;
private String sharefile;
private int visitor;
}
10 changes: 10 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/CcRoomList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class CcRoomList {
private List<CcRoomInfo> lives;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package cn.har01d.alist_tvbox.live.model;

import java.util.List;

public class CcRoomsResponse extends CcResponse<List<CcRoomInfo>> {
}
11 changes: 11 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/DouyuCategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class DouyuCategory {
private int cate2Id;
private String cate2Name;
private String shortName;
private String pic;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class DouyuCategoryList {
private List<DouyuCategory> cate2Info;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class DouyuCategoryResponse extends DouyuResponse<DouyuCategoryList> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class DouyuLiveStream {
private List<CdnsWithName> cdnsWithName;
private List<BitRate> multirates;

@Data
public static class CdnsWithName {
private String name;
private String cdn;
}

@Data
public static class BitRate {
private String name;
private int rate;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class DouyuResponse<T> {
private int code;
private T data;
}
12 changes: 12 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/DouyuRoom.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class DouyuRoom {
private String room_name;
private String owner_name;
private String room_thumb;
private String cate_name;
private int online;
}
15 changes: 15 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/DouyuRoomInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class DouyuRoomInfo {
private int rid;
private int isLive;
private int roomId;
private String cateName;
private String roomName;
private String nickname;
private String roomSrc;
private String hn;
}
11 changes: 11 additions & 0 deletions src/main/java/cn/har01d/alist_tvbox/live/model/DouyuRoomList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.List;

@Data
public class DouyuRoomList {
private List<DouyuRoomInfo> list;
private int pageCount;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class DouyuRoomResponse extends DouyuResponse<DouyuRoom> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class DouyuRoomsResponse extends DouyuResponse<DouyuRoomList> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package cn.har01d.alist_tvbox.live.model;

public class DouyuStreamResponse extends DouyuResponse<DouyuLiveStream> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

@Data
public class HuyaCategory {
private String gid;
private String gameFullName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cn.har01d.alist_tvbox.live.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class HuyaCategoryList {
private List<HuyaCategory> gameList = new ArrayList<>();
}
Loading

0 comments on commit f6598a7

Please sign in to comment.