1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -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.listener.ChannelListener;
import org.yaaic.model.Broadcast; import org.yaaic.model.Broadcast;
/**
* A channel receiver for receiving channel updates
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public class ChannelReceiver extends BroadcastReceiver public class ChannelReceiver extends BroadcastReceiver
{ {
public static final String TAG = "Yaaic/ChannelReceiver"; public static final String TAG = "Yaaic/ChannelReceiver";
@ -35,7 +40,7 @@ public class ChannelReceiver extends BroadcastReceiver
private int serverId; private int serverId;
/** /**
* Create a new channel reciever * Create a new channel receiver
* *
* @param serverId Only listen on channels of this server * @param serverId Only listen on channels of this server
* @param listener * @param listener
@ -46,6 +51,12 @@ public class ChannelReceiver extends BroadcastReceiver
this.serverId = serverId; this.serverId = serverId;
} }
/**
* On receive broadcast
*
* @param context
* @param intent
*/
@Override @Override
public void onReceive(Context context, Intent intent) public void onReceive(Context context, Intent intent)
{ {

View File

@ -26,15 +26,28 @@ import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
/**
* A server receiver for receiving server updates
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public class ServerReceiver extends BroadcastReceiver public class ServerReceiver extends BroadcastReceiver
{ {
private ServerListener listener; private ServerListener listener;
/**
* Create a new server receiver
*
* @param listener
*/
public ServerReceiver(ServerListener listener) public ServerReceiver(ServerListener listener)
{ {
this.listener = listener; this.listener = listener;
} }
/**
* On receive broadcast
*/
@Override @Override
public void onReceive(Context context, Intent intent) public void onReceive(Context context, Intent intent)
{ {