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
sourceLimitSourceThe LimitSource.
defaultLimitintThe int default limit.
monitorModeLimitintThe int default monitor mode limit.
overridesIEnumerable<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
Returns
GetResultLimitForType(Type)
Gets the result limit for a given type.
public (int Limit, bool IsMaxPayloadLimit, int MonitorLimit) GetResultLimitForType(Type type)
  Parameters
Returns
- (int Limit, bool IsMaxPayloadLimit, int MonitorLimit)
 The int result limit.