Table of Contents

Class LinkedDevice

Namespace
Signal.Application.Abstractions
Assembly
Signal.Application.dll

A device linked to an account, from ListAsync(PhoneNumber, CancellationToken).

public sealed record LinkedDevice : IEquatable<LinkedDevice>
Inheritance
LinkedDevice
Implements
Inherited Members

Constructors

LinkedDevice(long, string?, DateTimeOffset?, DateTimeOffset?)

A device linked to an account, from ListAsync(PhoneNumber, CancellationToken).

public LinkedDevice(long Id, string? Name, DateTimeOffset? Created, DateTimeOffset? LastSeen)

Parameters

Id long

The device id; the primary device is 1.

Name string

The device name, if set.

Created DateTimeOffset?

When the device was linked, if reported.

LastSeen DateTimeOffset?

When the device was last active, if reported.

Fields

PrimaryDeviceId

The id of an account's primary device (the phone that registered the number).

public const long PrimaryDeviceId = 1

Field Value

long

Properties

Created

When the device was linked, if reported.

public DateTimeOffset? Created { get; init; }

Property Value

DateTimeOffset?

Id

The device id; the primary device is 1.

public long Id { get; init; }

Property Value

long

IsPrimary

Whether this is the account's primary device.

public bool IsPrimary { get; }

Property Value

bool

LastSeen

When the device was last active, if reported.

public DateTimeOffset? LastSeen { get; init; }

Property Value

DateTimeOffset?

Name

The device name, if set.

public string? Name { get; init; }

Property Value

string