mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 12:22:21 -05:00
Some more documentation
This commit is contained in:
parent
1bce5e1fc9
commit
f038ad3c39
@ -27,6 +27,11 @@ import android.content.Intent;
|
||||
import org.yaaic.listener.ChannelListener;
|
||||
import org.yaaic.model.Broadcast;
|
||||
|
||||
/**
|
||||
* A channel receiver for receiving channel updates
|
||||
*
|
||||
* @author Sebastian Kaspari <sebastian@yaaic.org>
|
||||
*/
|
||||
public class ChannelReceiver extends BroadcastReceiver
|
||||
{
|
||||
public static final String TAG = "Yaaic/ChannelReceiver";
|
||||
@ -35,7 +40,7 @@ public class ChannelReceiver extends BroadcastReceiver
|
||||
private int serverId;
|
||||
|
||||
/**
|
||||
* Create a new channel reciever
|
||||
* Create a new channel receiver
|
||||
*
|
||||
* @param serverId Only listen on channels of this server
|
||||
* @param listener
|
||||
@ -46,6 +51,12 @@ public class ChannelReceiver extends BroadcastReceiver
|
||||
this.serverId = serverId;
|
||||
}
|
||||
|
||||
/**
|
||||
* On receive broadcast
|
||||
*
|
||||
* @param context
|
||||
* @param intent
|
||||
*/
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent)
|
||||
{
|
||||
|
@ -26,15 +26,28 @@ import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* A server receiver for receiving server updates
|
||||
*
|
||||
* @author Sebastian Kaspari <sebastian@yaaic.org>
|
||||
*/
|
||||
public class ServerReceiver extends BroadcastReceiver
|
||||
{
|
||||
private ServerListener listener;
|
||||
|
||||
/**
|
||||
* Create a new server receiver
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
public ServerReceiver(ServerListener listener)
|
||||
{
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
/**
|
||||
* On receive broadcast
|
||||
*/
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user