コード例 #1
0
 private DigitalOutputViewDTO FormatOutputViewEntityToDTOEntity(DigitalOutputViewEntity formatedResult)
 {
     return(new DigitalOutputViewDTO()
     {
         pin = formatedResult.pin,
         state = formatedResult.state == "ON" ? true : false,
     });
 }
コード例 #2
0
 private DigitalOutputViewDTO MapInternalToExternal(DigitalOutputViewEntity entity)
 {
     return(new DigitalOutputViewDTO()
     {
         pin = entity.pin,
         state = entity.state.ToUpper() == "ON" ? true : false
     });
 }