Skip to content

DeviceGroupChoice

Record in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The rules of a device group as the editor shows them: a device is in the group when “This server”, a site, a tag or its serial covers it and its serial is not excepted.

public sealed record DeviceGroupChoice(bool ThisServer, IReadOnlyList<Guid> SiteIds, IReadOnlyList<string> TagIds, IReadOnlyList<string> Serials, IReadOnlyList<string> ExceptSerials)

Parameters

  • ThisServer: Every device without a site.
  • SiteIds: The chosen sites.
  • TagIds: The chosen tags by the id of their definition.
  • Serials: Single devices by serial number.
  • ExceptSerials: Devices never in the group, by serial number.
static DeviceGroupChoice Empty { get; }

A group without rules: no devices.

IReadOnlyList<string> ExceptSerials { get; init; }

Devices never in the group, by serial number.

bool IsEmpty { get; }

No site, tag or single device is chosen.

IReadOnlyList<string> Serials { get; init; }

Single devices by serial number.

IReadOnlyList<Guid> SiteIds { get; init; }

The chosen sites.

IReadOnlyList<string> TagIds { get; init; }

The chosen tags by the id of their definition.

bool ThisServer { get; init; }

Every device without a site.