/*
 * Copyright 2014-2022 Web Firm Framework
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.webfirmframework.wffweb.server.page;

/**
 * @since 3.0.16
 *
 */
public class WebSocketOpenedRecord {

    private final BrowserPage browserPage;

    private final HeartbeatManager heartbeatManager;

    public WebSocketOpenedRecord(final BrowserPage browserPage, final HeartbeatManager heartbeatManager) {
        super();
        this.browserPage = browserPage;
        this.heartbeatManager = heartbeatManager;
    }

    public BrowserPage browserPage() {
        return browserPage;
    }

    public HeartbeatManager heartbeatManager() {
        return heartbeatManager;
    }

}

@@ -671,19 +671,16 @@
  3.0.16%0A
- *%0A
  */%0Apubl
@@ -686,147 +686,14 @@
 lic 
-class WebSocketOpenedRecord %7B%0A%0A    private final BrowserPage browserPage;%0A%0A    private final HeartbeatManager heartbeatManager;%0A%0A    public
+record
  Web
@@ -711,22 +711,16 @@
 dRecord(
-final 
 BrowserP
@@ -739,251 +739,45 @@
 age,
- final HeartbeatManager heartbeatManager) %7B%0A        super();%0A        this.browserPage = browserPage;%0A        this.heartbeatManager = heartbeatManager;%0A
+%0A                            
     
-%7D%0A%0A
     
-public BrowserPage browserPage() %7B%0A        return browserPage;%0A    %7D%0A%0A    public 
 Hear
@@ -809,51 +809,11 @@
 ager
-(
 ) %7B
-%0A        return heartbeatManager;%0A    %7D
 %0A%0A%7D%0A

Converted a possible data class into Java record