static public string LocalizedString(this ExtendJobType jobType) { switch (jobType) { case ExtendJobType.ExportDevices: return(Strings.ExportDevicesJobType); case ExtendJobType.ImportDevices: return(Strings.ImportDevicesJobType); case ExtendJobType.ScheduleDeviceMethod: return(Strings.ScheduleDeviceMethodJobType); case ExtendJobType.ScheduleUpdateTwin: return(Strings.ScheduleUpdateTwinJobType); case ExtendJobType.ScheduleUpdateIcon: return(Strings.ScheduleUpdateIconJobType); case ExtendJobType.ScheduleRemoveIcon: return(Strings.ScheduleRemoveIconJobType); default: return(Strings.UnknownJobType); } }
public JobRepositoryModel(string jobId, string filterId, string jobName, string filterName, ExtendJobType jobType, string methodName = null) { JobId = jobId; JobName = jobName; FilterId = filterId; FilterName = filterName; MethodName = methodName; JobType = jobType; }