Table of Contents

Class Body

Namespace
RustPlusApi.Fcm.Data
Assembly
RustPlusApi.Fcm.dll

Rust+ encodes the numeric fields below as JSON strings; STJ's number handling reads them from strings (and writes them back as strings) natively, so no custom converters are needed.

[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString|JsonNumberHandling.WriteAsString)]
public sealed record Body : IEquatable<Body>
Inheritance
Body
Implements
Inherited Members
Extension Methods

Properties

Desc

Optional server description.

public string? Desc { get; init; }

Property Value

string

EntityId

Entity ID when Type is "entity".

public int? EntityId { get; init; }

Property Value

int?

EntityName

Entity name when Type is "entity".

public string? EntityName { get; init; }

Property Value

string

EntityType

Entity type when Type is "entity": 1 = Smart Switch, 2 = Smart Alarm, 3 = Storage Monitor.

public int? EntityType { get; init; }

Property Value

int?

Id

The Rust+ server ID.

public Guid Id { get; init; }

Property Value

Guid

Img

Optional URL to a server banner image.

public string? Img { get; init; }

Property Value

string

Ip

IP address or hostname of the Rust+ companion port.

public string Ip { get; init; }

Property Value

string

Optional URL to the server's logo image.

public string? Logo { get; init; }

Property Value

string

Name

Display name of the server.

public string Name { get; init; }

Property Value

string

PlayerId

Steam ID of the player who performed the pairing.

public ulong PlayerId { get; init; }

Property Value

ulong

PlayerToken

Rust+ player authentication token for the pairing player.

public string PlayerToken { get; init; }

Property Value

string

Port

Rust+ companion port number.

public int Port { get; init; }

Property Value

int

Type

Pairing type: "entity" or "server".

public string Type { get; init; }

Property Value

string

Url

Optional URL to the server's website.

public string? Url { get; init; }

Property Value

string