Protocols/OSCAR/Services/BART: Difference between revisions

From NINA Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
The Buddy Art, or BART, server provides access to the client for downloading image, sound, and xml assets for expressions.
The Buddy Art, or BART, server provides access to the client for downloading image, sound, and xml assets for expressions.


== Examples ==
[[Prootcols/OSCAR/Services/BART/Tutorials|BART Tutorials]]
 
=== Getting a User's Buddy Icon ===
 
==== Step #1 - Finding the icon for a user ====
 
First the client will need to discover what the Buddy icon BART ID is for the user. Depending on display, the client will want to look inside the USERINFO for either the [[Protocols/OSCAR/SNAC/ICBM_CHANNEL_MSG_TOCLIENT|ICBM__CHANNEL_MSG_TOCLIENT]] SNAC or [[Protocols/OSCAR/SNAC/BUDDY__ARRIVED|BUDDY__ARRIVED]] SNAC. The USERINFO will contain an array of BART IDs and the client should select the one with the [[Protocols/OSCAR/Foodgroups/BART#Class:_BART_ID_TYPES|BART__ID_TYPES]] Class for which it is looking.
 
==== Step #2 - Connecting to BART ====
 
If the client is not already connected to the BART server it will need to do so.
 
# Send a [[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_REQUEST|OSERVICE__SERVICE_REQUEST]] to BOSS with the foodgroup of [[Protocols/OSCAR/Services/BART|BART]].
# Wait for a [[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_RESPONSE|OSERVICE__SERVICE_RESPONSE]] from BOSS.
# Using the [[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_RESPONSE#TLV_Class:_OSERVICE_SERVICE_RESPONSE_TAGS|RECONNECT_HERE]] tag, connect to the BART server.
# Using the [[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_RESPONSE#TLV_Class:_OSERVICE_SERVICE_RESPONSE_TAGS|LOGIN_COOKIE]] tag send a FLAP SIGNON packet, just like connecting to BOSS.
# Send a [[Protocols/OSCAR/SNAC/OSERVICE_CLIENT_ONLINE|OSERVICE__CLIENT_ONLINE]] SNAC to the BART server.
 
==== Step #3 - Downloading from BART ====
 
Once connected to BART, use the [[Protocols/OSCAR/SNAC/BART__DOWNLOAD2_QUERY|BART__DOWNLOAD2_QUERY]] SNAC to download as many assets as required.
 
==== Step #4 - Display Icon ====
 
Display the image.

Latest revision as of 03:09, 27 March 2020

The Buddy Art, or BART, server provides access to the client for downloading image, sound, and xml assets for expressions.

BART Tutorials