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
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
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
Img
Optional URL to a server banner image.
public string? Img { get; init; }
Property Value
Ip
IP address or hostname of the Rust+ companion port.
public string Ip { get; init; }
Property Value
Logo
Optional URL to the server's logo image.
public string? Logo { get; init; }
Property Value
Name
Display name of the server.
public string Name { get; init; }
Property Value
PlayerId
Steam ID of the player who performed the pairing.
public ulong PlayerId { get; init; }
Property Value
PlayerToken
Rust+ player authentication token for the pairing player.
public string PlayerToken { get; init; }
Property Value
Port
Rust+ companion port number.
public int Port { get; init; }
Property Value
Type
Pairing type: "entity" or "server".
public string Type { get; init; }
Property Value
Url
Optional URL to the server's website.
public string? Url { get; init; }