Class PushClient
PushClient allows for subscribing to push notification and updates from GroupMe for both Direct Messages/Chats and Groups.
Namespace: GroupMeClientApi.Push
Assembly: GroupMeClientApi.dll
Syntax
public class PushClient : object
Constructors
| Improve this Doc View SourcePushClient(GroupMeClient)
Initializes a new instance of the PushClient class.
Declaration
public PushClient(GroupMeClient client)
Parameters
| Type | Name | Description |
|---|---|---|
| GroupMeClient | client | The GroupMe Client that manages the Groups and Chats being monitored. |
Methods
| Improve this Doc View SourceConnect()
Connects to the GroupMe Server to prepare for receiving notifications.
Declaration
public void Connect()
SubscribeAsync(IMessageContainer)
Subscribes to push notifications for a specific IMessageContainer.
Declaration
public Task SubscribeAsync(IMessageContainer container)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageContainer | container | The container to receive notifications for. |
Returns
| Type | Description |
|---|---|
| Task | A |
Unsubscribe(IMessageContainer)
Unsubscribes from push notifications for a specific IMessageContainer.
Declaration
public void Unsubscribe(IMessageContainer container)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageContainer | container | The container to unsubscribe from receive notifications for. |
Events
| Improve this Doc View SourceNotificationReceived
The event that is raised when a new push notification is received.
Declaration
public event EventHandler<Notification> NotificationReceived
Event Type
| Type | Description |
|---|---|
| EventHandler<Notification> |