static void Main(string[] args) { WebClientData c = new WebClientData("test", 1, "1.1.1.1", true); StoreClient(new AdapterWebDataToData(), c); // printed: "Data is stored with PerfectStore. Client Data: ClientData is test and ID: 1" }
static void Main(string[] args) { IDBWebData adapter = new AdapterWebToNotWeb(); WebClientData webClientData = new WebClientData("ynet.co.il", 209, "180.180.180.180", true); StoreClient(adapter, webClientData); }
static void Main(string[] args) { IDBwebData webData = new IDBAdapter(); WebClientData data = new WebClientData("bad", "1", "ip", true); storeClient(webData, data); }
static void Main(string[] args) { IDBWebData adapter = new AdapterWebToNonWeb(); WebClientData webClientData = new WebClientData("google.com", 145, "172.217.4.78", true); StoreClient(adapter, webClientData); Console.ReadKey(); }
public void store(WebClientData wbData) { clientData cData = new clientData(wbData.Name, wbData.ID); PerfectStore pStore = new PerfectStore(); Console.WriteLine("ADAPTATION!"); pStore.store(cData); }
public void store(WebClientData wc) { ClientData cd = new ClientData(wc.Name, wc.Id); PerfectStore ps = new PerfectStore(); ps.store(cd); Console.WriteLine($"IP : {(wc.Ip)} \nSSL : {(wc.Ssl)}"); }
static void Main(string[] args) { //D3Shape d3Shape = new D3Shape(); // //draw(new Adapter3Dto2D(), d3Shape); WebClientData webClientData = new WebClientData("Yaron", "315234963", "190.190.190.190", true); StoreClient(new AdapterWebClienttoNormalClient(), webClientData); }
static void Main(string[] args) { // Check Perfect store ClientData cd = new ClientData("May", "316015833"); PerfectStore ps = new PerfectStore(); ps.store(cd); // Check Web data store Console.WriteLine("\n"); WebClientData wcd = new WebClientData("Galibter", "316015833", "1.2.3.4", true); WebDataStore wds = new WebDataStore(); wds.store(wcd); }
static void Main(string[] args) { Console.WriteLine("Store regular data: "); clientData dbData = new clientData("BLA", 1); PerfectStore pStore = new PerfectStore(); pStore.store(dbData); Console.WriteLine("Store bad web data: "); WebClientData wData = new WebClientData("BLA", 1, "12345", true); WebClientDataStore wdStore = new WebClientDataStore(); wdStore.BadStore(wData); wdStore.store(wData); }
static void Main(string[] args) { WebClientData webData = new WebClientData("blalal", 12, "127.0.0.1", true); storeClient(new AdapterDBToWeb(), webData); }
static void StoreClient(IDBWebData d, WebClientData c) { d.Store(c); }
public void Store(WebClientData webClientData) { perfectStoreFunction.Store(webClientData.GetClientData()); }
public void store(WebClientData webClientData) { Console.WriteLine("web client data={0}", webClientData.ID); }
public void Store(WebClientData c) { Console.WriteLine("Store is bad"); }
// non mutable private static void store(IDBWebData idb, WebClientData webClientData) { idb.store(webClientData); }
// non mutable //private static void draw(ID3Painter painter, D3Shape shape) //{ // painter.Paint3DShape(shape); //} private static void StoreClient(IDBWebData dBWebDataadapter, WebClientData webClientData) { dBWebDataadapter.Store(webClientData); }
public void Store(WebClientData c) { ClientData clientData = new ClientData(c.Name, c.ID); perfectStore.Store(clientData); }
public void store(WebClientData webclientData) { Console.WriteLine($"bad client data: {webclientData}"); }
public void Store(WebClientData webClientData) { Console.WriteLine($"Name: {webClientData.Name} ID: {webClientData.Id} IP: {webClientData.Ip} SSL: {webClientData.Ssl}"); }
static void Main(string[] args) { WebClientData data = new WebClientData("Tomer", "12312", "125.12.4.1", true); storeData(new AdapterIDBWebDataToClientData(), data); }
public void BadStore(WebClientData wbData) { Console.WriteLine("Bad Store Storing"); Console.WriteLine("====================="); Console.WriteLine("ERROR! Try another store \n"); }
// non mutable private static void storeClient(IDBWebData webData, WebClientData webClientData) { webData.store(webClientData); }
static void Main(string[] args) { WebClientData webClientData = new WebClientData("Ofri", 24, "100.180.1.12", true); store(new AdapterWebToData(), webClientData); }
public void Store(WebClientData wcd) { ClientData cd = new ClientData(wcd.Name, wcd.ID); ps.Store(cd); }
public void Store(WebClientData wcd) { Console.WriteLine("Data is stored with BadStore (don't use it). Web Client Data: " + wcd.ToString()); }
// non mutable private static void storeData(IDBWebData webData, WebClientData wcd) { webData.Store(wcd); }
public void Store(WebClientData c) { ClientData data = new ClientData(c.name, c.ID); store.Store(data); }
public void store(WebClientData webClientData) { Console.WriteLine("Web client data is not so nice ... " + webClientData.ToString()); }
public void store(WebClientData webClientData) { dbData.store(webClientData.getClientData()); }
static void storeClient(IDBwebData webData, WebClientData data) { webData.store(data); }