Documentation

Mistake on this page? Email us
Public Member Functions | Properties | Events | List of all members
MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver Class Reference

ResourceValuesObserver More...

Inheritance diagram for MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver:
MbedCloudSDK.Connect.Api.Subscribe.Observers.Observer< ResourceValueChange, ResourceValueChange >

Public Member Functions

 ResourceValuesObserver ()
 Initializes a new instance of the ResourceValuesObserver class. More...
 
 ResourceValuesObserver (string deviceId, IEnumerable< string > resourcePaths)
 Initializes a new instance of the ResourceValuesObserver class. More...
 
 ResourceValuesObserver (IEnumerable< string > deviceIds, string resourcePath)
 Initializes a new instance of the ResourceValuesObserver class. More...
 
 ResourceValuesObserver (string deviceId, string resourcePath)
 Initializes a new instance of the ResourceValuesObserver class. More...
 
 ResourceValuesObserver (IEnumerable< string > deviceIds, IEnumerable< string > resourcePaths)
 Initializes a new instance of the ResourceValuesObserver class. More...
 
delegate void FilterAddedRaiser (string id)
 SubAddedRaiser More...
 
async Task NotifyAsync (NotificationData data)
 Notifies the specified data. More...
 
ResourceValuesObserver Filter (ResourceValuesFilter subscription)
 Wheres the specified subscription. More...
 
ResourceValuesObserver Filter (string deviceId, params string[] resourcePaths)
 Wheres the specified device identifier. More...
 
ResourceValuesObserver Filter (Func< ResourceValueChange, bool > predicate)
 Wheres the specified predicate. More...
 
- Public Member Functions inherited from MbedCloudSDK.Connect.Api.Subscribe.Observers.Observer< ResourceValueChange, ResourceValueChange >
delegate void NotifyRaiser (T data)
 Delegate used for the OnNotify event More...
 
delegate void UnsubscribedRaiser (string id)
 UnsubscribedRaiser More...
 
Task< T > NextAsync ()
 Take this instance. More...
 
Next ()
 Nexts this instance. More...
 
virtual async Task NotifyAsync (T data)
 Notifies the specified data. More...
 
virtual void Notify (T data)
 Notifies the specified data. More...
 
void Unsubscribe ()
 Unsubscribes this instance. More...
 

Properties

HashSet< ResourceValuesFilterResourceValueSubscriptions [get]
 Gets the resource value subscriptions. More...
 
- Properties inherited from MbedCloudSDK.Connect.Api.Subscribe.Observers.Observer< ResourceValueChange, ResourceValueChange >
FilterFunctionCollection< F > FilterFuncs [get]
 Gets the list containing the functions used for filtering More...
 
string Id [get]
 Gets the identifier. More...
 
AsyncCollection< T > NotificationQueue [get]
 Gets the collection. More...
 
bool Subscribed [get]
 Gets a value indicating whether the observer is subscribed More...
 

Events

FilterAddedRaiser OnFilterAdded
 Occurs when [on sub added]. More...
 
- Events inherited from MbedCloudSDK.Connect.Api.Subscribe.Observers.Observer< ResourceValueChange, ResourceValueChange >
NotifyRaiser OnNotify
 The OnNotify event More...
 
UnsubscribedRaiser OnUnsubscribed
 Occurs when [on unsubscribed]. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MbedCloudSDK.Connect.Api.Subscribe.Observers.Observer< ResourceValueChange, ResourceValueChange >
 Observer ()
 Initializes a new instance of the Observer<T, F> class. More...
 

Detailed Description

ResourceValuesObserver

Constructor & Destructor Documentation

MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValuesObserver ( )
inline

Initializes a new instance of the ResourceValuesObserver class.

MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValuesObserver ( string  deviceId,
IEnumerable< string >  resourcePaths 
)
inline

Initializes a new instance of the ResourceValuesObserver class.

Parameters
deviceIdThe device identifier.
resourcePathsThe resource paths.
MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValuesObserver ( IEnumerable< string >  deviceIds,
string  resourcePath 
)
inline

Initializes a new instance of the ResourceValuesObserver class.

Parameters
deviceIdsThe device ids.
resourcePathThe resource path.
MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValuesObserver ( string  deviceId,
string  resourcePath 
)
inline

Initializes a new instance of the ResourceValuesObserver class.

Parameters
deviceIdThe device identifier.
resourcePathThe resource path.
MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValuesObserver ( IEnumerable< string >  deviceIds,
IEnumerable< string >  resourcePaths 
)
inline

Initializes a new instance of the ResourceValuesObserver class.

Parameters
deviceIdsThe device ids.
resourcePathsThe resource paths.

Member Function Documentation

ResourceValuesObserver MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.Filter ( ResourceValuesFilter  subscription)
inline

Wheres the specified subscription.

Parameters
subscriptionThe subscription.
Returns
ResourceValueObserver
ResourceValuesObserver MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.Filter ( string  deviceId,
params string[]  resourcePaths 
)
inline

Wheres the specified device identifier.

Parameters
deviceIdThe device identifier.
resourcePathsThe resource paths.
Returns
ResourceValueObserver
ResourceValuesObserver MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.Filter ( Func< ResourceValueChange, bool >  predicate)
inline

Wheres the specified predicate.

Parameters
predicateThe predicate.
Returns
ResourceValueObserver
delegate void MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.FilterAddedRaiser ( string  id)

SubAddedRaiser

Parameters
idThe identifier.
async Task MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.NotifyAsync ( NotificationData  data)
inline

Notifies the specified data.

Parameters
dataThe data.
Returns
A Task representing the asynchronous operation.

Property Documentation

HashSet<ResourceValuesFilter> MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.ResourceValueSubscriptions
get

Gets the resource value subscriptions.

The resource value subscriptions.

Event Documentation

FilterAddedRaiser MbedCloudSDK.Connect.Api.Subscribe.Observers.ResourceValues.ResourceValuesObserver.OnFilterAdded

Occurs when [on sub added].


The documentation for this class was generated from the following file: