Ignore:
Timestamp:
2010-08-14T21:33:33Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d912fe4
Parents:
6ddb223
Message:

Add/Remove support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    r6ddb223 r4fc95c5  
    248248        "</ABContactUpdate>"
    249249
     250#define SOAP_AB_CONTACT_ADD_ACTION "http://www.msn.com/webservices/AddressBook/ABContactAdd"
     251
     252#define SOAP_AB_CONTACT_ADD_PAYLOAD \
     253        "<ABContactAdd xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     254            "<abId>00000000-0000-0000-0000-000000000000</abId>" \
     255            "<contacts>" \
     256                "<Contact xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     257                    "<contactInfo>" \
     258                        "<contactType>LivePending</contactType>" \
     259                        "<passportName>%s</passportName>" \
     260                        "<isMessengerUser>true</isMessengerUser>" \
     261                        "<MessengerMemberInfo>" \
     262                            "<DisplayName>%s</DisplayName>" \
     263                        "</MessengerMemberInfo>" \
     264                    "</contactInfo>" \
     265                "</Contact>" \
     266            "</contacts>" \
     267            "<options>" \
     268                "<EnableAllowListManagement>true</EnableAllowListManagement>" \
     269            "</options>" \
     270        "</ABContactAdd>"
     271
     272#define SOAP_AB_CONTACT_DEL_ACTION "http://www.msn.com/webservices/AddressBook/ABContactDelete"
     273
     274#define SOAP_AB_CONTACT_DEL_PAYLOAD \
     275        "<ABContactDelete xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     276            "<abId>00000000-0000-0000-0000-000000000000</abId>" \
     277            "<contacts>" \
     278                "<Contact xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     279                    "<contactId>%s</contactId>" \
     280                "</Contact>" \
     281            "</contacts>" \
     282        "</ABContactDelete>"
     283
    250284int msn_soap_addressbook_request( struct im_connection *ic );
    251285int msn_soap_addressbook_set_display_name( struct im_connection *ic, const char *new );
    252 
     286int msn_soap_ab_contact_add( struct im_connection *ic, bee_user_t *bu );
     287int msn_soap_ab_contact_del( struct im_connection *ic, bee_user_t *bu );
    253288
    254289#endif /* __SOAP_H__ */
Note: See TracChangeset for help on using the changeset viewer.