Table of Contents

Class ProtobufCustomParameter

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

A protobuf custom parameter extends the custom parameter, make the custom parameter support newly defined Protobuf Parameters where a ParameterKey is used rather than a ParameterOffset. MYG-50560.

public class ProtobufCustomParameter : CustomParameter
Inheritance
ProtobufCustomParameter
Inherited Members

Constructors

ProtobufCustomParameter()

Initializes a new instance of the ProtobufCustomParameter class.

public ProtobufCustomParameter()

ProtobufCustomParameter(string, int, bool, byte[], bool?, int?, uint?, int?)

Initializes a new instance of the ProtobufCustomParameter class. in bool, int, uint, bytes[] , only one type can be defined.

public ProtobufCustomParameter(string description, int offset, bool isEnabled, byte[] bytes, bool? bValueBool, int? iValueInt, uint? uiValueUint, int? parameterKey)

Parameters

description string

The description.

offset int

The offset.

isEnabled bool

if set to true [is enabled].

bytes byte[]

The bytes.

bValueBool bool?

The boolean value.

iValueInt int?

The integer value.

uiValueUint uint?

The unsigned integer value.

parameterKey int?

The parameter key

Properties

ParameterKey

Gets or sets the parameter key of CustomParameter.

public int? ParameterKey { get; set; }

Property Value

int?

int

ValueBool

Gets or sets the boolean value of ParameterKey.

public bool? ValueBool { get; set; }

Property Value

bool?

bool

ValueInt

Gets or sets the integer value of ParameterKey.

public int? ValueInt { get; set; }

Property Value

int?

int

ValueUint

Gets or sets the unsigned integer value of ParameterKey.

public uint? ValueUint { get; set; }

Property Value

uint?

uint

Methods

Equals(object?)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.