Search Results for

    Show / Hide Table of Contents

    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 Source

    Broadcast()

    Initializes a new instance of the Broadcast class.

    Declaration
    public Broadcast()
    | Improve this Doc View Source

    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 Source

    Content

    Gets or sets the broadcast content.

    Declaration
    public string Content { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Duration

    Gets or sets the broadcast duration.

    Declaration
    public ushort Duration { get; set; }
    Property Value
    Type Description
    System.UInt16
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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 Source

    ToString()

    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()

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX