Table of Contents

Class CommunicationDevice

Namespace
Lers.Models
Assembly
Lers.Models.dll

Коммуникационное устройство.

public class CommunicationDevice : IUniqueObject
Inheritance
CommunicationDevice
Implements
Inherited Members
Extension Methods

Constructors

CommunicationDevice(CommunicationDeviceModel, int, string, string?, string?, string?, string?, bool?, int?, string?)

Коммуникационное устройство.

public CommunicationDevice(CommunicationDeviceModel model, int id, string serialNumber, string? comment, string? password, string? networkAddress, string? identifier, bool? enableKeepAlive, int? pollPortId, string? imei)

Parameters

model CommunicationDeviceModel
id int
serialNumber string
comment string
password string
networkAddress string
identifier string
enableKeepAlive bool?
pollPortId int?
imei string

Properties

Comment

Комментарий.

public string? Comment { get; }

Property Value

string

EnableKeepAlive

Включить отправку пакетов Keepalive для поддержания подключения.

public bool? EnableKeepAlive { get; }

Property Value

bool?

Id

Идентификатор устройства.

public int Id { get; set; }

Property Value

int

Identifier

Идентификатор GPRS модема.

public string? Identifier { get; }

Property Value

string

Imei

IMEI, считанный от модема после подключения.

public string? Imei { get; }

Property Value

string

Model

Модель.

public CommunicationDeviceModel Model { get; }

Property Value

CommunicationDeviceModel

NetworkAddress

Сетевой адрес для обмена с устройством.

public string? NetworkAddress { get; }

Property Value

string

Password

Пароль для обмена с устройством.

public string? Password { get; }

Property Value

string

PollPortId

Порт опроса, выбранный для модема.

public int? PollPortId { get; }

Property Value

int?

SerialNumber

Серийный номер.

public string SerialNumber { get; set; }

Property Value

string

Methods

ToString()

public override string ToString()

Returns

string