RemoteUpstreamService
in package
Uses
TNCRequest
Class RemoteUpstreamService
Table of Contents
- $configService : ConfigService
- $eventWrapperRequest : EventWrapperRequest
- $interfaceService : InterfaceService
- $remoteStreamService : RemoteStreamService
- __construct() : mixed
- RemoteUpstreamService constructor.
- broadcastEvent() : void
- clientService() : IClientService
- confirmEvent() : void
- doRequest() : void
- getEventsByToken() : array<string|int, EventWrapper>
- retrieveJson() : array<string|int, mixed>
- setMaxDownloadSize() : mixed
- generationClientOptions() : mixed
- useClient() : IResponse
Properties
$configService
private
ConfigService
$configService
$eventWrapperRequest
private
EventWrapperRequest
$eventWrapperRequest
$interfaceService
private
InterfaceService
$interfaceService
$remoteStreamService
private
RemoteStreamService
$remoteStreamService
Methods
__construct()
RemoteUpstreamService constructor.
public
__construct(EventWrapperRequest $eventWrapperRequest, RemoteStreamService $remoteStreamService, InterfaceService $interfaceService, ConfigService $configService) : mixed
Parameters
- $eventWrapperRequest : EventWrapperRequest
- $remoteStreamService : RemoteStreamService
- $interfaceService : InterfaceService
- $configService : ConfigService
Return values
mixed —broadcastEvent()
public
broadcastEvent(EventWrapper $wrapper) : void
Parameters
- $wrapper : EventWrapper
Tags
Return values
void —clientService()
public
clientService() : IClientService
Return values
IClientService —confirmEvent()
public
confirmEvent(FederatedEvent $event) : void
Parameters
- $event : FederatedEvent
Tags
Return values
void —doRequest()
public
doRequest(NCRequest $request[, bool $exceptionOnIssue = true ]) : void
Parameters
- $request : NCRequest
- $exceptionOnIssue : bool = true
Tags
Return values
void —getEventsByToken()
public
getEventsByToken(string $token) : array<string|int, EventWrapper>
Parameters
- $token : string
Return values
array<string|int, EventWrapper> —retrieveJson()
public
retrieveJson(NCRequest $request) : array<string|int, mixed>
Parameters
- $request : NCRequest
Tags
Return values
array<string|int, mixed> —setMaxDownloadSize()
public
setMaxDownloadSize(int $size) : mixed
Parameters
- $size : int
Return values
mixed —generationClientOptions()
private
generationClientOptions(NCRequest $request) : mixed
Parameters
- $request : NCRequest
Return values
mixed —useClient()
private
useClient(NCRequest $request) : IResponse
Parameters
- $request : NCRequest