public ActivationInfo(ActivationDataRepository dataRepository) { this.dataRepository = dataRepository; this.ValidationIds = new ReadOnlyCollection <PhoneActivationData>((IList <PhoneActivationData>) new List <PhoneActivationData>() { new PhoneActivationData("A"), new PhoneActivationData("B"), new PhoneActivationData("C"), new PhoneActivationData("D"), new PhoneActivationData("E"), new PhoneActivationData("F"), new PhoneActivationData("G"), new PhoneActivationData("H") }); }
public IActivateResponse TryPhoneActivation(IList <PhoneActivationData> validationIds) { if (!string.IsNullOrEmpty(this.cachedInstallationId)) { return(this.licenseService.EnterOfflineConfirmationId(this.cachedInstallationId, ActivationDataRepository.BuildValidationIdString(validationIds))); } return((IActivateResponse) new ActivateResponse()); }
public List <PhoneActivationData> GetInstallationIdsForMachine() { this.cachedInstallationId = this.licenseService.GetOfflineInstallationId(); return(ActivationDataRepository.SplitLicenseStringIntoInstallationIdGroups(this.cachedInstallationId)); }