예제 #1
0
 public void GetFieldTypeByAutofillHints(IDataCallback <Dictionary <string, FieldTypeWithHeuristics> > fieldTypeMapCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable8
     {
         fieldTypeMapCallback = fieldTypeMapCallback
     });
 }
예제 #2
0
 public void GetFieldTypes(IDataCallback <List <FieldTypeWithHeuristics> > fieldTypesCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable6
     {
         fieldTypesCallback = fieldTypesCallback
     });
 }
예제 #3
0
 public void GetAutofillDatasets(List <string> allAutofillHints, IDataCallback <List <DatasetWithFilledAutofillFields> > datasetsCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable1
     {
         datasetsCallback = datasetsCallback,
         allAutofillHints = allAutofillHints
     });;
 }
예제 #4
0
 public void GetAutofillDatasetWithId(string datasetId, IDataCallback <DatasetWithFilledAutofillFields> callback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable11
     {
         callback  = callback,
         datasetId = datasetId
     });
 }
예제 #5
0
 public void GetFieldType(string typeName, IDataCallback <FieldType> fieldTypeCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable7
     {
         typeName          = typeName,
         fieldTypeCallback = fieldTypeCallback
     });
 }
예제 #6
0
 public void GetFilledAutofillField(string datasetId, string fieldTypeName, IDataCallback <FilledAutofillField> fieldCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable9
     {
         datasetId     = datasetId,
         fieldTypeName = fieldTypeName,
         fieldCallback = fieldCallback
     });
 }
예제 #7
0
        Customer IDataServiceV2.GetCustomer(int customerId)
        {
            IDataCallback callback = OperationContext.Current.GetCallbackChannel <IDataCallback>();

            Customer customer = GetCustomer(customerId);

            t1 = new Task(() =>
            {
                var address = GetCustomerAddress(customer);

                if (callback == null)
                {
                    Console.WriteLine("DataService.GetCustomer({0}) failed to get Address callback channel!", customerId);
                }
                else
                {
                    callback.OnCustomerAddressComplete(address);
                }
            });

            t1.Start();

            t2 = new Task(() =>
            {
                var invoices = GetCustomerInvoices(customer);

                if (callback == null)
                {
                    Console.WriteLine("DataService.GetCustomer({0}) failed to get Invoices callback channel!", customerId);
                }
                else
                {
                    callback.OnCustomerInvoicesComplete(invoices);
                }
            });

            t2.Start();

            return(customer);
        }
        public void CheckValid(Util.DalCheckRequirement dalCheckRequirement, DalInfo dalInfo, IDataCallback <DalCheck> dalCheckCallback)
        {
            this.dalCheckCallback    = dalCheckCallback;
            this.dalCheckRequirement = dalCheckRequirement;

            if (dalCheckRequirement.Equals(Util.DalCheckRequirement.Disabled))
            {
                dalCheck        = new DalCheck();
                dalCheck.linked = true;
                dalCheckCallback.OnLoaded(dalCheck);
                return;
            }

            dalCheck = mCache[dalInfo];
            if (dalCheck != null)
            {
                dalCheckCallback.OnLoaded(dalCheck);
                return;
            }
            packageName = dalInfo.PackageName;
            webDomain   = dalInfo.WebDomain;

            try
            {
                var packageInfo = mPackageManager.GetPackageInfo(packageName, PackageInfoFlags.Signatures);
                fingerprint = SecurityHelper.GetFingerprint(packageInfo, packageName);
            }
            catch (Exception e)
            {
                dalCheckCallback.OnDataNotAvailable("Error getting fingerprint for %s",
                                                    packageName);
                return;
            }
            Util.Logd("validating domain %s for pkg %s and fingerprint %s.", webDomain,
                      packageName, fingerprint);
            mDalService.Check(webDomain, PERMISSION_GET_LOGIN_CREDS, packageName, fingerprint).Enqueue(new MyCallBack {
                repository = this
            });
        }
 // Confirming the Connection
 // Accept the connection request
 public void AcceptConnectionRequest(string endpointId, ConnectInfo connectInfo, IDataCallback dataCallback)
 {
     Debug.Log("[HMS] Accept Connection Request, Endpoint Name:" + connectInfo.EndpointName);
     Nearby.DiscoveryEngine.AcceptConnect(endpointId, dataCallback);
 }
예제 #10
0
 public void GetAllAutofillDatasets(IDataCallback <List <DatasetWithFilledAutofillFields> > datasetsCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable2 {
         datasetsCallback = datasetsCallback
     });
 }
예제 #11
0
 public void GetAutofillDataset(List <string> allAutofillHints, string datasetName, IDataCallback <DatasetWithFilledAutofillFields> datasetsCallback)
 {
     mAppExecutors.diskIO.Execute(new AppExecutorsRunable3
     {
         datasetName      = datasetName,
         allAutofillHints = allAutofillHints,
         datasetsCallback = datasetsCallback
     });
 }
예제 #12
0
 public DataCallback(IDataCallback listener)
     : base("org.m0skit0.android.hms.unity.nearby.DataListenerWrapper", new DataCallbackInterface(listener))
 {
 }
예제 #13
0
 public DataCallbackInterface(IDataCallback listener) : base("org.m0skit0.android.hms.unity.nearby.DataListener")
 {
     mListener = listener;
 }
예제 #14
0
 public FftData(IDataCallback <double> cb)
 {
     _cb = cb;
 }
 public ITask <Void> AcceptConnect(String endpointId, IDataCallback dataCallback)
 => CallAsWrapper <TaskVoidWrapper>("acceptConnect", endpointId, new DataCallback(dataCallback));