C# Class StompNet.Models.StompInterpreter

Class to transform frames into an instance of a 'subclass' matching its command.
Mostra file Open project: krlito/StompNet

Public Methods

Method Description
Interpret ( Frame frame ) : Frame

Transform a frame into a 'subclass' matching its command. These subclasses are: ReceiptFrame, MessageFrame, ErrorFrame, ConnectedFrame.

Method Details

Interpret() public static method

Transform a frame into a 'subclass' matching its command. These subclasses are: ReceiptFrame, MessageFrame, ErrorFrame, ConnectedFrame.
public static Interpret ( Frame frame ) : Frame
frame StompNet.Models.Frames.Frame Frame to be interpreted.
return StompNet.Models.Frames.Frame