public override void Request(MFProtocolId id, params object[] args) { int bookId = (int)args[0]; var package = new MFRequestProtocol <MFGetBookDetailRequest> { header = new MFRequestHeader { protocolId = id, }, data = new MFGetBookDetailRequest { bookId = bookId, }, }; string data = MFJsonSerialzator.Serialize(package); MFNetManager.GetInstance().Send(data); }
public override void Request(MFProtocolId id, params object[] args) { int roomNumber = (int)args[0]; var package = new MFRequestProtocol <MFGetCharacterListRequest> { header = new MFRequestHeader { protocolId = id, }, data = new MFGetCharacterListRequest { roomNumber = roomNumber, }, }; string data = MFJsonSerialzator.Serialize(package); MFNetManager.GetInstance().Send(data); }
public override void Request(MFProtocolId id, params object[] args) { string scriptId = args[0] as string; var package = new MFRequestProtocol <MFCreateRoomRequest> { header = new MFRequestHeader { protocolId = id, }, data = new MFCreateRoomRequest { scriptId = scriptId, }, }; string data = MFJsonSerialzator.Serialize(package); MFNetManager.GetInstance().Send(data); }
public override void Request(MFProtocolId id, params object[] args) { string token = args[0] as string; var package = new MFRequestProtocol <MFQQLoginRequest> { header = new MFRequestHeader { protocolId = id, }, data = new MFQQLoginRequest { tokenId = token, type = PlatformTypeDebug.win, }, }; string data = MFJsonSerialzator.Serialize(package); MFNetManager.GetInstance().Send(data); }