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

            storeClient(webData, data);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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)}");
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 10
0
        static void Main(string[] args)
        {
            WebClientData webData = new WebClientData("blalal", 12, "127.0.0.1", true);

            storeClient(new AdapterDBToWeb(), webData);
        }
Ejemplo n.º 11
0
 static void StoreClient(IDBWebData d, WebClientData c)
 {
     d.Store(c);
 }
Ejemplo n.º 12
0
 public void Store(WebClientData webClientData)
 {
     perfectStoreFunction.Store(webClientData.GetClientData());
 }
Ejemplo n.º 13
0
 public void store(WebClientData webClientData)
 {
     Console.WriteLine("web client data={0}", webClientData.ID);
 }
Ejemplo n.º 14
0
 public void Store(WebClientData c)
 {
     Console.WriteLine("Store is bad");
 }
Ejemplo n.º 15
0
 // non mutable
 private static void store(IDBWebData idb, WebClientData webClientData)
 {
     idb.store(webClientData);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 17
0
        public void Store(WebClientData c)
        {
            ClientData clientData = new ClientData(c.Name, c.ID);

            perfectStore.Store(clientData);
        }
Ejemplo n.º 18
0
 public void store(WebClientData webclientData)
 {
     Console.WriteLine($"bad client data: {webclientData}");
 }
Ejemplo n.º 19
0
 public void Store(WebClientData webClientData)
 {
     Console.WriteLine($"Name: {webClientData.Name} ID: {webClientData.Id} IP: {webClientData.Ip} SSL: {webClientData.Ssl}");
 }
Ejemplo n.º 20
0
        static void Main(string[] args)
        {
            WebClientData data = new WebClientData("Tomer", "12312", "125.12.4.1", true);

            storeData(new AdapterIDBWebDataToClientData(), data);
        }
Ejemplo n.º 21
0
 public void BadStore(WebClientData wbData)
 {
     Console.WriteLine("Bad Store Storing");
     Console.WriteLine("=====================");
     Console.WriteLine("ERROR! Try another store \n");
 }
Ejemplo n.º 22
0
 // non mutable
 private static void storeClient(IDBWebData webData, WebClientData webClientData)
 {
     webData.store(webClientData);
 }
Ejemplo n.º 23
0
        static void Main(string[] args)
        {
            WebClientData webClientData = new WebClientData("Ofri", 24, "100.180.1.12", true);

            store(new AdapterWebToData(), webClientData);
        }
Ejemplo n.º 24
0
        public void Store(WebClientData wcd)
        {
            ClientData cd = new ClientData(wcd.Name, wcd.ID);

            ps.Store(cd);
        }
Ejemplo n.º 25
0
 public void Store(WebClientData wcd)
 {
     Console.WriteLine("Data is stored with BadStore (don't use it). Web Client Data: " + wcd.ToString());
 }
Ejemplo n.º 26
0
 // non mutable
 private static void storeData(IDBWebData webData, WebClientData wcd)
 {
     webData.Store(wcd);
 }
Ejemplo n.º 27
0
        public void Store(WebClientData c)
        {
            ClientData data = new ClientData(c.name, c.ID);

            store.Store(data);
        }
Ejemplo n.º 28
0
 public void store(WebClientData webClientData)
 {
     Console.WriteLine("Web client data is not so nice ... " + webClientData.ToString());
 }
Ejemplo n.º 29
0
 public void store(WebClientData webClientData)
 {
     dbData.store(webClientData.getClientData());
 }
Ejemplo n.º 30
0
 static void storeClient(IDBwebData webData, WebClientData data)
 {
     webData.store(data);
 }