Klasse ShoppingBasket

java.lang.Object
org.codeability.sharing.plugins.api.ShoppingBasket

public class ShoppingBasket extends Object
represents a collection of exercise items. It is combined with some basic user information, to identify the user by its email.
Autor:
Michael Breu
  • Felddetails

    • userInfo

      public ShoppingBasket.UserInfo userInfo
      the user information
    • exerciseInfo

      public SearchResultDTO[] exerciseInfo
      the list of selected exercises in the basket.
    • tokenValidUntil

      public long tokenValidUntil
      token valid until (msecs since 1.1.1970)
  • Konstruktordetails

    • ShoppingBasket

      @Deprecated public ShoppingBasket(ShoppingBasket.UserInfo userInfo, SearchResultDTO[] exerciseInfo)
      Veraltet.
      just a temporary fix, to make constuctor downward compatible. Should be fixed in development branch of sharing plattform.
      Parameter:
      userInfo - the user info
      exerciseInfo - the exercise infos
    • ShoppingBasket

      public ShoppingBasket(ShoppingBasket.UserInfo userInfo, SearchResultDTO[] exerciseInfo, long tokenValidUntil)
      Constructor of the shopping basket
      Parameter:
      userInfo - the user info
      exerciseInfo - the list of exercises
      tokenValidUntil - the validity of the basket
    • ShoppingBasket

      public ShoppingBasket()
      empty constructor for JSON.