Protocols/MSNP/MSNP14

From NINA Wiki
Revision as of 11:04, 21 June 2009 by AD (talk | contribs) (broken link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MSNP14 changes (TODO merge into version 14 wiki page). Digest from http://forums.fanatic.net.nz/index.php?showtopic=15741&st=20

- "RouteInfo: msnp://64.4.27.144/020002E9" sent along the initial profile message

- "ILN 41 NLN email@email.com 1 NICK 1615708204 %DPDATA% http://sec.yimg.com/i/us/nt/b/purpley.1.0.png"

notice the "1" this probably represents if a contact is actually on the WLM part or the yahoo part , apparently 1 is for WLM users

As said before the adding is done by FQY:

FQY 48 67 <ml><d n="yahoo.com"><c n="email"/></d></ml>FQY 48 75 <ml><d n="yahoo.com"><c n="email" t="32" /></d></ml>

UUM , UBM are used respectively to send and receive messages from yahoo contacts , the format is similar to MSG on the switchboard with 2 extra parameters:

UUM 57 email@yahoo.com 32 1 135 the "32" is a constant , the 5th field is either 1 or 2

When recieving SOAP data, there are some new fields. The type of yahoo users is "Email" and instead of the address being in "PassportName" it is in "Email".

new member type

<Member xsi:type="EmailMember">
 <MembershipId>14</MembershipId>
 <Type>Email</Type>
 <State>Accepted</State>
 <Annotations>
  <Annotation>
   <Name>MSN.IM.BuddyType</Name>
   <Value>32:</Value>
  </Annotation>
 </Annotations>
 <Deleted>false</Deleted>
 <LastChanged>2006-07-15T07:21:26.83-07:00</LastChanged>
 <Changes />
 <Email>someone@yahoo.com</Email>
</Member>

new contact info for yahoo user

<contactInfo>
 <emails>
  <ContactEmail>
   <contactEmailType>Messenger2</contactEmailType>
   <email>someone@yahoo.com</email>
   <isMessengerEnabled>true</isMessengerEnabled>
   <propertiesChanged />
  </ContactEmail>
 </emails>
 <groupIds>
  <guid>28f97ef2-74a1-436a-b765-b3a79b74a8bf</guid>
 </groupIds>
 <contactType>Regular</contactType>
 <quickName>someone54</quickName>
 <IsPassportNameHidden>false</IsPassportNameHidden>
 <puid>0</puid>
 <CID>0</CID>
 <IsNotMobileVisible>false</IsNotMobileVisible>
 <isMobileIMEnabled>false</isMobileIMEnabled>
 <isMessengerUser>false</isMessengerUser>
 <isFavorite>false</isFavorite>
 <isSmtp>false</isSmtp>
 <hasSpace>false</hasSpace>
 <spotWatchState>NoDevice</spotWatchState>
 <birthdate>0001-01-01T00:00:00</birthdate>
 <primaryEmailType>ContactEmailPersonal</primaryEmailType>
 <PrimaryLocation>ContactLocationPersonal</PrimaryLocation>
 <PrimaryPhone>ContactPhonePersonal</PrimaryPhone>
 <IsPrivate>false</IsPrivate>
 <Gender>Unspecified</Gender>
 <TimeZone>None</TimeZone>
</contactInfo>

python code example http://www.openomy.com/download/sunyin/msnlib.py (broken)