Exemplo n.º 1
0
        private void InitRequests(HTTPDriver driver, ServiceURL services)
        {
            IHttpRequester requester;
            int            max = mHttpReqeuesters.Size;

            for (int i = 0; i < max; i++)
            {
                requester = mHttpReqeuesters.GetValueByIndex(i);
                requester.Init(driver, services);
            }
        }
Exemplo n.º 2
0
        public void Init(Func <HTTPDriver> httpDriverGetter, Func <ServiceURL> serviceURLGetter, Action <bool, Action> driverStartUpdater, MonoBehaviour componentOwner)
        {
            HTTPDriver.StartUpdater = driverStartUpdater;

            HTTPDriver driverInstance = httpDriverGetter.Invoke();

            driverInstance.ComponentOwner = componentOwner;

            ServiceURL serviceURL = serviceURLGetter.Invoke();

            InitRequests(driverInstance, serviceURL);
        }
Exemplo n.º 3
0
 public void Init(HTTPDriver driver, ServiceURL services)
 {
     Driver   = driver;
     Services = services;
     RevertURL();
 }
Exemplo n.º 4
0
 public void SetServicURLs(ServiceURL services)
 {
     Services = services;
 }