Class GameLevelsRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Level>
-
- com.treescrub.spedran.requests.builders.game.GameLevelsRequest
-
public class GameLevelsRequest extends ResourceCollectionRequest<Level>
-
-
Constructor Summary
Constructors Constructor Description GameLevelsRequest(Game game)GameLevelsRequest(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GameLevelsRequestsortByName()Sorts the returned levels alphanumerically by name.GameLevelsRequestsortByPosition()Sorts the returned levels by the moderator defined position.GameLevelsRequestsortDirection(SortDirection direction)Sets the direction to sort the returned levels.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
sortByName
public GameLevelsRequest sortByName()
Sorts the returned levels alphanumerically by name.- Returns:
- this object
- See Also:
IdentifiableNamedResource.getName()
-
sortByPosition
public GameLevelsRequest sortByPosition()
Sorts the returned levels by the moderator defined position.- Returns:
- this object
-
sortDirection
public GameLevelsRequest sortDirection(SortDirection direction)
Sets the direction to sort the returned levels.- Parameters:
direction- the direction to sort, either ascending or descending- Returns:
- this object
-
-