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

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,25 @@
package com.example.myapplication.data;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import java.util.List;
@Dao
public interface ServerDao {
@Query("SELECT * FROM servers ORDER BY rowid")
List<ServerEntity> getServers();
@Query("SELECT COUNT(*) FROM servers")
int getServerCount();
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertServer(ServerEntity server);
@Query("DELETE FROM servers WHERE (id = 'server_1' AND host = 'xying.local') OR (id = 'server_2' AND host = 'film.example.com')")
void deleteLegacySampleServers();
@Query("DELETE FROM servers WHERE id = :serverId")
void deleteServer(String serverId);
}