• Home
  • API Documentation

Class PushClient

PushClient allows for subscribing to push notification and updates from GroupMe for both Direct Messages/Chats and Groups.

Inheritance
Object
PushClient
Namespace: GroupMeClientApi.Push
Assembly: GroupMeClientApi.dll
Syntax
public class PushClient : object

Constructors

| Improve this Doc View Source

PushClient(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 Source

Connect()

Connects to the GroupMe Server to prepare for receiving notifications.

Declaration
public void Connect()
| Improve this Doc View Source

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 representing the result of the asynchronous operation.

| Improve this Doc View Source

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 Source

NotificationReceived

The event that is raised when a new push notification is received.

Declaration
public event EventHandler<Notification> NotificationReceived
Event Type
Type Description
EventHandler<Notification>
  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX