播放器首次提交(测试版本)

This commit is contained in:
zhengcs committed 2026-08-25 18:04:56 +08:00
1 parent 27909cb061
commit 668a4f8274
74 files changed
+9836

No files matched your search

@@ -0,0 +1,65 @@
package com.example.myapplication.data;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity(tableName = "servers")
public class ServerEntity {
@PrimaryKey
@NonNull
public String id;
public String name;
public String host;
public String basePath;
public String port;
public String username;
public String password;
public String note;
public String accessToken;
public String userId;
public String iconUrl;
@Ignore
public ServerEntity(
String id,
String name,
String host,
String basePath,
String port,
String username,
String password,
String note,
String accessToken,
String userId
) {
this(id, name, host, basePath, port, username, password, note, accessToken, userId, "");
}
public ServerEntity(
String id,
String name,
String host,
String basePath,
String port,
String username,
String password,
String note,
String accessToken,
String userId,
String iconUrl
) {
this.id = id;
this.name = name;
this.host = host;
this.basePath = basePath;
this.port = port;
this.username = username;
this.password = password;
this.note = note;
this.accessToken = accessToken;
this.userId = userId;
this.iconUrl = iconUrl == null ? "" : iconUrl;
}
}