rawValue function

String rawValue(
  1. FlagshipContext type
)

Implementation

String rawValue(FlagshipContext type) {
  String ret = "";
  switch (type) {
    case FlagshipContext.FIRST_TIME_INIT:
      ret = "sdk_firstTimeInit";
      break;
    case FlagshipContext.DEVICE_LOCALE:
      ret = "sdk_deviceLanguage";
      break;
    case FlagshipContext.DEVICE_TYPE:
      ret = "sdk_deviceType";
      break;
    case FlagshipContext.DEVICE_MODEL:
      ret = "sdk_deviceModel";
      break;
    case FlagshipContext.LOCATION_CITY:
      ret = "sdk_city";
      break;
    case FlagshipContext.LOCATION_REGION:
      ret = "sdk_region";
      break;
    case FlagshipContext.LOCATION_COUNTRY:
      ret = "sdk_country";
      break;
    case FlagshipContext.LOCATION_LAT:
      ret = "sdk_lat";
      break;
    case FlagshipContext.LOCATION_LONG:
      ret = "sdk_long";
      break;
    case FlagshipContext.IP:
      ret = "sdk_ip";
      break;
    case FlagshipContext.OS_NAME:
      ret = "sdk_osName";
      break;
    case FlagshipContext.OS_VERSION_NAME:
      ret = "sdk_osVersionName";
      break;
    case FlagshipContext.OS_VERSION_CODE:
      ret = "sdk_osVersionCode";
      break;
    case FlagshipContext.CARRIER_NAME:
      ret = "sdk_carrierName";
      break;
    case FlagshipContext.DEV_MODE:
      ret = "sdk_devMode";
      break;
    case FlagshipContext.INTERNET_CONNECTION:
      ret = "sdk_internetConnection";
      break;
    case FlagshipContext.APP_VERSION_NAME:
      ret = "sdk_versionName";
      break;
    case FlagshipContext.APP_VERSION_CODE:
      ret = "sdk_versionCode";
      break;
    case FlagshipContext.FLAGSHIP_VERSION:
      ret = "sdk_fsVersion";
      break;
    case FlagshipContext.INTERFACE_NAME:
      ret = "sdk_interfaceName";
      break;
  }
  return ret;
}