Skip to content

Product Information

David edited this page Oct 5, 2018 · 1 revision

Product Information (products.py)

Contains product-specific information and constants.

  • get_product_info(product) - returns information about the specified product
    • 'product' can be the DWORD-string or DWORD-value of the 4-digit product code, the full name of the product, or the BNLS ID.
  • BncsProduct
    • code - the 4-digit product code in normal order (eg: STAR, WAR3)
    • name - the full name of the product
    • bnls_id - the ID of the product used in making requests to BNLS
    • num_keys - the number of CD keys required to authenticate as the product
    • home_channel - the value used when joining the client's home channel
    • logon_type - the type of logon used by the client (OLS, NLS, LLS, etc)
  • PRODUCT_XXXX - constants for the product codes of each product
  • LOGON_XXXX - constants for each of the known logon types
  • BNCS_PRODUCTS - a dictionary mapping product codes to BncsProduct objects

https://github.com/Davnit/bncs.py/blob/master/bncs/common/products.py