public PhoneWithAllFunctions(IPhone phone)
 {
     _phone    = phone;
     _camera   = new Camera(phone);
     _internet = new Internet(phone);
     _navigate = new NavigatePhone(phone);
 }
예제 #2
0
 public static bool estarConectado()
 {
     if (_internet == null)
     {
         _internet = DependencyService.Get <IInternet>();
     }
     return(_internet.estarConectado());
 }
예제 #3
0
 public LoginEveryTimeBehaviour(ILoggerWrapper logger,
                                ITokenService tokenService,
                                IAuthenticationClient client,
                                IInternet internet,
                                ISessionService session,
                                IUnitOfWork work,
                                ICommunicationTypeClient communication,
                                ICommunicationTypeService communicationTypeService)
     : base(logger, tokenService, client, internet, session, work, communication, communicationTypeService)
 {
 }
예제 #4
0
 public ProcessCollectorBehaviour(IProcessCollectorFactory processFactory,
                                  ISynchronizationClientFactory syncFactory,
                                  IUnitOfWork unitOfWork,
                                  IInternet internet,
                                  ISessionService session,
                                  ILoggerWrapper wrapper,
                                  IDateTime dateTime,
                                  INotificationService notification)
     : base(syncFactory, unitOfWork, internet, session, wrapper, dateTime, notification)
 {
     _processFactory = processFactory;
 }
예제 #5
0
        public ProxyInternet()
        {
            Console.WriteLine("ProxyClient: Initialized");

            BannedSites = new List <string>();
            BannedSites.Add("abc.com");
            BannedSites.Add("def.com");
            BannedSites.Add("ijk.com");
            BannedSites.Add("lnm.com");

            RealInternet = new RealInternet();
        }
예제 #6
0
 public SyncBehaviour(IInternet internet,
                      IUnitOfWork unitOfWork,
                      ILoggerWrapper logger,
                      ISynchronizationClientFactory factory,
                      ISessionService sessionService,
                      IDateTime time,
                      INotificationService notification)
 {
     _time           = time;
     _internet       = internet;
     _logger         = logger;
     _factory        = factory;
     _sessionService = sessionService;
     _unitOfWork     = unitOfWork;
     _notification   = notification;
 }
예제 #7
0
 public CommunicationTypeCheckBehaviour(ICommunicationTypeClient communication,
                                        ICommunicationTypeService communicationTypeService,
                                        IInternet internet,
                                        ILoggerWrapper wrapper,
                                        IDateTime dateTime,
                                        ISessionService session,
                                        INotificationService notification)
 {
     _communication            = communication;
     _communicationTypeService = communicationTypeService;
     _logger       = wrapper;
     _time         = dateTime;
     _internet     = internet;
     _session      = session;
     _notification = notification;
 }
예제 #8
0
 protected CommonCollectorBehaviour(
     ISynchronizationClientFactory syncFactory,
     IUnitOfWork unitOfWork,
     IInternet internet,
     ISessionService session,
     ILoggerWrapper wrapper,
     IDateTime dateTime,
     INotificationService notification)
 {
     _syncFactory  = syncFactory;
     _unitOfWork   = unitOfWork;
     _internet     = internet;
     _session      = session;
     _logger       = wrapper;
     _time         = dateTime;
     _notification = notification;
 }
예제 #9
0
 protected LoginBehaviourRoot(ILoggerWrapper logger,
                              ITokenService tokenService,
                              IAuthenticationClient client,
                              IInternet internet,
                              ISessionService session,
                              IUnitOfWork work,
                              ICommunicationTypeClient communication,
                              ICommunicationTypeService communicationTypeService)
 {
     _logger                   = logger;
     _tokenService             = tokenService;
     _client                   = client;
     _internet                 = internet;
     _session                  = session;
     _work                     = work;
     _communication            = communication;
     _communicationTypeService = communicationTypeService;
 }
예제 #10
0
 /// <summary>
 /// Creates a new data source connected to RacingPost.com.
 /// </summary>
 /// <param name="internet">An object this class can use to connect to the internet, e.g. `Internet`.</param>
 public RacingPostDataSource(IInternet internet)
 {
     this.internet = internet;
 }
예제 #11
0
 /// <summary>
 /// Creates a new data source connected to RacingPost.com.
 /// </summary>
 /// <param name="internet">An object this class can use to connect to the internet, e.g. `Internet`.</param>
 public RacingPostDataSource(IInternet internet)
 {
     this.internet = internet;
 }
 public PhoneWithCameraAndInternet(IPhone phone)
 {
     _phone    = phone;
     _camera   = new Camera(phone);
     _internet = new Internet(phone);
 }