C# Класс Hyves.Service.ListenersService

Represents the service APIs that allow access to information on Hyves listener (Who What Where).
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateListener ( HyvesListenerType type, string callback ) : Listener

Create a new listener for the ApiConsumer. This corresponds to the listener.create Hyves method.

DeleteListener ( string listenerId ) : bool

Deletes a listener for the ApiConsumer. This corresponds to the listener.create Hyves method.

GetAllListeners ( ) : Collection

Gets the desired listeners from the specified type. This corresponds to the listeners.getAll Hyves method.

GetListener ( string listenerId ) : Listener

Gets the desired information about the specified listener. This corresponds to the listeners.get Hyves method.

GetListeners ( Collection listenerIds ) : Collection

Gets the desired information about the specified listener. This corresponds to the listeners.get Hyves method.

GetListenersByType ( HyvesListenerType type ) : Collection

Gets the desired listeners from the specified type. This corresponds to the listeners.getByType Hyves method.

Приватные методы

Метод Описание
ListenersService ( HyvesSession session ) : System

Описание методов

CreateListener() публичный Метод

Create a new listener for the ApiConsumer. This corresponds to the listener.create Hyves method.
public CreateListener ( HyvesListenerType type, string callback ) : Listener
type HyvesListenerType Type of listener to create.
callback string Url to do the callback to.
Результат Listener

DeleteListener() публичный Метод

Deletes a listener for the ApiConsumer. This corresponds to the listener.create Hyves method.
public DeleteListener ( string listenerId ) : bool
listenerId string The requested listenerId.
Результат bool

GetAllListeners() публичный Метод

Gets the desired listeners from the specified type. This corresponds to the listeners.getAll Hyves method.
public GetAllListeners ( ) : Collection
Результат Collection

GetListener() публичный Метод

Gets the desired information about the specified listener. This corresponds to the listeners.get Hyves method.
public GetListener ( string listenerId ) : Listener
listenerId string The requested listenerId.
Результат Listener

GetListeners() публичный Метод

Gets the desired information about the specified listener. This corresponds to the listeners.get Hyves method.
public GetListeners ( Collection listenerIds ) : Collection
listenerIds Collection
Результат Collection

GetListenersByType() публичный Метод

Gets the desired listeners from the specified type. This corresponds to the listeners.getByType Hyves method.
public GetListenersByType ( HyvesListenerType type ) : Collection
type HyvesListenerType Type of listeners to retrieve.
Результат Collection