Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TradeOffers.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function cancelTradeById($tradeOfferId)

/**
* Shortcut for creating a new trade offer with a user.
* @param mixed $accountId Account ID of the user you want to create a trade with.
* @param string $accountId Account ID of the user you want to create a trade with.
* @return Trade
*/
public function createTrade($accountId)
Expand Down
16 changes: 15 additions & 1 deletion TradeOffers/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ public function jsonSerialize()
];
}

/**
* @param int $appId
* @param int $contextId
* @param string $assetId
* @param int $amount
* @return bool
*/
public function addMyItem($appId, $contextId, $assetId, $amount = 1)
{
$asset = new TradeAsset($appId, $contextId, $assetId, $amount);
Expand All @@ -54,6 +61,13 @@ public function addMyItemByAsset(TradeAsset $asset)
return $this->me->addItem($asset);
}

/**
* @param int $appId
* @param int $contextId
* @param string $assetId
* @param int $amount
* @return bool
*/
public function addOtherItem($appId, $contextId, $assetId, $amount = 1)
{
$asset = new TradeAsset($appId, $contextId, $assetId, $amount);
Expand Down Expand Up @@ -133,7 +147,7 @@ public function getMessage()
}

/**
* @param string $message
* @param string $message Max length is 128 characters
*/
public function setMessage($message)
{
Expand Down