Ejemplo n.º 1
0
 public BodyFatLogEntry fromDbEntity(
     com.fitbit.data.repo.greendao.logging.BodyFatLogEntry bodyfatlogentry) {
   if (bodyfatlogentry == null) {
     return null;
   } else {
     BodyFatLogEntry bodyfatlogentry1 = new BodyFatLogEntry();
     bodyfatlogentry1.setEntityId(bodyfatlogentry.getId());
     bodyfatlogentry1.setServerId(bodyfatlogentry.getServerId().longValue());
     bodyfatlogentry1.setLogDate(bodyfatlogentry.getLogDate());
     bodyfatlogentry1.a(new Fat(bodyfatlogentry.getValue().doubleValue()));
     bodyfatlogentry1.setTimeCreated(bodyfatlogentry.getTimeCreated());
     bodyfatlogentry1.setTimeUpdated(bodyfatlogentry.getTimeUpdated());
     bodyfatlogentry1.setUuid(MappingUtils.uuidFromString(bodyfatlogentry.getUuid()));
     bodyfatlogentry1.setEntityStatus(
         (com.fitbit.data.domain.Entity.EntityStatus)
             w.a(
                 bodyfatlogentry.getEntityStatus().intValue(),
                 com / fitbit / data / domain / Entity$EntityStatus));
     return bodyfatlogentry1;
   }
 }
Ejemplo n.º 2
0
 public com.fitbit.data.repo.greendao.logging.BodyFatLogEntry toDbEntity(
     BodyFatLogEntry bodyfatlogentry,
     com.fitbit.data.repo.greendao.logging.BodyFatLogEntry bodyfatlogentry1) {
   if (bodyfatlogentry == null) {
     return null;
   }
   com.fitbit.data.repo.greendao.logging.BodyFatLogEntry bodyfatlogentry2 = bodyfatlogentry1;
   if (bodyfatlogentry1 == null) {
     bodyfatlogentry2 = new com.fitbit.data.repo.greendao.logging.BodyFatLogEntry();
   }
   if (bodyfatlogentry2.getId() == null) {
     bodyfatlogentry2.setId(bodyfatlogentry.getEntityId());
   }
   bodyfatlogentry2.setServerId(Long.valueOf(bodyfatlogentry.getServerId()));
   bodyfatlogentry2.setLogDate(bodyfatlogentry.getLogDate());
   bodyfatlogentry2.setValue(Double.valueOf(bodyfatlogentry.a().b()));
   bodyfatlogentry2.setTimeCreated(bodyfatlogentry.getTimeCreated());
   bodyfatlogentry2.setTimeUpdated(bodyfatlogentry.getTimeUpdated());
   bodyfatlogentry2.setUuid(MappingUtils.uuidToString(bodyfatlogentry.getUuid()));
   bodyfatlogentry2.setEntityStatus(Integer.valueOf(bodyfatlogentry.getEntityStatus().getCode()));
   return bodyfatlogentry2;
 }