Class Attachment
An Attachment that can be included on a ReceivedMessage.
Inherited Members
Namespace: ntfy.Responses
Assembly: ntfy.dll
Syntax
public class Attachment
Properties
| Improve this Doc View SourceExpires
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? |
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 |
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? |
Type
Declaration
[JsonProperty("type", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |