Club System
This commit is contained in:
@@ -72,6 +72,13 @@ class XenforoApiService {
|
||||
});
|
||||
}
|
||||
|
||||
public function createConversation( array $userIdList, string $title, string $message, bool $conversationOpen, bool $openInvite ): bool
|
||||
{
|
||||
$response = $this->post("conversations", data: ['recipient_ids' => $userIdList, 'title' => $title, 'message' => $message, 'open_invite' => $openInvite, 'conversation_open' => $conversationOpen] );
|
||||
|
||||
return $response['success'] ?? false;
|
||||
}
|
||||
|
||||
public function createCommentsThread( Entry $entry ): bool
|
||||
{
|
||||
if( !$entry->comments_thread_id || $entry->comments_thread_id <= 0 ){
|
||||
@@ -108,4 +115,10 @@ class XenforoApiService {
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function updateEntriesCount(int $entryCount, int $userId): bool
|
||||
{
|
||||
$response = $this->post("romhackplaza_entry/update_entry_count", data: ['count' => $entryCount, 'user_id' => $userId] );
|
||||
return $response['success'] ?? false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user