C# Class PlugwiseLib.BLL.BPC.PlugwiseSerialPortFactory

Mostra file Open project: GreenCodeLab/Tool-GreenPlugwise

Public Methods

Method 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

Method 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 method

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
return string

Create() public static method

public static Create ( PlugwiseSerialPortRequest req, string logId, string mac ) : string
req PlugwiseSerialPortRequest
logId string
mac string
return string

GetEnd() public static method

public static GetEnd ( ) : string
return string

GetStart() public static method

public static GetStart ( ) : string
return string