Exemplo n.º 1
0
  public static Object translateOutputPushNotificationsDevice(BaseModel<?> oldModel) {
    PushNotificationsDeviceClp newModel = new PushNotificationsDeviceClp();

    newModel.setModelAttributes(oldModel.getModelAttributes());

    newModel.setPushNotificationsDeviceRemoteModel(oldModel);

    return newModel;
  }
Exemplo n.º 2
0
  public static Object translateInputPushNotificationsDevice(BaseModel<?> oldModel) {
    PushNotificationsDeviceClp oldClpModel = (PushNotificationsDeviceClp) oldModel;

    BaseModel<?> newModel = oldClpModel.getPushNotificationsDeviceRemoteModel();

    newModel.setModelAttributes(oldClpModel.getModelAttributes());

    return newModel;
  }