public Demo()
        {
            //Construct an APIConfig with SellerID,  APIKey(Authorization) and SecretKey.
            //APIConfig config = new APIConfig("****", "********************************", "********-****-****-****-************");
            // or load the config file to get it.
            APIConfig USA_Config_XML = APIConfig.FromJsonFile("configUSA_JSON.json");
            APIConfig CAN_Config_XML = APIConfig.FromJsonFile("configCAN_JSON.json");


            //Create a APIClient with the config
            APIClient fakeUSAClientXML = new APIClient(USA_Config_XML)
            {
                SimulationEnabled = true
            };
            APIClient fakeCANClientXML = new APIClient(CAN_Config_XML)
            {
                SimulationEnabled = true
            };


            //Create the Api Call object with he client.
            ordercall    = new OrderCall(fakeUSAClientXML);
            itemCall     = new ItemCall(fakeUSAClientXML);
            CANordercall = new OrderCall(fakeCANClientXML);
            CANitemCall  = new ItemCall(fakeCANClientXML);
            sellerCall   = new SellerCall(fakeUSAClientXML);
            datafeedCall = new DatafeedCall(fakeUSAClientXML);
            rmaCall      = new RMACall(fakeUSAClientXML);
            shippingCall = new ShippingCall(fakeUSAClientXML);
            reportCall   = new ReportCall(fakeUSAClientXML);
            otherCall    = new OtherCall(fakeUSAClientXML);
        }
Exemplo n.º 2
0
 public void SetItem(Transform transform, ItemCall _itemCalled)
 {
     if (itemCalled != null)
     {
         itemCalled.active = false;
     }
     itemCalled        = _itemCalled;
     itemCalled.active = true;
     _transform        = transform;
     OpenMenuItem();
 }
Exemplo n.º 3
0
 public ItemTest()
 {
     api             = new ItemCall(USAClientXML);
     api_json        = new ItemCall(USAClientJSON);
     B2Bapi          = new ItemCall(B2BClientXML);
     B2BJSON         = new ItemCall(B2BClientJSON);
     CANXML          = new ItemCall(CANClientXML);
     CANJSON         = new ItemCall(CANClientJSON);
     fadeAPI_USA_XML = new ItemCall(fakeUSAClientXML);
     fadeAPI_B2B_XML = new ItemCall(fakeB2BClientXML);
     fadeAPI_CAN_XML = new ItemCall(fakeCANClientXML);
 }
        public Demo()
        {
            //Construct an APIConfig with SellerID,  APIKey(Authorization) and SecretKey.
            APIConfig config = new APIConfig("****", "********************************", "********-****-****-****-************");
            // or load the config file to get it.
            //APIConfig config = APIConfig.FromJsonFile("setting.json");

            //Create a APIClient with the config
            APIClient client = new APIClient(config);

            //Create the Api Call object with he client.
            ordercall    = new OrderCall(client);
            itemCall     = new ItemCall(client);
            sellerCall   = new SellerCall(client);
            datafeedCall = new DatafeedCall(client);
            rmaCall      = new RMACall(client);
            shippingCall = new ShippingCall(client);
            reportCall   = new ReportCall(client);
            otherCall    = new OtherCall(client);
        }