# Class PowerOutletsConfig

Namespace
  adas_core.module.Relays.Models

Assembly
  adas-core.module.Relays.dll

Represents the configuration settings for power outlets in a relay system. This class includes properties to enable or disable power off and reset functionalities, as well as details about the outlet such as its ID, name, type, and whether to show the power outlet in the user interface.

    public class PowerOutletsConfig

Inheritance
  object
  PowerOutletsConfig

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Fields

### PowerOffEnabled

Indicates whether the power off functionality is enabled for the outlet. If true, the outlet can be powered off remotely. If false, the outlet will remain powered on and cannot be turned off remotely.

    public bool PowerOffEnabled

#### Field Value

bool

### ResetEnabled

Indicates whether the reset functionality is enabled for the outlet.

    public bool ResetEnabled

#### Field Value

bool

## Properties

### IconType

The type of icon to be displayed for the outlet in the user interface. This can be used to visually represent the outlet based on its type or functionality.

    public string? IconType { get; set; }

#### Property Value

string

### Id

The unique identifier for the power outlet configuration. This ID is used to distinguish between different outlet configurations within the relay system.

    public int Id { get; set; }

#### Property Value

int

### Name

The name of the power outlet. This is a user-friendly name that can be displayed in the user interface to identify the outlet.

    public string Name { get; set; }

#### Property Value

string

### Outlet

The outlet number or identifier that corresponds to the physical outlet in the relay system.

    public int Outlet { get; set; }

#### Property Value

int

### ShowPowerOutlet

Indicates whether the power outlet should be shown in the user interface.

    public bool ShowPowerOutlet { get; set; }

#### Property Value

bool

### Type

The type of the outlet, which can be used to specify the kind of device or functionality associated with the outlet.

    public string Type { get; set; }

#### Property Value

string

## Methods

### ToString()

String representation of the PowerOutletsConfig object, including its ID, name, outlet number, and type.

    public override string ToString()

#### Returns

string

  A string representation of the PowerOutletsConfig object.