Updated to kotlin

This commit is contained in:
Robinson 2021-04-24 00:07:49 +02:00
parent a229b85ee7
commit dccc46d16b

View File

@ -13,14 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.network.handshake;
package dorkbox.network.handshake
public
class UpgradeType {
object UpgradeType {
// The check is > 0, so these MUST be all > 0
public static final byte NONE = (byte) 1;
public static final byte ENCRYPT = (byte) 2;
public static final byte COMPRESS = (byte) 3;
public static final byte FRAGMENTED = (byte) 4;
const val NONE = 1.toByte()
const val ENCRYPT = 2.toByte()
const val COMPRESS = 3.toByte()
const val FRAGMENTED = 4.toByte()
}