C# Class PlugwiseLib.BLL.BPC.PlugwiseSerialPortFactory

Afficher le fichier Open project: GreenCodeLab/Tool-GreenPlugwise

Méthodes publiques

Méthode Description
Create ( PlugwiseSerialPortRequest req, string mac ) : string

This factory returns the strings that will be sent to the serial port when a certain command needs the be activated

Create ( PlugwiseSerialPortRequest req, string logId, string mac ) : string
GetEnd ( ) : string
GetStart ( ) : string

Private Methods

Méthode Description
GetOnMessage ( string mac ) : string
getCalibrationMessage ( string mac ) : string
getHistoryMessage ( string mac, string logId ) : string
getOffMessage ( string mac ) : string
getPowerinfoMessage ( string mac ) : string
getStatusMessage ( string mac ) : string

Method Details

Create() public static méthode

This factory returns the strings that will be sent to the serial port when a certain command needs the be activated
public static Create ( PlugwiseSerialPortRequest req, string mac ) : string
req PlugwiseSerialPortRequest The type of request that has to be sent to the plugs
mac string The mac address of the receiver
Résultat string

Create() public static méthode

public static Create ( PlugwiseSerialPortRequest req, string logId, string mac ) : string
req PlugwiseSerialPortRequest
logId string
mac string
Résultat string

GetEnd() public static méthode

public static GetEnd ( ) : string
Résultat string

GetStart() public static méthode

public static GetStart ( ) : string
Résultat string