public static Token FromXmlDocument(XmlDocument xmlDocument) { Hashtable item; Token result = new Token (); try { item = (Hashtable)SNDK.Convert.FromXmlDocument (SNDK.Convert.XmlNodeToXmlDocument (xmlDocument.SelectSingleNode ("(//sbook.token)[1]"))); } catch { item = (Hashtable)SNDK.Convert.FromXmlDocument (xmlDocument); } if (item.ContainsKey ("facebookappid")) { result._facebookappid = (string)item["facebookappid"]; } if (item.ContainsKey ("facebookuserid")) { result._facebookuserid = (string)item["facebookuserid"]; } if (item.ContainsKey ("facebooktoken")) { result._facebooktoken = (string)item["facebooktoken"]; } result.Update (); return result; }
public Authorization(Token Token) { this._id = Guid.NewGuid (); this._token = Token; }