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
IdlongThe device id; the primary device is
1.NamestringThe device name, if set.
CreatedDateTimeOffset?When the device was linked, if reported.
LastSeenDateTimeOffset?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
Properties
Created
When the device was linked, if reported.
public DateTimeOffset? Created { get; init; }
Property Value
Id
The device id; the primary device is 1.
public long Id { get; init; }
Property Value
IsPrimary
Whether this is the account's primary device.
public bool IsPrimary { get; }
Property Value
LastSeen
When the device was last active, if reported.
public DateTimeOffset? LastSeen { get; init; }
Property Value
Name
The device name, if set.
public string? Name { get; init; }