Show / Hide Table of Contents

Class Attachment

An Attachment that can be included on a ReceivedMessage.

Inheritance
object
Attachment
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 Attachment

Properties

| Improve this Doc View Source

Expires

The expiry date of the attachment, as a DateTime object. Only defined if the attachment was uploaded to the ntfy server.

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

Name

The name of the attachment.

Declaration
[JsonProperty("name", Required = Required.Always, NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

Size

The size of the attachment, in bytes. Only defined if the attachment was uploaded to the ntfy server.

Declaration
[JsonProperty("size", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public int? Size { get; set; }
Property Value
Type Description
int?
| Improve this Doc View Source

Type

Declaration
[JsonProperty("type", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Type { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

Url

The URL of the attachment.

Declaration
[JsonProperty("url", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public Uri Url { get; set; }
Property Value
Type Description
Uri
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX