package guru.core.flutter.analytics.guru_analytics_flutter

/**
 * Created by Haoyi on 2020/12/21.
 */
object GuruAnalyticsConstants {

    object Method {
        const val Initialize = "initialize"
        const val GetAppInstanceId = "getAppInstanceId"
        const val LogEvent = "logEvent"
        const val SetUserProperty = "setUserProperty"
        const val SetDeviceId = "setDeviceId"
        const val SetUid = "setUid"
        const val SetAdjustId = "setAdjustId"
        const val SetAdId = "setAdId"
        const val SetFirebaseId = "setFirebaseId"
        const val SetScreen = "setScreen"
        const val ZipLogs = "zipLogs"
        const val GetStatistic = "getStatistic"
        const val SetConsents = "setConsents"
    }

    object ErrorCode {
        const val SUCCESS = "SUCCESS"
        const val GET_APP_INSTANCE_ID_FAILED = "GET_INSTANCE_ID_FAILED"
        const val PROPERTY_ERROR = "PROPERTY_ERROR"
    }

    object FieldName {
        const val BATCH_LIMIT = "batchLimit"
        const val UPLOAD_PERIOD_IN_SECONDS = "uploadPeriodInSeconds"
        const val DELAYED_IN_SECONDS = "delayedInSeconds"
        const val EVENT_EXPIRED_IN_DAYS = "eventExpiredInDays"
        const val DEVICE_ID = "deviceId"
        const val USER_ID = "userId"
        const val ADJUST_ID = "adjustId"
        const val AD_ID = "adId"
        const val FIREBASE_ID = "firebaseId"
        const val EVENT_NAME = "eventName"
        const val PARAMETERS = "parameters"
        const val PRIORITY = "priority"
        const val ENABLED = "enabled"
        const val MILLISECONDS = "milliseconds"
        const val NAME = "name"
        const val VALUE = "value"
        const val SCREEN = "screen"
        const val DEBUG = "debug"
        const val LOGGED = "logged";
        const val UPLOADED = "uploaded";
        const val X_APP_ID = "xAppId"
        const val X_DEVICE_INFO = "xDeviceInfo"
    }

}

object ConsentFieldName {
    const val AD_STORAGE = "ad_storage"
    const val ANALYTICS_STORAGE = "analytics_storage"
    const val AD_PERSONALIZATION = "ad_personalization"
    const val AD_USER_DATA = "ad_user_data"
}