Skip to content
Snippets Groups Projects
Commit 0ee0a757 authored by Jules Darold's avatar Jules Darold Committed by Pierre Roussel
Browse files

Daroldju/fix/method signature in interfaces

parent 0ace5339
No related branches found
No related tags found
3 merge requests!55Data,!47Porting code from data to dev,!43Daroldju/fix/method signature in interfaces
<Application x:Class="Client.App"
<Application x:Class="Client.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Client"
Startup="App_Startup"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
using Client.data;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Client
{
/// <summary>
/// Logique d'interaction pour App.xaml
/// </summary>
public partial class App : Application
{
private DataCore dataCore;
private void App_Startup(object sender, StartupEventArgs e)
{
dataCore = new DataCore();
CommClient cli = new CommClient();
cli.start("127.0.0.1", 10000);
cli.announceUser("Bonjour");
}
}
using Client.data;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Client
{
/// <summary>
/// Logique d'interaction pour App.xaml
/// </summary>
public partial class App : Application
{
private DataCore dataCore;
private void App_Startup(object sender, StartupEventArgs e)
{
this.dataCore = new DataCore();
}
}
}
......@@ -6,7 +6,6 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace Client.data
{
internal class DataCore
......@@ -25,4 +24,4 @@ namespace Client.data
}
}
}
\ No newline at end of file
}
......@@ -18,7 +18,7 @@ namespace Client.data
public Comm_calls_Data_Client_impl getImplInterfaceForComm()
{
return implInterfaceForComm;
return this.implInterfaceForComm;
}
}
}
using Server.comm;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......@@ -11,9 +10,9 @@ namespace Server
{
static void Main(string[] args)
{
CommServer s = new CommServer();
s.run("127.0.0.1", 10000);
_ = Console.ReadLine(); // wait until press Return to close console
// CommServer s = new CommServer();
// s.run("127.0.0.1", 10000);
// _ = Console.ReadLine(); // wait until press Return to close console
}
}
}
......@@ -12,12 +12,12 @@ namespace Server.Data
public Data_Server_ctrl()
{
implInterfaceForComm = new Comm_calls_Data_Server_Impl();
this.implInterfaceForComm = new Comm_calls_Data_Server_Impl();
}
public Comm_calls_Data_Server_Impl getImplInterfaceForComm()
{
return implInterfaceForComm;
return this.implInterfaceForComm;
}
}
}
\ No newline at end of file
}
......@@ -4,7 +4,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.interfaces
{
public interface Interface_Comm_calls_Data_Client
......
......@@ -3,13 +3,16 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shared.data;
namespace Shared.interfaces
{
public interface Interface_Comm_calls_Data_Server
{
LightUser getUser();
List<LightUser> registerUser(LightUser lightUser);
void removeUser(int idJoueur);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment