@@ 9-38 (lines=30) @@ | ||
6 | use Illuminate\Queue\SerializesModels; |
|
7 | use LeadThread\Viddler\Upload\Models\Viddler; |
|
8 | ||
9 | class ViddlerError implements ShouldBroadcast |
|
10 | { |
|
11 | use SerializesModels; |
|
12 | ||
13 | public $model; |
|
14 | public $error; |
|
15 | ||
16 | /** |
|
17 | * Create a new event instance. |
|
18 | * |
|
19 | * @param Viddler $model |
|
20 | * @param string $error |
|
21 | * @return void |
|
22 | */ |
|
23 | public function __construct(Viddler $model, $error) |
|
24 | { |
|
25 | $this->model = $model; |
|
26 | $this->error = $error; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Get the channels the event should be broadcast on. |
|
31 | * |
|
32 | * @return string[] |
|
33 | */ |
|
34 | public function broadcastOn() |
|
35 | { |
|
36 | return ['viddler.'.$this->model->id]; |
|
37 | } |
|
38 | } |
|
39 |
@@ 9-35 (lines=27) @@ | ||
6 | use Illuminate\Queue\SerializesModels; |
|
7 | use LeadThread\Viddler\Upload\Models\Viddler; |
|
8 | ||
9 | class ViddlerFinished implements ShouldBroadcast |
|
10 | { |
|
11 | use SerializesModels; |
|
12 | ||
13 | public $model; |
|
14 | ||
15 | /** |
|
16 | * Create a new event instance. |
|
17 | * |
|
18 | * @param Viddler $model |
|
19 | * @return void |
|
20 | */ |
|
21 | public function __construct(Viddler $model) |
|
22 | { |
|
23 | $this->model = $model; |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * Get the channels the event should be broadcast on. |
|
28 | * |
|
29 | * @return string[] |
|
30 | */ |
|
31 | public function broadcastOn() |
|
32 | { |
|
33 | return ['viddler.'.$this->model->id]; |
|
34 | } |
|
35 | } |
|
36 |
@@ 9-35 (lines=27) @@ | ||
6 | use Illuminate\Queue\SerializesModels; |
|
7 | use LeadThread\Viddler\Upload\Models\Viddler; |
|
8 | ||
9 | class ViddlerProgress implements ShouldBroadcast |
|
10 | { |
|
11 | use SerializesModels; |
|
12 | ||
13 | public $model; |
|
14 | ||
15 | /** |
|
16 | * Create a new event instance. |
|
17 | * |
|
18 | * @param Viddler $model |
|
19 | * @return void |
|
20 | */ |
|
21 | public function __construct(Viddler $model) |
|
22 | { |
|
23 | $this->model = $model; |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * Get the channels the event should be broadcast on. |
|
28 | * |
|
29 | * @return string[] |
|
30 | */ |
|
31 | public function broadcastOn() |
|
32 | { |
|
33 | return ['viddler.'.$this->model->id]; |
|
34 | } |
|
35 | } |
|
36 |