Package com.treescrub.spedran.data
Class Guest
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.Guest
-
public class Guest extends Resource
A guest runner. Can be entered as a runner in a run by other users, but has no account.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()Gets the username for this guest.RunsRequestgetRuns()Gets a newRunsRequestbuilder object to request all the runs that this guest participated in.inthashCode()StringtoString()
-
-
-
Method Detail
-
getRuns
public RunsRequest getRuns()
Gets a newRunsRequestbuilder object to request all the runs that this guest participated in.- Returns:
- a
RunsRequestbuilder
-
getName
public String getName()
Gets the username for this guest.- Returns:
- the name
-
-