toValue method

int toValue()

Implementation

int toValue() {
  switch (this) {
    case BMKSearchErrorCode.BMK_SEARCH_NO_ERROR: return 0;
    case BMKSearchErrorCode.BMK_SEARCH_AMBIGUOUS_KEYWORD: return 1;
    case BMKSearchErrorCode.BMK_SEARCH_AMBIGUOUS_ROURE_ADDR: return 2;
    case BMKSearchErrorCode.BMK_SEARCH_NOT_SUPPORT_BUS: return 3;
    case BMKSearchErrorCode.BMK_SEARCH_NOT_SUPPORT_BUS_2CITY: return 4;
    case BMKSearchErrorCode.BMK_SEARCH_RESULT_NOT_FOUND: return 5;
    case BMKSearchErrorCode.BMK_SEARCH_ST_EN_TOO_NEAR: return 6;
    case BMKSearchErrorCode.BMK_SEARCH_KEY_ERROR: return 7;
    case BMKSearchErrorCode.BMK_SEARCH_NETWOKR_ERROR: return 8;
    case BMKSearchErrorCode.BMK_SEARCH_NETWOKR_TIMEOUT: return 9;
    case BMKSearchErrorCode.BMK_SEARCH_PERMISSION_UNFINISHED: return 10;
    case BMKSearchErrorCode.BMK_SEARCH_INDOOR_ID_ERROR: return 11;
    case BMKSearchErrorCode.BMK_SEARCH_FLOOR_ERROR: return 12;
    case BMKSearchErrorCode.BMK_SEARCH_INDOOR_ROUTE_NO_IN_BUILDING: return 13;
    case BMKSearchErrorCode.BMK_SEARCH_INDOOR_ROUTE_NO_IN_SAME_BUILDING: return 14;
    case BMKSearchErrorCode.BMK_SEARCH_PARAMETER_ERROR: return 15;
    case BMKSearchErrorCode.BMK_SEARCH_SERVER_ERROR: return 16;
    case BMKSearchErrorCode.BMK_SEARCH_SERVER_NO_PERMISSIONS: return 17;
    case BMKSearchErrorCode.BMK_SEARCH_SERVER_NO_ADVANCED_PERMISSIONS: return 18;
    case BMKSearchErrorCode.BMK_SEARCH_SERVER_DISTRICT_NO_DATA: return 19;
    case BMKSearchErrorCode.BMK_SEARCH_SERVER_DISTRICT_ID_ERROR: return 20;
    default: return 0;
  }
}