# Class RelaySettings

Namespace
  adas_core.module.Relays.Models

Assembly
  adas-core.module.Relays.dll

Represents the settings for a relay device, including caching behavior, refresh intervals, and data source URLs. These settings allow for flexible configuration of the relay's operation, enabling it to optimize performance and ensure up-to-date information based on the specified parameters.

    public class RelaySettings

Inheritance
  object
  RelaySettings

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

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

## Properties

### Cache

Indicates whether the relay should cache the data it retrieves. If true, the relay will store the data locally to improve performance and reduce the number of requests to the source. If false, the relay will fetch fresh data from the source every time it is requested.

    public bool Cache { get; set; }

#### Property Value

bool

### RecordingOrApiUrl

The URL from which the relay should retrieve data. This can be an API endpoint or a recording URL. If null, the relay will use a default source.

    public string? RecordingOrApiUrl { get; set; }

#### Property Value

string

### RefreshTime

The time interval, in seconds, at which the relay should refresh its cached data. If null, the relay will use a default refresh interval.

    public int? RefreshTime { get; set; }

#### Property Value

int?