コード例 #1
0
  public static Object translateOutputPushNotificationsDevice(BaseModel<?> oldModel) {
    PushNotificationsDeviceClp newModel = new PushNotificationsDeviceClp();

    newModel.setModelAttributes(oldModel.getModelAttributes());

    newModel.setPushNotificationsDeviceRemoteModel(oldModel);

    return newModel;
  }
コード例 #2
0
  public static Object translateInputPushNotificationsDevice(BaseModel<?> oldModel) {
    PushNotificationsDeviceClp oldClpModel = (PushNotificationsDeviceClp) oldModel;

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

    newModel.setModelAttributes(oldClpModel.getModelAttributes());

    return newModel;
  }