Table of Contents

Class ApiMessage

Namespace
Cloudflare.NET.Core.Models
Assembly
Cloudflare.NET.dll

Represents a single message object in a Cloudflare API response.

public sealed record ApiMessage : IEquatable<ApiMessage>
Inheritance
ApiMessage
Implements
Inherited Members

Constructors

ApiMessage(int, string)

Represents a single message object in a Cloudflare API response.

public ApiMessage(int Code, string Message)

Parameters

Code int

The message code.

Message string

The message text.

Properties

Code

The message code.

[JsonPropertyName("code")]
public int Code { get; init; }

Property Value

int

Message

The message text.

[JsonPropertyName("message")]
public string Message { get; init; }

Property Value

string