mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 19:02:17 -05:00
Database: Removed getChannels(), Moved getChannelsById() -> getChannelsByServerId()
This commit is contained in:
parent
206d152981
commit
c20de9fbd2
@ -308,12 +308,14 @@ public class Database extends SQLiteOpenHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all channels
|
* Get all (auto-join) channels of a server
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Cursor getChannels()
|
public Cursor getChannels(int serverId)
|
||||||
{
|
{
|
||||||
|
// XXX: Should no return a cursor but the populated objects
|
||||||
|
|
||||||
return this.getReadableDatabase().query(
|
return this.getReadableDatabase().query(
|
||||||
ChannelConstants.TABLE_NAME,
|
ChannelConstants.TABLE_NAME,
|
||||||
ChannelConstants.ALL,
|
ChannelConstants.ALL,
|
||||||
@ -331,8 +333,10 @@ public class Database extends SQLiteOpenHelper
|
|||||||
* @param server Unique id of server
|
* @param server Unique id of server
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Cursor getChannelsById(int serverId)
|
public Cursor getChannelsByServerId(int serverId)
|
||||||
{
|
{
|
||||||
|
// XXX: Should no return a cursor but the populated objects
|
||||||
|
|
||||||
return this.getReadableDatabase().query(
|
return this.getReadableDatabase().query(
|
||||||
ChannelConstants.TABLE_NAME,
|
ChannelConstants.TABLE_NAME,
|
||||||
ChannelConstants.ALL,
|
ChannelConstants.ALL,
|
||||||
|
Loading…
Reference in New Issue
Block a user