Table of Contents

Class MeasurePointExtensions

Namespace
Lers.Http.Core
Assembly
Lers.System.dll

Содержит методы расширения для работы с точками учёта.

public static class MeasurePointExtensions
Inheritance
MeasurePointExtensions
Inherited Members

Methods

CreateMeasurePoint(RestClient, EditMeasurePointRequestParameters)

Создаёт новую точку учёта.

public static Task<SaveMeasurePointResponseParameters> CreateMeasurePoint(this RestClient client, EditMeasurePointRequestParameters request)

Parameters

client RestClient
request EditMeasurePointRequestParameters

Returns

Task<SaveMeasurePointResponseParameters>

EditMeasurePoint(RestClient, EntityIdentifier, EditMeasurePointRequestParameters)

Редактирует точку учёта.

public static Task<SaveMeasurePointResponseParameters> EditMeasurePoint(this RestClient client, EntityIdentifier id, EditMeasurePointRequestParameters request)

Parameters

client RestClient
id EntityIdentifier
request EditMeasurePointRequestParameters

Returns

Task<SaveMeasurePointResponseParameters>

GetMeasurePointById(RestClient, EntityIdentifier, GetMeasurePointRequestParameters)

Возвращает точку учёта по идентификатору.

public static Task<GetMeasurePointResponseParameters> GetMeasurePointById(this RestClient client, EntityIdentifier id, GetMeasurePointRequestParameters request)

Parameters

client RestClient
id EntityIdentifier
request GetMeasurePointRequestParameters

Returns

Task<GetMeasurePointResponseParameters>

GetMeasurePointByNumber(RestClient, EntityIdentifier, GetMeasurePointRequestParameters)

Возвращает точку учёта по номеру.

public static Task<GetMeasurePointResponseParameters> GetMeasurePointByNumber(this RestClient client, EntityIdentifier number, GetMeasurePointRequestParameters request)

Parameters

client RestClient
number EntityIdentifier
request GetMeasurePointRequestParameters

Returns

Task<GetMeasurePointResponseParameters>

GetMeasurePointsList(RestClient, IEnumerable<int>, MeasurePointInfoFlags, MeasurePointType?, int?)

Возвращает список точек учёта.

public static Task<GetMeasurePointListResponseParameters> GetMeasurePointsList(this RestClient client, IEnumerable<int> id = null, MeasurePointInfoFlags flags = MeasurePointInfoFlags.None, MeasurePointType? type = null, int? nodeGroupId = null)

Parameters

client RestClient

Клиент для работы с api.

id IEnumerable<int>

Список идентификаторов, которые необходимо получить, либо пустое значение, если необходим весь список.

flags MeasurePointInfoFlags

Флаги дополнительной информации.

type MeasurePointType?

Тип точек учёта, которые необходимо получить.

nodeGroupId int?

Returns

Task<GetMeasurePointListResponseParameters>

Параметры ответа на запрос списка точек учёта.

MoveMeasurePoint(RestClient, EntityIdentifier, EntityIdentifier, string)

Перемещает точку учёта в другой объект.

public static Task MoveMeasurePoint(this RestClient client, EntityIdentifier measurePointId, EntityIdentifier nodeId, string newTitle)

Parameters

client RestClient
measurePointId EntityIdentifier
nodeId EntityIdentifier
newTitle string

Returns

Task

SetMeasurePointAutoPoll(RestClient, EntityIdentifier, SetMeasurePointAutoPollRequest)

Сохраняет параметры автоопроса по точке учёта.

public static Task SetMeasurePointAutoPoll(this RestClient client, EntityIdentifier measurePointId, SetMeasurePointAutoPollRequest request)

Parameters

client RestClient
measurePointId EntityIdentifier
request SetMeasurePointAutoPollRequest

Returns

Task