package com.adealink.weparty.location.data

import com.google.gson.annotations.SerializedName

data class LocationInfo(
    @SerializedName("latitude")
    val latitude: Long?, /*纬度*/
    @SerializedName("longitude")
    val longitude: Long?, /*经度*/
    @SerializedName("country_code")
    val countryCode: String,
    @SerializedName("language_code")
    val languageCode: String,
    @SerializedName("sim_mcc")
    val simMcc: String, /*sim移动设备国家代码*/
    @SerializedName("sim_mnc")
    val simMnc: String, /*sim移动设备网络代码*/
    @SerializedName("net_mcc")
    val netMcc: String, /*连接网络运营商国家代码*/
    @SerializedName("net_mnc")
    val netMnc: String, /*连接网络运营商国家代码*/
    @SerializedName("ip")
    val ip: String, /*客户端出口ip*/
)

/**
 * 上报位置信息请求
 */
data class ReportLocationReq(@SerializedName("locationInfo") val locationInfo: String)


/**
 * 获取用户国家地区信息
 */
data class GetCountryInfoRes(
    @SerializedName("seqId") val seqId: Long,
    @SerializedName("userCountry") val userCountryMap: Map<Long, UserCountryInfo>,
)

data class UserCountryInfo(
    @SerializedName("country")
    val country: String,
    @SerializedName("region")
    val region: String,
    @SerializedName("countryFlag")
    val countryFlag: String,
    @SerializedName("lang")
    val lang: String,
)