|
void | OnChatUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IChatEvent evt) |
| Called when a chat update is received. Implementing this method is optional. More...
|
|
void | OnContainerUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IContainerEvent evt) |
| Called when a container update is received. Implementing this method is optional. More...
|
|
void | OnDirectoryUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IDirectoryEvent evt) |
| Called when a directory update is received. Implementing this method is optional. More...
|
|
void | OnJsonUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IJsonEvent evt) |
| Called when a json update is received. Implementing this method is optional. More...
|
|
void | OnNewsUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.INewsEvent evt) |
| Called when a news headline update is received. Implementing this method is optional. More...
|
|
void | OnPageUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IPageEvent evt) |
| Called when a page update is received. Implementing this method is optional. More...
|
|
void | OnPermissionUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IPermissionEvent evt) |
| Called when a permission update is received. Implementing this method is optional. More...
|
|
void | OnRecordType2Update (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IRecordType2Event evt) |
| Called when an update to type 2 data in a record is received. Implementing this method is optional. More...
|
|
void | OnRecordType3Update (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IRecordType3Event evt) |
| Called when an update to type 3 data in a record is received. Implementing this method is optional. More...
|
|
void | OnRecordUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IRecordType1Event evt) |
| Called when an update to type 1 data in a record is received. Implementing this method is optional. More...
|
|
void | OnStoryUpdate (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.IStoryEvent evt) |
| Called when a news story update is received. Implementing this method is optional. More...
|
|
void | OnSubscriptionError (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.ISubscriptionErrorEvent evt) |
| Called when there is an error in a subscription. More...
|
|
void | OnSubscriptionStatus (Caplin.StreamLink.ISubscription subscription, Caplin.StreamLink.ISubscriptionStatusEvent evt) |
| Called when there is a change in the status of a subscription. More...
|
|
Interface for receiving updates to subscribed data from the Liberator.
Your application should implement this interface.
A trivial implementation of SubscriptionListener would be:
using Caplin.StreamLink;
using System;
namespace caplin.streamlink.examplesnippets.listener
{
public class SubscriptionListenerSnippet
{
public SubscriptionListenerSnippet(IStreamLink streamLink)
{
streamLink.Subscribe("/SUBJECT", new ExampleSubscriptionListener());
}
class ExampleSubscriptionListener : ISubscriptionListener
{
ISubscriptionStatusEvent evt)
{
Console.WriteLine(evt);
}
ISubscriptionErrorEvent evt)
{
Console.WriteLine(evt);
}
public void OnStoryUpdate(ISubscription subscription, IStoryEvent evt)
{
Console.WriteLine(evt);
}
public void OnRecordUpdate(ISubscription subscription, IRecordType1Event evt)
{
Console.WriteLine(evt);
}
IRecordType3Event evt)
{
Console.WriteLine(evt);
}
IRecordType2Event evt)
{
Console.WriteLine(evt);
}
IPermissionEvent evt)
{
Console.WriteLine(evt);
}
public void OnNewsUpdate(ISubscription subscription, INewsEvent evt)
{
Console.WriteLine(evt);
}
IDirectoryEvent evt)
{
Console.WriteLine(evt);
}
IContainerEvent evt)
{
Console.WriteLine(evt);
}
public void OnChatUpdate(ISubscription subscription, IChatEvent evt)
{
Console.WriteLine(evt);
}
public void OnPageUpdate(ISubscription subscription, IPageEvent evt)
{
Console.WriteLine(evt);
}
public void OnJsonUpdate(ISubscription subscription, IJsonEvent evt)
{
Console.WriteLine(evt);
}
}
}
}