PushNotificationHook Class

Namespace:
Weavy.Core.Plugins
Assembly:
Weavy.Core.dll

A hook that sends push notifications to mobile devices for new messages and notifications.

[Guid("3D3383B1-927D-428F-BE57-007D37538273")]
[Plugin(Icon = "access-point", Name = "Push notification hook", Description = "Sends push notifications to mobile devices for new messages and notifications.")]
public class PushNotificationHook : Hook, IAsyncHook<AfterInsertNotification>, IAsyncHook<AfterInsertMessage>, IHook, IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable
Inheritance:
System.Object → ExpandoPluginHookPushNotificationHook
Attributes:
System.Runtime.InteropServices.GuidAttribute, PluginAttribute
Implements:
Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertNotification}, Weavy.Core.Models.IAsyncHook{Weavy.Core.Events.AfterInsertMessage}, IHook, IPlugin, IExtension, IExpando

Constructors

PushNotificationHook()

Methods

HandleAsync(AfterInsertMessage) Send push notification to people in conversation.
HandleAsync(AfterInsertNotification) Send push notification.
IExpando.get_Item(string)
IExpando.set_Item(string, object)

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.