1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-25 18:32:15 -05:00

Some more documentation

This commit is contained in:
Sebastian Kaspari 2010-03-13 16:54:48 +01:00
parent 1bce5e1fc9
commit f038ad3c39
2 changed files with 25 additions and 1 deletions

View File

@ -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)
{

View File

@ -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)
{