| 1 |
package org.astrogrid.samp; |
| 2 |
|
| 3 |
/** |
| 4 |
* Describes an application registered with a SAMP hub. |
| 5 |
* |
| 6 |
* @author Mark Taylor |
| 7 |
* @since 14 Jul 2008 |
| 8 |
*/ |
| 9 |
public interface Client { |
| 10 |
|
| 11 |
/** |
| 12 |
* Returns the public identifier for this client. |
| 13 |
* |
| 14 |
* @return public id |
| 15 |
*/ |
| 16 |
String getId(); |
| 17 |
|
| 18 |
/** |
| 19 |
* Returns the currently declared metadata for this client, if any. |
| 20 |
* |
| 21 |
* @return metadata object; may be null |
| 22 |
*/ |
| 23 |
Metadata getMetadata(); |
| 24 |
|
| 25 |
/** |
| 26 |
* Returns the currently declared subscriptions for this client, if any. |
| 27 |
* |
| 28 |
* @return subscriptions object; may be null |
| 29 |
*/ |
| 30 |
Subscriptions getSubscriptions(); |
| 31 |
} |