|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.udp.UdpGroupStatusFactory
public class UdpGroupStatusFactory
A factory for GroupStatus
objects.
Method Summary | |
---|---|
java.util.List<GroupStatus> |
getGroupStatus(long animeId)
Returns a list of the group status for the anime with the given anime Id. |
java.util.List<GroupStatus> |
getGroupStatus(long animeId,
GroupStatusState state)
Returns a list of the group status for the anime with the given anime Id and the given state. |
static UdpGroupStatusFactory |
getInstance(UdpConnection conn)
Returns an instance of this class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UdpGroupStatusFactory getInstance(UdpConnection conn)
conn
- The connection.
java.lang.IllegalArgumentException
- If the connection is null
.public java.util.List<GroupStatus> getGroupStatus(long animeId) throws UdpConnectionException, AniDbException
Returns a list of the group status for the anime with the given anime Id.
animeId
- The anime Id.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_GROUPS_FOUND
,
UdpReturnCodes.NO_SUCH_ANIME
public java.util.List<GroupStatus> getGroupStatus(long animeId, GroupStatusState state) throws UdpConnectionException, AniDbException
Returns a list of the group status for the anime with the given anime Id and the given state.
animeId
- The anime Id.state
- The state.
java.lang.IllegalArgumentException
- If the state is null
.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_GROUPS_FOUND
,
UdpReturnCodes.NO_SUCH_ANIME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |