@@ 551-557 (lines=7) @@ | ||
548 | * @param Item|string $item an Item model or itemId |
|
549 | * @return void |
|
550 | */ |
|
551 | public function deleteItem($item) |
|
552 | { |
|
553 | $itemId = $item instanceof Item ? $item->getItemId() : $item; |
|
554 | $this->connect('DELETE', new Route(self::ITEM_ROUTE, [ |
|
555 | 'itemId' => $itemId |
|
556 | ])); |
|
557 | } |
|
558 | ||
559 | /** |
|
560 | * Resets an item's score to zero |
|
@@ 565-571 (lines=7) @@ | ||
562 | * @param Item|string $item an Item model or itemId |
|
563 | * @return void |
|
564 | */ |
|
565 | public function resetItemScore($item) |
|
566 | { |
|
567 | $itemId = $item instanceof Item ? $item->getItemId() : $item; |
|
568 | $this->connect('PUT', new Route(self::ITEM_RESET_SCORE_ROUTE, [ |
|
569 | 'itemId' => $itemId |
|
570 | ])); |
|
571 | } |
|
572 | ||
573 | /** |
|
574 | * Returns a partial model of certain user defined by its userId |