Class ReceivedMessage
A message received from the server.
Inherited Members
Namespace: ntfy.Responses
Assembly: ntfy.dll
Syntax
public class ReceivedMessage
Properties
| Improve this Doc View SourceActions
A list of actions included in this message.
Declaration
[JsonIgnore]
public Action[]? Actions { get; set; }
Property Value
| Type | Description |
|---|---|
| Action[] |
Attachment
The attachment included in this message.
Declaration
[JsonProperty("attachment")]
public Attachment? Attachment { get; }
Property Value
| Type | Description |
|---|---|
| Attachment |
Click
The URL opened when the associated notification for this message is clicked.
Declaration
[JsonProperty("click")]
public Uri? Click { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Event
The event type of this message.
Typically you'd be only interested in EventType.Message.
Declaration
[JsonIgnore]
public EventType? Event { get; set; }
Property Value
| Type | Description |
|---|---|
| EventType |
Id
Identifier for this message.
Declaration
[JsonProperty("id")]
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Message
The body of this message.
Always present in EventType.Message events.
Declaration
[JsonProperty("message")]
public string? Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
Priority
The priority of this message.
Declaration
[JsonIgnore]
public PriorityLevel? Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| PriorityLevel |
Tags
A list of tags of this message that may or not map to emojis.
Declaration
[JsonProperty("tags")]
public string[]? Tags { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Time
The datetime of this message, as a DateTime object.
Declaration
[JsonIgnore]
public DateTime Time { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Title
The title of this message.
Defaults to ntfy.sh/{topic}
Declaration
[JsonProperty("title")]
public string? Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
Topic
A list of topics the message is associated with. Only one for all message events, but may be a list in open events.
Declaration
[JsonIgnore]
public string[] Topic { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |