Class Broadcast
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
stringThe content of the broadcast.
duration
ushortThe duration of the broadcast, in seconds.
show
boolWhether the broadcast should be shown.
type
Broadcast.BroadcastFlagsThe type of the broadcast.
Properties
Content
Gets or sets the broadcast content.
public string Content { get; set; }
Property Value
Duration
Gets or sets the broadcast duration.
public ushort Duration { get; set; }
Property Value
Show
Gets or sets a value indicating whether the broadcast should be shown.
public bool Show { get; set; }
Property Value
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.