C# Class GladNet.Engine.Common.NetworkMessageFactory

Inheritance: INetworkMessageFactory
Exibir arquivo Open project: HelloKitty/GladNet2 Class Usage Examples

Public Methods

Method Description
CreateEventMessage ( PacketPayload payload ) : EventMessage
CreateRequestMessage ( PacketPayload payload ) : RequestMessage
CreateResponseMessage ( PacketPayload payload ) : ResponseMessage
CreateStatusMessage ( StatusChangePayload payload ) : StatusMessage

Method Details

CreateEventMessage() public method

public CreateEventMessage ( PacketPayload payload ) : EventMessage
payload GladNet.Payload.PacketPayload
return GladNet.Message.EventMessage

CreateRequestMessage() public method

public CreateRequestMessage ( PacketPayload payload ) : RequestMessage
payload GladNet.Payload.PacketPayload
return GladNet.Message.RequestMessage

CreateResponseMessage() public method

public CreateResponseMessage ( PacketPayload payload ) : ResponseMessage
payload GladNet.Payload.PacketPayload
return GladNet.Message.ResponseMessage

CreateStatusMessage() public method

public CreateStatusMessage ( StatusChangePayload payload ) : StatusMessage
payload GladNet.Message.StatusChangePayload
return StatusMessage