/// <summary> /// Create next and optional last. /// </summary> public static MetaAnchor Create(string next, string last) { MetaAnchor r = new MetaAnchor(); if (last != null) { r.Last = SyncMLSimpleElementFactory.Create <MetaLast>(last); } r.Next = SyncMLSimpleElementFactory.Create <MetaNext>(next); return(r); }
public static MetaAnchor Create(XElement xmlData) { if (xmlData == null) { return(null); } MetaAnchor r = new MetaAnchor(); r.Last = SyncMLSimpleElementFactory.Create <MetaLast>(ElementReader.Element(xmlData, ElementNames.Last)); r.Next = SyncMLSimpleElementFactory.Create <MetaNext>(ElementReader.Element(xmlData, ElementNames.Next)); return(r); }
public static MetaMem Create(XElement xmlData) { if (xmlData == null) { return(null); } MetaMem r = new MetaMem(); r.FreeMem = SyncMLSimpleElementFactory.Create <MetaFreeMem>(ElementReader.Element(xmlData, ElementNames.FreeMem)); r.FreeID = SyncMLSimpleElementFactory.Create <MetaFreeID>(ElementReader.Element(xmlData, ElementNames.FreeID)); r.SharedMem = SyncMLSimpleElementFactory.Create <MetaSharedMem>(ElementReader.Element(xmlData, ElementNames.SharedMem)); return(r); }
public MetaVersion GetMetaVersion() { return(SyncMLSimpleElementFactory.Create <MetaVersion>(navMeta.Element(metaNamespace + ElementNames.Version))); }
public MetaSize GetMetaSize() { return(SyncMLSimpleElementFactory.Create <MetaSize>(navMeta.Element(metaNamespace + ElementNames.Size))); }
public MetaNextNonce GetMetaNextNonce() { return(SyncMLSimpleElementFactory.Create <MetaNextNonce>(navMeta.Element(metaNamespace + ElementNames.NextNonce))); }
public MetaMark GetMetaMark() { return(SyncMLSimpleElementFactory.Create <MetaMark>(navMeta.Element(metaNamespace + ElementNames.Mark))); }
public MetaFieldLevel GetMetaFieldLevel() { return(SyncMLSimpleElementFactory.Create <MetaFieldLevel>(navMeta.Element(metaNamespace + ElementNames.FieldLevel))); }
public MetaFormat GetMetaFormat() { return(SyncMLSimpleElementFactory.Create <MetaFormat>(navMeta.Element(metaNamespace + ElementNames.Format))); }