java.lang.Object
org.codeability.sharing.plugins.api.ShoppingBasket
represents a collection of exercise items.
It is combined with some basic user information, to identify the user by its email.
- Author:
- Michael Breu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classinfos about the user that invoked this action -
Field Summary
FieldsModifier and TypeFieldDescriptionthe list of selected exercises in the basket.longtoken valid until (msecs since 1.1.1970)the user information -
Constructor Summary
ConstructorsConstructorDescriptionempty constructor for JSON.ShoppingBasket(ShoppingBasket.UserInfo userInfo, SearchResultDTO[] exerciseInfo) Deprecated.ShoppingBasket(ShoppingBasket.UserInfo userInfo, SearchResultDTO[] exerciseInfo, long tokenValidUntil) Constructor of the shopping basket -
Method Summary
-
Field Details
-
userInfo
the user information -
exerciseInfo
the list of selected exercises in the basket. -
tokenValidUntil
public long tokenValidUntiltoken valid until (msecs since 1.1.1970)
-
-
Constructor Details
-
ShoppingBasket
Deprecated.just a temporary fix, to make constuctor downward compatible. Should be fixed in development branch of sharing plattform.- Parameters:
userInfo- the user infoexerciseInfo- the exercise infos
-
ShoppingBasket
public ShoppingBasket(ShoppingBasket.UserInfo userInfo, SearchResultDTO[] exerciseInfo, long tokenValidUntil) Constructor of the shopping basket- Parameters:
userInfo- the user infoexerciseInfo- the list of exercisestokenValidUntil- the validity of the basket
-
ShoppingBasket
public ShoppingBasket()empty constructor for JSON.
-