Protocols/OSCAR/Services/BART: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
=== Getting User's Buddy Icon === | === Getting 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. |
Revision as of 01:38, 27 March 2020
The Buddy Art, or BART, server provides access to the client for downloading image, sound, and xml assets for expressions.
Examples
Getting 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 ICBM__CHANNEL_MSG_TOCLIENT SNAC or BUDDY__ARRIVED SNAC. The USERINFO will contain an array of BART IDs and the client should select the one with the 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 OSERVICE__SERVICE_REQUEST to BOSS with the foodgroup of [Protocols/OSCAR/Services/BART BART].
- Wait for a OSERVICE__SERVICE_RESPONSE from BOSS.
- Using the RECONNECT_HERE tag, connect to the BART server.
- Using the LOGIN_COOKIE tag send a FLAP SIGNON packet, just like connecting to BOSS.
- Send a OSERVICE__CLIENT_ONLINE SNAC to the BART server.
Step #3 - Downloading from BART
Once connected to BART, use the BART__DOWNLOAD2_QUERY SNAC to download as many assets as required.
Step #4 - Display Icon
Display the image.