deserialize Method
Collapse the table of content
Expand the table of content

PresenceExtensionFactory.Deserialize Method

Deserializes the given custom presence property.

Script:  http://www.wlmessenger.net/api/3.7/loader.js
Feature:  Messenger.Core
Namespace:  Microsoft.Live.Messenger.Presence
 

var presenceExtension = instance.deserialize(name, content);

Parameters

name
Type: String
The name of the custom property.
content
Type: String
The serialized data.

Return Value

A new PresenceExtensionFactory, or null if the property is invalid or unrecognized.

The following example demonstrates creating an instance of PresenceExtensionFactory.

            MyPresenceFactory = function () {}
            MyPresenceFactory.prototype.serialize = function(prop) {
                return prop.get_content();
            }
            MyPresenceFactory.prototype.deserialize = function(name, content) {
                return new MyPresenceExtension(name, content);
            }
            

Windows Live Messenger Web Toolkit


Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0

Show:
© 2016 Microsoft