Table of Contents

Class SourceResultLimits

Namespace
Geotab.Checkmate.ObjectModel.Limits
Assembly
Geotab.Checkmate.ObjectModel.dll

Result limits for a given source.

public class SourceResultLimits
Inheritance
SourceResultLimits
Inherited Members

Constructors

SourceResultLimits()

Initializes a new instance of the SourceResultLimits class.

public SourceResultLimits()

SourceResultLimits(LimitSource, int, int, IEnumerable<ResultLimitOverride>)

Initializes a new instance of the SourceResultLimits class.

public SourceResultLimits(LimitSource source, int defaultLimit, int monitorModeLimit, IEnumerable<ResultLimitOverride> overrides)

Parameters

source LimitSource

The LimitSource.

defaultLimit int

The int default limit.

monitorModeLimit int

The int default monitor mode limit.

overrides IEnumerable<ResultLimitOverride>

The ResultLimitOverrides.

Properties

DefaultLimit

Gets or sets the default limit.

public int DefaultLimit { get; set; }

Property Value

int

The default limit.

MonitorModeLimit

Gets or sets the default monitor mode limit.

public int MonitorModeLimit { get; set; }

Property Value

int

The default Monitor mode limit.

Overrides

Gets or sets the type specific limit overrides.

public ResultLimitOverride[]? Overrides { get; set; }

Property Value

ResultLimitOverride[]

The type specific limit overrides.

Source

Gets or sets the Source.

public LimitSource Source { get; set; }

Property Value

LimitSource

The Source.

Methods

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

GetLowestLimit(int?, int)

Gets the lowest limit of supplied and max limit.

public static int GetLowestLimit(int? suppliedLimit, int maxLimit)

Parameters

suppliedLimit int?

The supplied int limit.

maxLimit int

The maximum int limit.

Returns

int

The lower int limit.

GetResultLimitForType(Type)

Gets the result limit for a given type.

public (int Limit, bool IsMaxPayloadLimit, int MonitorLimit) GetResultLimitForType(Type type)

Parameters

type Type

The Type.

Returns

(int Limit, bool IsMaxPayloadLimit, int MonitorLimit)

The int result limit.