Example #1
0
 public void Run()
 {
     if (fieldTypeWithHints != null)
     {
         fieldTypesCallback.OnLoaded(fieldTypeWithHints);
     }
     else
     {
         fieldTypesCallback.OnDataNotAvailable("Field Types not found.");
     }
 }
Example #2
0
 public void Run()
 {
     if (hintMap != null)
     {
         fieldTypeMapCallback.OnLoaded(hintMap);
     }
     else
     {
         fieldTypeMapCallback.OnDataNotAvailable("FieldTypes not found");
     }
 }
        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
            });
        }
Example #4
0
 public void Run()
 {
     datasetsCallback.OnDataNotAvailable("No data found.");
 }