> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.PocketNotificationMessage

# <a id="SuperOffice_WebApi_Data_PocketNotificationMessage" /> Class PocketNotificationMessage

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for PocketNotificationMessage.
Describes behaviour and content for a push notification message

```csharp theme={null}
public class PocketNotificationMessage
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[PocketNotificationMessage](SuperOffice.WebApi.Data.PocketNotificationMessage.md)

#### Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage__ctor" /> PocketNotificationMessage()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public PocketNotificationMessage()
```

## Properties

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Date" /> Date

If the message is about some event happening at a specific date and time

```csharp theme={null}
public virtual DateTime Date { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Duration" /> Duration

Specify duration of the event

```csharp theme={null}
public virtual TimeSpan Duration { get; set; }
```

#### Property Value

[TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_ExtraValues" /> ExtraValues

Additional key/value properties to include in the message

```csharp theme={null}
public virtual StringDictionary ExtraValues { get; set; }
```

#### Property Value

[StringDictionary](SuperOffice.WebApi.Data.StringDictionary.md)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Message" /> Message

The notification message body

```csharp theme={null}
public virtual string Message { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_RecordId" /> RecordId

If the message is about some specific database record, this could be its primary key

```csharp theme={null}
public virtual int RecordId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Silent" /> Silent

Indicates wether or not the message will vibrate/play a sound when delivered

```csharp theme={null}
public virtual bool Silent { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_TimeToLive" /> TimeToLive

Specifies how many minutes the message should be valid

```csharp theme={null}
public virtual int TimeToLive { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Title" /> Title

Title for the notification

```csharp theme={null}
public virtual string Title { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Type" /> Type

The type of notification this is
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public NotificationMessageType? Type { get; set; }
```

#### Property Value

[NotificationMessageType](SuperOffice.WebApi.Data.NotificationMessageType.md)?

#### See Also

[PocketNotificationMessage](SuperOffice.WebApi.Data.PocketNotificationMessage.md).[Type\_String](SuperOffice.WebApi.Data.PocketNotificationMessage.md#SuperOffice_WebApi_Data_PocketNotificationMessage_Type_String)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Type_String" /> Type\_String

The type of notification this is
Raw string enum value.

```csharp theme={null}
[JsonProperty("Type")]
public string Type_String { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### See Also

[PocketNotificationMessage](SuperOffice.WebApi.Data.PocketNotificationMessage.md).[Type](SuperOffice.WebApi.Data.PocketNotificationMessage.md#SuperOffice_WebApi_Data_PocketNotificationMessage_Type)

### <a id="SuperOffice_WebApi_Data_PocketNotificationMessage_Url" /> Url

An url associated with the notification that will be handled by Pocket

```csharp theme={null}
public virtual string Url { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## See Also

[PocketAgent](SuperOffice.WebApi.Agents.PocketAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.Pocket SendPushNotificationRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Pocket_SendPushNotificationRequest.md)
- [SuperOffice.WebApi.Agents.PocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.PocketAgent.md)
- [SuperOffice.WebApi.Agents.IPocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IPocketAgent.md)
- [SuperOffice.WebApi.Data.Pocket NotificationHandledRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Pocket_NotificationHandledRequest.md)
- [SuperOffice.WebApi.Data.Pocket NotificationsHandledRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Pocket_NotificationsHandledRequest.md)
- [SuperOffice.WebApi.Data.Pocket RegisterDeviceForPushNotificationRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Pocket_RegisterDeviceForPushNotificationRequest.md)
