Card Binder Service #496
Labels
No labels
blocked
duplicate
needs
approval
needs
criteria
needs
estimate
needs
tests
question
type
admin
type
alert
type
bug
type
change
type
defect
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#497 Binder View command
External/card-drop
#495 Card Binder Schema Changes
External/card-drop
#499 Inventory Service AvailableQuantity function
External/card-drop
Reference
External/card-drop#496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #281
Story Points:
SO THAT I can easily call the database from the commands to get and view binder information
Acceptance Criteria
GIVEN I am a developer
WHEN I call
BinderHelper.GetPage(UserId: string, PageNumber: number)THEN I will receive an array of 9 pages for the user's binder page specified
GIVEN I am a developer
WHEN I call
BinderHelper.GetPageAND the slot or page is empty
THEN I will receive a
nullin its placeGIVEN I am a developer
WHEN I call
BinderHelper.PlaceCard(UserId: string, CardNumber: string, PageNumber: number, Index: number)THEN the card will be placed and saved to the database
AND the Inventory instance will be marked as InBinder TRUE
GIVEN I am a developer
WHEN I call
BinderHelper.PlaceCardAND the index is already taken
THEN I will receive an error returned
GIVEN I am a developer
WHEN I call
BinderHelper.RemoveCard(UserId: string, PageNumber: number, Index: number)THEN the card will be empied from that slot
AND the Inventory instance will be marked as InBinder FALSE (as long as its not in another slot also)
GIVEN I am a developer
WHEN I call
BinderHelper.RemoveCardAND the slot is empty
THEN I will receive an error returned
GIVEN I am a developer
WHEN I call `BinderHelper.RenderPageEmbed(UserId: string, PageNumber: number)
THEN I will receive the discord embed object with the page
AND the rendered image attachment
Subtasks
BinderHelper.GetPagefunctionBinderHelper.PlaceCardfunctionBinderHelper.RemoveCardfunctionBinderHelper.RenderPageEmbedfunctionNotes
/BINDER_EMPTY.png)