All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.network.Ticket.kt Maven / Gradle / Ivy

/*
 * Copyright 2019-2021 Mamoe Technologies and contributors.
 *
 * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
 * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
 *
 * https://github.com/mamoe/mirai/blob/dev/LICENSE
 */

package net.mamoe.mirai.internal.network

internal class Ticket(
    val id: Int,
    val data: ByteArray,
    val key: ByteArray?,
    val creationTime: Long,
    val expireTime: Long
) {
    companion object {
        const val USER_A5 = 0x2
        const val AQ_SIG = 0x200000
        const val USER_SIG_64 = 0x2000
        const val SUPER_KEY = 0x100000
        const val OPEN_KEY = 0x4000
        const val ACCESS_TOKEN = 0x8000
        const val USER_ST_SIG = 0x80
        const val USER_A8 = 0x10
        const val LS_KEY = 0x200
        const val S_KEY = 0x1000
        const val V_KEY = 0x20000
        const val TGT = 0x40
        const val D2 = 0x40000
        const val SID = 0x80000
        const val USER_ST_WEB_SIG = 0x20
        const val PAY_TOKEN = 0x800000
        const val PF = 0x1000000
        const val DA2 = 0x2000000
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy