Show / Hide Table of Contents

Class ReceivedMessage

A message received from the server.

Inheritance
object
ReceivedMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ntfy.Responses
Assembly: ntfy.dll
Syntax
public class ReceivedMessage

Properties

| Improve this Doc View Source

Actions

A list of actions included in this message.

Declaration
[JsonIgnore]
public Action[]? Actions { get; set; }
Property Value
Type Description
Action[]
| Improve this Doc View Source

Attachment

The attachment included in this message.

Declaration
[JsonProperty("attachment")]
public Attachment? Attachment { get; }
Property Value
Type Description
Attachment
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Id

Identifier for this message.

Declaration
[JsonProperty("id")]
public string Id { get; }
Property Value
Type Description
string
| Improve this Doc View Source

Message

The body of this message. Always present in EventType.Message events.

Declaration
[JsonProperty("message")]
public string? Message { get; }
Property Value
Type Description
string
| Improve this Doc View Source

Priority

The priority of this message.

Declaration
[JsonIgnore]
public PriorityLevel? Priority { get; set; }
Property Value
Type Description
PriorityLevel
| Improve this Doc View Source

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[]
| Improve this Doc View Source

Time

The datetime of this message, as a DateTime object.

Declaration
[JsonIgnore]
public DateTime Time { get; set; }
Property Value
Type Description
DateTime
| Improve this Doc View Source

Title

The title of this message. Defaults to ntfy.sh/{topic}

Declaration
[JsonProperty("title")]
public string? Title { get; }
Property Value
Type Description
string
| Improve this Doc View Source

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[]
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX