public DetailResponse <WatchdogExclusion> CreateWatchDogExlusion() { var response = DetailResponse <WatchdogExclusion> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse <MessageWatchDog> CreateMessageWatchDog() { var response = DetailResponse <MessageWatchDog> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse <CustomField> CreateDeviceConfigProperty() { var response = DetailResponse <CustomField> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public override Task InitAsync() { var model1 = new Model1(); model1.Model2Litems = new List <Model2>(); var response = DetailResponse <Model1> .Create(model1); var frmEditPasswordLink = FormField.Create("EditPassword", new LagoVista.Core.Attributes.FormFieldAttribute(FieldType: LagoVista.Core.Attributes.FieldTypes.LinkButton)); response.View["linkButton"].Command = new RelayCommand(HideLinkButton); frmEditPasswordLink.Label = "Edit Password"; frmEditPasswordLink.Name = "editPassword"; frmEditPasswordLink.Watermark = "-edit password-"; frmEditPasswordLink.IsVisible = true; frmEditPasswordLink.Command = new RelayCommand(EditPasswordTap); response.View.Add("editPassword", frmEditPasswordLink); FormAdapter = new EditFormAdapter(this, response.View, this.ViewModelNavigation); FormAdapter.AddViewCell(nameof(Model1.TextField1)); FormAdapter.AddViewCell(nameof(Model1.DropDownBox1)); FormAdapter.AddViewCell(nameof(Model1.CheckBox1)); FormAdapter.AddViewCell("editPassword"); FormAdapter.AddViewCell(nameof(Model1.LinkButton)); FormAdapter.AddViewCell(nameof(Model1.Password)); FormAdapter.AddViewCell(nameof(Model1.MultiLine1)); FormAdapter.AddChildList <ViewModel2>(nameof(Model1.Model2Litems), model1.Model2Litems); return(base.InitAsync()); }
public DetailResponse <SimulatorState> CreateSimulatorState() { var state = DetailResponse <Models.SimulatorState> .Create(); state.Model.Id = Guid.NewGuid().ToId(); return(state); }
public DetailResponse <CustomField> CreateCustomField() { var response = DetailResponse <CustomField> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse<ModelNotes> CreateNewModelNote() { var model = DetailResponse<ModelNotes>.Create(); model.Model.Datestamp = DateTime.UtcNow.ToString(); model.Model.Id = Guid.NewGuid().ToId(); return model; }
public DetailResponse <DataStreamField> CreateDataStreamField() { var field = DetailResponse <DataStreamField> .Create(); field.Model.Id = Guid.NewGuid().ToId(); return(field); }
public DetailResponse <ActionParameter> CreateActionParameter(String id) { var response = DetailResponse <ActionParameter> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public async Task <DetailResponse <UserInfo> > ReturnCurrentUserAsync() { var appUser = await _appUserManager.GetUserByIdAsync(UserEntityHeader.Id, OrgEntityHeader, UserEntityHeader); //No need to send the password has down there, need to be careful when doing an update... return(DetailResponse <UserInfo> .Create(appUser.ToUserInfo())); }
public DetailResponse <DeploymentInstance> CreateInstance() { var response = DetailResponse <DeploymentInstance> .Create(); response.Model.Id = Guid.NewGuid().ToId(); response.Model.DeploymentConfiguration = EntityHeader <DeploymentConfigurations> .Create(DeploymentConfigurations.SingleInstance); response.Model.NuvIoTEdition = EntityHeader <NuvIoTEditions> .Create(NuvIoTEditions.Container); response.Model.LogStorage = EntityHeader <LogStorage> .Create(LogStorage.Cloud); response.Model.WorkingStorage = EntityHeader <WorkingStorage> .Create(WorkingStorage.Cloud); response.Model.DeploymentType = EntityHeader <DeploymentTypes> .Create(DeploymentTypes.Managed); response.Model.QueueType = EntityHeader <QueueTypes> .Create(QueueTypes.InMemory); response.Model.LogStorage = EntityHeader <LogStorage> .Create(LogStorage.Cloud); response.Model.PrimaryCacheType = EntityHeader <CacheTypes> .Create(CacheTypes.LocalInMemory); response.Model.SharedAccessKey1 = _instanceManager.GenerateAccessKey(); response.Model.SharedAccessKey2 = _instanceManager.GenerateAccessKey(); SetAuditProperties(response.Model); SetOwnedProperties(response.Model); return(response); }
public DetailResponse <BusinessRule> CreateBusinessRule() { var response = DetailResponse <BusinessRule> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse <Parameter> CreateInputCommandParameter() { var response = DetailResponse <Parameter> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse <BOMItem> CreateBOMItem() { var response = DetailResponse <BOMItem> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public DetailResponse <DeploymentInstance> CreateInstance() { var response = DetailResponse <DeploymentInstance> .Create(); response.Model.Id = Guid.NewGuid().ToId(); response.Model.DeploymentConfiguration = EntityHeader <DeploymentConfigurations> .Create(DeploymentConfigurations.SingleInstance); response.Model.NuvIoTEdition = EntityHeader <NuvIoTEditions> .Create(NuvIoTEditions.Container); response.Model.LogStorage = EntityHeader <LogStorage> .Create(LogStorage.Cloud); response.Model.WorkingStorage = EntityHeader <WorkingStorage> .Create(WorkingStorage.Cloud); response.Model.DeploymentType = EntityHeader <DeploymentTypes> .Create(DeploymentTypes.Managed); response.Model.QueueType = EntityHeader <QueueTypes> .Create(QueueTypes.InMemory); response.Model.LogStorage = EntityHeader <LogStorage> .Create(LogStorage.Cloud); response.Model.PrimaryCacheType = EntityHeader <CacheTypes> .Create(CacheTypes.LocalInMemory); response.Model.SharedAccessKey1 = _instanceManager.GenerateAccessKey(); response.Model.SharedAccessKey2 = _instanceManager.GenerateAccessKey(); response.View["timeZone"].Options = _timeZoneServices.GetTimeZones().Select(tz => new EnumDescription() { Key = tz.Id, Label = tz.DisplayName, Name = tz.DisplayName }).ToList(); SetAuditProperties(response.Model); SetOwnedProperties(response.Model); return(response); }
public DetailResponse <SecurityField> CreateSentinelSecurityField() { var sentinelConfiguration = DetailResponse <SecurityField> .Create(); sentinelConfiguration.Model.Id = Guid.NewGuid().ToId(); return(sentinelConfiguration); }
public DetailResponse <TicketStatus> Createticketstatusitem() { var status = DetailResponse <TicketStatus> .Create(); status.Model.Id = Guid.NewGuid().ToId(); return(status); }
public DetailResponse <AdminNote> CreateAdminNote() { var response = DetailResponse <AdminNote> .Create(); response.Model.Id = Guid.NewGuid().ToId(); return(response); }
public async Task <DetailResponse <DeploymentInstance> > GetInstanceAsync(String id) { var deviceInstance = await _instanceManager.GetInstanceAsync(id, OrgEntityHeader, UserEntityHeader); var response = DetailResponse <DeploymentInstance> .Create(deviceInstance); return(response); }
public DetailResponse <ModelLabel> CreateLabel() { var lbl = new ModelLabel(); lbl.Id = Guid.NewGuid().ToId(); return(DetailResponse <ModelLabel> .Create(lbl)); }
public async Task <DetailResponse <UnitSet> > GetUnitSetAsync(String unitsetid) { var unitSet = await _deviceAdminManager.GetAttributeUnitSetAsync(unitsetid, OrgEntityHeader, UserEntityHeader); var response = DetailResponse <UnitSet> .Create(unitSet); return(response); }
public async Task <DetailResponse <DeviceGroup> > GetDeviceGroupAsync(string devicerepoid, String id) { var repo = await _repoManager.GetDeviceRepositoryAsync(devicerepoid, OrgEntityHeader, UserEntityHeader); var deviceGroup = await _deviceGroupManager.GetDeviceGroupAsync(repo, id, OrgEntityHeader, UserEntityHeader); return(DetailResponse <DeviceGroup> .Create(deviceGroup)); }
public async Task <DetailResponse <Solution> > GetSolutionAsync(String id) { var deploymentConfiguration = await _solutionManager.GetSolutionAsync(id, OrgEntityHeader, UserEntityHeader); var response = DetailResponse <Solution> .Create(deploymentConfiguration); return(response); }
public async Task <DetailResponse <Device> > GetDeviceByDeviceIdAndMetaData(string devicerepoid, string deviceid) { var repo = await _repoManager.GetDeviceRepositoryWithSecretsAsync(devicerepoid, OrgEntityHeader, UserEntityHeader); var device = await _deviceManager.GetDeviceByDeviceIdAsync(repo, deviceid, OrgEntityHeader, UserEntityHeader, true); return(DetailResponse <Device> .Create(device)); }
public async Task <DetailResponse <DeviceConfiguration> > GetDeviceConfigurationAsync(String id) { var deviceConfiguration = await _deviceConfigManager.GetDeviceConfigurationAsync(id, OrgEntityHeader, UserEntityHeader); var response = DetailResponse <DeviceConfiguration> .Create(deviceConfiguration); return(response); }
public DetailResponse <ApplicationCacheValue> CreateApplicationCacheValue() { var value = DetailResponse <ApplicationCacheValue> .Create(); value.Model.CreationDate = DateTime.UtcNow.ToJSONString(); value.Model.LastUpdateDate = value.Model.CreationDate; return(value); }
public DetailResponse<Model> CreateNewModel() { var model = DetailResponse<Model>.Create(); model.Model.Id = Guid.NewGuid().ToId(); SetAuditProperties(model.Model); SetOwnedProperties(model.Model); return model; }
public DetailResponse <FirmwareRevision> RevisionFactory() { var response = DetailResponse <FirmwareRevision> .Create(); response.Model.Id = Guid.NewGuid().ToString(); return(response); }
public DetailResponse <WorkflowInput> CreateSensor() { var response = DetailResponse <WorkflowInput> .Create(); response.Model.Id = Guid.NewGuid().ToId(); SetAuditProperties(response.Model); SetOwnedProperties(response.Model); return(response); }
public DetailResponse <InputCommand> CreateInputCommand() { var response = DetailResponse <InputCommand> .Create(); response.Model.Id = Guid.NewGuid().ToId(); SetAuditProperties(response.Model); SetOwnedProperties(response.Model); return(response); }