PHP Class App\Http\Controllers\API\InteractionController

Inheritance: extends Controller
Show file Open project: phanan/koel

Public Methods

Method Description
batchLike ( BatchInteractionRequest $request ) : Illuminate\Http\JsonResponse Like several songs at once as the currently authenticated user.
batchUnlike ( BatchInteractionRequest $request ) : Illuminate\Http\JsonResponse Unlike several songs at once as the currently authenticated user.
like ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse Like or unlike a song as the currently authenticated user.
play ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse Increase a song's play count as the currently authenticated user.

Method Details

batchLike() public method

Like several songs at once as the currently authenticated user.
public batchLike ( BatchInteractionRequest $request ) : Illuminate\Http\JsonResponse
$request App\Http\Requests\API\BatchInteractionRequest
return Illuminate\Http\JsonResponse

batchUnlike() public method

Unlike several songs at once as the currently authenticated user.
public batchUnlike ( BatchInteractionRequest $request ) : Illuminate\Http\JsonResponse
$request App\Http\Requests\API\BatchInteractionRequest
return Illuminate\Http\JsonResponse

like() public method

Like or unlike a song as the currently authenticated user.
public like ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
return Illuminate\Http\JsonResponse

play() public method

Increase a song's play count as the currently authenticated user.
public play ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
return Illuminate\Http\JsonResponse