Table of Contents

Class Broadcast

Namespace
Exiled.API.Features
Assembly
Exiled.API.dll

Useful class to save broadcast configs in a cleaner way.

public class Broadcast
Inheritance
Broadcast
Inherited Members
Extension Methods

Constructors

Broadcast()

Initializes a new instance of the Broadcast class.

public Broadcast()

Broadcast(string, ushort, bool, BroadcastFlags)

Initializes a new instance of the Broadcast class.

public Broadcast(string content, ushort duration = 10, bool show = true, Broadcast.BroadcastFlags type = BroadcastFlags.Normal)

Parameters

content string

The content of the broadcast.

duration ushort

The duration of the broadcast, in seconds.

show bool

Whether the broadcast should be shown.

type Broadcast.BroadcastFlags

The type of the broadcast.

Properties

Content

Gets or sets the broadcast content.

public string Content { get; set; }

Property Value

string

Duration

Gets or sets the broadcast duration.

public ushort Duration { get; set; }

Property Value

ushort

Show

Gets or sets a value indicating whether the broadcast should be shown.

public bool Show { get; set; }

Property Value

bool

Type

Gets or sets the broadcast type.

public Broadcast.BroadcastFlags Type { get; set; }

Property Value

Broadcast.BroadcastFlags

Methods

ToString()

Returns the Broadcast in a human-readable format.

public override string ToString()

Returns

string

A string containing Broadcast-related data.