C# Class SensorbergSDK.Beacon

Mostra file Open project: sensorberg-dev/windows10-sdk Class Usage Examples

Private Properties

Property Type Description
CalculateDistance void
Equals bool
UpdatePid void

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Matches ( Beacon beacon ) : bool

Compares the given beacon to this.

ToString ( ) : string

Creates a string representation of this instance consisting of ID1, ID2, ID3 and measured power.

operator ( ) : bool

Private Methods

Method Description
CalculateDistance ( int rawSignalStrengthInDBm, int measuredPower ) : void
Equals ( Beacon other ) : bool
UpdatePid ( ) : void

Updated the beacon PID; The ID 1 (without dashes) + 5 digits ID 2 (padded with zeros) + 5 digits ID 3 (padded with zeros).

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Matches() public method

Compares the given beacon to this.
public Matches ( Beacon beacon ) : bool
beacon Beacon The beacon to compare to.
return bool

ToString() public method

Creates a string representation of this instance consisting of ID1, ID2, ID3 and measured power.
public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool