C# Class TrainNotifier.Common.Model.PPM.PPMJsonMapper

Exibir arquivo Open project: blueghostuk/trainnotifier-server

Public Methods

Method Description
ParsePPMData ( dynamic data ) : RtppmData
ParsePPMNationalRecord ( dynamic sector ) : PPMRecord
ParsePPMOperatorRecord ( dynamic sector ) : PPMRecord
ParsePPMServiceGroupRecord ( dynamic sector ) : PPMRecord

Private Methods

Method Description
DynamicToShort ( dynamic value ) : short
DynamicToTrend ( dynamic value ) : PpmTrendIndicator
DynamicValueToString ( dynamic value ) : string
UnixTsToDateTime ( double timeStamp ) : System.DateTime

Method Details

ParsePPMData() public static method

public static ParsePPMData ( dynamic data ) : RtppmData
data dynamic
return RtppmData

ParsePPMNationalRecord() public static method

public static ParsePPMNationalRecord ( dynamic sector ) : PPMRecord
sector dynamic
return PPMRecord

ParsePPMOperatorRecord() public static method

public static ParsePPMOperatorRecord ( dynamic sector ) : PPMRecord
sector dynamic
return PPMRecord

ParsePPMServiceGroupRecord() public static method

public static ParsePPMServiceGroupRecord ( dynamic sector ) : PPMRecord
sector dynamic
return PPMRecord