Beispiel #1
0
        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"
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            IDBwebData    webData = new IDBAdapter();
            WebClientData data    = new WebClientData("bad", "1", "ip", true);

            storeClient(webData, data);
        }
Beispiel #4
0
        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();
        }
Beispiel #5
0
        public void store(WebClientData wbData)
        {
            clientData   cData  = new clientData(wbData.Name, wbData.ID);
            PerfectStore pStore = new PerfectStore();

            Console.WriteLine("ADAPTATION!");
            pStore.store(cData);
        }
Beispiel #6
0
        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)}");
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
        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);
        }
Beispiel #9
0
        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);
        }
Beispiel #10
0
        static void Main(string[] args)
        {
            WebClientData webData = new WebClientData("blalal", 12, "127.0.0.1", true);

            storeClient(new AdapterDBToWeb(), webData);
        }
Beispiel #11
0
 static void StoreClient(IDBWebData d, WebClientData c)
 {
     d.Store(c);
 }
Beispiel #12
0
 public void Store(WebClientData webClientData)
 {
     perfectStoreFunction.Store(webClientData.GetClientData());
 }
Beispiel #13
0
 public void store(WebClientData webClientData)
 {
     Console.WriteLine("web client data={0}", webClientData.ID);
 }
Beispiel #14
0
 public void Store(WebClientData c)
 {
     Console.WriteLine("Store is bad");
 }
Beispiel #15
0
 // non mutable
 private static void store(IDBWebData idb, WebClientData webClientData)
 {
     idb.store(webClientData);
 }
Beispiel #16
0
        // 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);
        }
Beispiel #18
0
 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}");
 }
Beispiel #20
0
        static void Main(string[] args)
        {
            WebClientData data = new WebClientData("Tomer", "12312", "125.12.4.1", true);

            storeData(new AdapterIDBWebDataToClientData(), data);
        }
Beispiel #21
0
 public void BadStore(WebClientData wbData)
 {
     Console.WriteLine("Bad Store Storing");
     Console.WriteLine("=====================");
     Console.WriteLine("ERROR! Try another store \n");
 }
Beispiel #22
0
 // non mutable
 private static void storeClient(IDBWebData webData, WebClientData webClientData)
 {
     webData.store(webClientData);
 }
Beispiel #23
0
        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);
        }
Beispiel #25
0
 public void Store(WebClientData wcd)
 {
     Console.WriteLine("Data is stored with BadStore (don't use it). Web Client Data: " + wcd.ToString());
 }
Beispiel #26
0
 // 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);
        }
Beispiel #28
0
 public void store(WebClientData webClientData)
 {
     Console.WriteLine("Web client data is not so nice ... " + webClientData.ToString());
 }
Beispiel #29
0
 public void store(WebClientData webClientData)
 {
     dbData.store(webClientData.getClientData());
 }
Beispiel #30
0
 static void storeClient(IDBwebData webData, WebClientData data)
 {
     webData.store(data);
 }