//
//  GuruAnalyticsConstants.swift
//  guru_analytics_flutter
//
//  Created by KernelTea on 2022/11/26.
//

import Foundation

class AnalyticsErrorCode {
    static let SUCCESS = "SUCCESS"
    static let GET_APP_INSTANCE_ID_FAILED = "GET_INSTANCE_ID_FAILED"
    static let PROPERTY_ERROR = "PROPERTY_ERROR"
    static let EVENT_ERROR = "EVENT_ERROR"
    static let SET_CONSENTS_ERROR = "SET_CONSENTS_ERROR"
}

class AnalyticsMethod {
    static let Initialize = "initialize"
    static let GetAppInstanceId = "getAppInstanceId"
    static let LogEvent = "logEvent"
    static let SetUserProperty = "setUserProperty"
    static let SetDeviceId = "setDeviceId"
    static let SetUid = "setUid"
    static let SetAdjustId = "setAdjustId"
    static let SetAdId = "setAdId"
    static let SetFirebaseId = "setFirebaseId"
    static let SetScreen = "setScreen"
    static let ZipLogs = "zipLogs"
    static let GetStatistic = "getStatistic"
    static let SetConsents = "setConsents"
}

class AnalyticsFieldName {
    static let DEVICE_ID = "deviceId"
    static let USER_ID = "userId"
    static let ADJUST_ID = "adjustId"
    static let AD_ID = "adId"
    static let FIREBASE_ID = "firebaseId"
    static let EVENT_NAME = "eventName"
    static let PARAMETERS = "parameters"
    static let ENABLED = "enabled"
    static let MILLISECONDS = "milliseconds"
    static let NAME = "name"
    static let VALUE = "value"
    static let SCREEN = "screen"
    static let BATCH_LIMIT = "batchLimit"
    static let UPLOAD_PERIOD_IN_SECONDS = "uploadPeriodInSeconds"
    static let DEBUG = "debug"
    static let DELAYED_IN_SECONDS = "delayedInSeconds"
    static let EVENT_EXPIRED_IN_DAYS = "eventExpiredInDays"
    static let X_APP_ID = "xAppId";
    static let X_DEVICE_INFO = "xDeviceInfo";
}

class ConsentsFieldName {
    static let AD_STORAGE = "ad_storage"
    static let ANALYTICS_STORAGE = "analytics_storage"
    static let AD_PERSONALIZATION = "ad_personalization"
    static let AD_USER_DATA = "ad_user_data"
}
