public static PSModuleTwin ToPSModuleTwin(Twin moduleTwin) { return(IotHubUtils.ConvertObject <Twin, PSModuleTwin>(moduleTwin)); }
public static IEnumerable <PSConfigurations> ToPSConfigurations(IEnumerable <Configuration> configs) { return(IotHubUtils.ConvertObject <IEnumerable <Configuration>, IEnumerable <PSConfigurations> >(configs.ToList())); }
public static PSDeviceTwin ToPSDeviceTwin(Twin deviceTwin) { return(IotHubUtils.ConvertObject <Twin, PSDeviceTwin>(deviceTwin)); }
public static PSConfiguration ToPSConfiguration(Configuration config) { return(IotHubUtils.ConvertObject <Configuration, PSConfiguration>(config)); }
public static Configuration ToConfiguration(PSConfiguration psConfig) { return(IotHubUtils.ConvertObject <PSConfiguration, Configuration>(psConfig)); }
public static PSModule ToPSModule(Module module) { return(IotHubUtils.ConvertObject <Module, PSModule>(module)); }
public static IEnumerable <PSModules> ToPSModules(IEnumerable <Module> modules) { return(IotHubUtils.ConvertObject <IEnumerable <Module>, IEnumerable <PSModules> >(modules.ToList())); }
public static PSDevice ToPSDevice(Device device) { return(IotHubUtils.ConvertObject <Device, PSDevice>(device)); }
public static IEnumerable <PSDevices> ToPSDevices(IEnumerable <Device> devices) { return(IotHubUtils.ConvertObject <IEnumerable <Device>, IEnumerable <PSDevices> >(devices.ToList())); }
public static Module ToModule(PSModule psModule) { return(IotHubUtils.ConvertObject <PSModule, Module>(psModule)); }
public static Device ToDevice(PSDevice psDevice) { return(IotHubUtils.ConvertObject <PSDevice, Device>(psDevice)); }
public static IEnumerable <PSConfigurations> ToPSConfigurations(IEnumerable <Configuration> configs) { return(IotHubUtils.ConvertObject <IEnumerable <Configuration>, IEnumerable <PSConfigurations> >(configs.Where(c => c.Content.ModulesContent == null).ToList())); }
public static PSDeployment ToPSDeployment(Configuration config) { return((config != null && config.Content.ModulesContent != null) ? IotHubUtils.ConvertObject <Configuration, PSDeployment>(config) : null); }
public static PSConfiguration ToPSConfiguration(Configuration config) { return((config != null && config.Content.ModulesContent == null) ? IotHubUtils.ConvertObject <Configuration, PSConfiguration>(config) : null); }