Class RunPlayersRequest


  • public class RunPlayersRequest
    extends ModifyResourceRequest<Run>
    A request builder to set the players that participated in a Run.
    Players will maintain the order that they were added.
    Duplicate users/guests will be ignored.
    • Constructor Detail

      • RunPlayersRequest

        public RunPlayersRequest​(String id)
      • RunPlayersRequest

        public RunPlayersRequest​(Run run)
    • Method Detail

      • addUser

        public RunPlayersRequest addUser​(User user)
        Adds a User to the players that will be set on the Run.
        Parameters:
        user - the user to add to the list of players
        Returns:
        this builder object
      • addUser

        public RunPlayersRequest addUser​(String userId)
        Adds a User to the players that will be set on the Run.
        Parameters:
        userId - the ID of the user to add to the list of players
        Returns:
        this builder object
      • addGuest

        public RunPlayersRequest addGuest​(Guest guest)
        Adds a Guest to the players that will be set on the Run.
        Parameters:
        guest - the guest to add to the list of players
        Returns:
        this builder object
      • addGuest

        public RunPlayersRequest addGuest​(String guestName)
        Adds a Guest to the players that will be set on the Run.
        Parameters:
        guestName - the name of the guest to add to the list of players
        Returns:
        this builder object