예제 #1
0
 public static PSDeviceTwin ToPSDeviceTwin(Twin deviceTwin)
 {
     return(IotHubUtils.ConvertObject <Twin, PSDeviceTwin>(deviceTwin));
 }
예제 #2
0
 public static PSModule ToPSModule(Module module)
 {
     return(IotHubUtils.ConvertObject <Module, PSModule>(module));
 }
예제 #3
0
 public static IEnumerable <PSModules> ToPSModules(IEnumerable <Module> modules)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Module>, IEnumerable <PSModules> >(modules.ToList()));
 }
예제 #4
0
 public static IEnumerable <PSDevices> ToPSDevices(IEnumerable <Device> devices)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Device>, IEnumerable <PSDevices> >(devices.ToList()));
 }
예제 #5
0
 public static PSDevice ToPSDevice(Device device)
 {
     return(IotHubUtils.ConvertObject <Device, PSDevice>(device));
 }
예제 #6
0
 public static Module ToModule(PSModule psModule)
 {
     return(IotHubUtils.ConvertObject <PSModule, Module>(psModule));
 }
예제 #7
0
 public static Device ToDevice(PSDevice psDevice)
 {
     return(IotHubUtils.ConvertObject <PSDevice, Device>(psDevice));
 }
예제 #8
0
 public static PSModuleTwin ToPSModuleTwin(Twin moduleTwin)
 {
     return(IotHubUtils.ConvertObject <Twin, PSModuleTwin>(moduleTwin));
 }