Example #1
0
        void Start()
        {
            _authModule = new FirebaseAuthModule();
            FB.Init();
            _authModule.Init();
            _messagesService = new SharedMessagesService();
            var firebaseStorage = new FirebaseSharedMessagesStorage();

            firebaseStorage.Init(_authModule);
            _messageStorage = firebaseStorage;
            _textProcessor  = new TextSharedMessageProcessor();
            _messagesService.RegisterProcessor <TextSharedMessage>(_textProcessor);
            _messagesService.Init(_authModule, _messageStorage);
            _messageControls.Init(_messagesService, _authModule);

            _loginControls.Init(_authModule);

            _remoteObjectsProvider = new FirebaseRemoteDataProvider();
            _mutableObjectFactory  = new MutableObjectFactory(_remoteObjectsProvider);
            _batchUpdater          = new FirebaseBatchUpdater();
            _queries = new FirebasePvpQueries(_remoteObjectsProvider);
            _profileControls.Init(_mutableObjectFactory, _authModule, _batchUpdater);
            _functionControls.Init(_queries);
            _transactionControls.Init(_remoteObjectsProvider, _authModule);
        }
 public MutableObjectFactory(RemoteObjectsProvider objectProvider)
 {
     _objectsProvider = objectProvider;
 }
Example #3
0
 public FirebasePvpQueries(RemoteObjectsProvider provider)
 {
     _provider = provider;
 }
 public void Init(RemoteObjectsProvider objectProvider, IAuthModule authModule)
 {
     _objectProvider = objectProvider;
     _auth           = authModule;
 }