C# Class SensorbergSDK.Beacon

Afficher le fichier Open project: sensorberg-dev/windows10-sdk Class Usage Examples

Private Properties

Свойство Type Description
CalculateDistance void
Equals bool
UpdatePid void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Matches() public méthode

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

ToString() public méthode

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

operator() public static méthode

public static operator ( ) : bool
Résultat bool