Example #1
0
        /// <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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
 public MetaVersion GetMetaVersion()
 {
     return(SyncMLSimpleElementFactory.Create <MetaVersion>(navMeta.Element(metaNamespace + ElementNames.Version)));
 }
Example #5
0
 public MetaSize GetMetaSize()
 {
     return(SyncMLSimpleElementFactory.Create <MetaSize>(navMeta.Element(metaNamespace + ElementNames.Size)));
 }
Example #6
0
 public MetaNextNonce GetMetaNextNonce()
 {
     return(SyncMLSimpleElementFactory.Create <MetaNextNonce>(navMeta.Element(metaNamespace + ElementNames.NextNonce)));
 }
Example #7
0
 public MetaMark GetMetaMark()
 {
     return(SyncMLSimpleElementFactory.Create <MetaMark>(navMeta.Element(metaNamespace + ElementNames.Mark)));
 }
Example #8
0
 public MetaFieldLevel GetMetaFieldLevel()
 {
     return(SyncMLSimpleElementFactory.Create <MetaFieldLevel>(navMeta.Element(metaNamespace + ElementNames.FieldLevel)));
 }
Example #9
0
 public MetaFormat GetMetaFormat()
 {
     return(SyncMLSimpleElementFactory.Create <MetaFormat>(navMeta.Element(metaNamespace + ElementNames.Format)));
 }