V3 Set and Query 100 Sports Sorting

Function: getSportsTypeV3

Flutter Example:

/// v3 New event number for 100 sports sorting
set100SportSortV3(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.func_v3_set_100_sport_sort),

/// v3 New 100 sports sorting
libManager.send(evt: CmdEvtType.set100SportSortV3, json: jsonEncode(json));

JSON Fields Sent by App:

Field Name Field Type Field Description
version int Protocol library version number
operate int Operation
0: Invalid 1: Query 2: Set
now_user_location int Current position of displayed added sports
all_num int Number of sports in the sorting list
items_set int [] Sports sorting list, maximum 150 set

Example:

{
  "version": 0,
  "operate": 2,
  "now_user_location": 2,
  "all_num": 6,
  "items_set": [
    2,
    3,
    50,
    198,
    20,
    32
  ]
}

JSON Fields Received by App:

Field Name Field Type Field Description
version int Protocol library version number
err_code int 0: Success, Non-zero: Failure
operate int Operation
0: Invalid 1: Query 2: Set
min_show_num int Minimum number of items to be displayed, at least 1
max_show_num int Maximum number of items to be displayed, maximum 20
now_user_location int Current position of displayed added sports, app displays based on this position, with the devices added before corresponding to those positions, and those added later to the positions after this position. Only valid for queries
all_num int Number of sports sorting list details, valid for queries
maximum 150 set(array items)
items array List of sports sorting, containing type andflag

Each item in the sports sorting list contains the following fields:

Field Name Field Type Field Description
type int Type of sport
flag int 0: None downloaded for all
Bit0: Small icon downloaded
Bit1: Big icon downloaded
Bit2: Medium icon downloaded
Bit3: Smallest icon downloaded

Example:

{
  "version": 0,
  "err_code": 0,
  "operate": 2,
  "min_show_num": 1,
  "max_show_num": 20,
  "now_user_location": 2,
  "all_num": 6,
  "items": null
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""