Class Broadcast
Useful class to save broadcast configs in a cleaner way.
Inheritance
System.Object
Broadcast
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features
Assembly: Exiled.API.dll
Syntax
public class Broadcast
Constructors
| Improve this Doc View SourceBroadcast()
Initializes a new instance of the Broadcast class.
Declaration
public Broadcast()
Broadcast(String, UInt16, Boolean, Broadcast.BroadcastFlags)
Initializes a new instance of the Broadcast class.
Declaration
public Broadcast(string content, ushort duration = 10, bool show = true, Broadcast.BroadcastFlags type = Broadcast.BroadcastFlags.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | The content of the broadcast>. |
System.UInt16 | duration | The duration of the broadcast, in seconds. |
System.Boolean | show | Whether or not the broadcast should be shown. |
Broadcast.BroadcastFlags | type | The type of the broadcast. |
Properties
| Improve this Doc View SourceContent
Gets or sets the broadcast content.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Duration
Gets or sets the broadcast duration.
Declaration
public ushort Duration { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Show
Gets or sets a value indicating whether the broadcast should be shown or not.
Declaration
public bool Show { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Type
Gets or sets the broadcast type.
Declaration
public Broadcast.BroadcastFlags Type { get; set; }
Property Value
Type | Description |
---|---|
Broadcast.BroadcastFlags |
Methods
| Improve this Doc View SourceToString()
Returns the Broadcast in a human-readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing Broadcast-related data. |
Overrides
System.Object.ToString()