示例#1
0
 private PhotoEntryFull buildPhotoEntryFull(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         PhotoEntryFull photo = new PhotoEntryFull();
         photo.Id          = XmlUtils.Int("pid");
         photo.AlbumId     = XmlUtils.Int("aid");
         photo.OwnerId     = XmlUtils.Int("owner_id");
         photo.Url         = XmlUtils.String("src");
         photo.UrlBig      = XmlUtils.String("src_big");
         photo.UrlSmall    = XmlUtils.String("src_small");
         photo.UrlXBig     = XmlUtils.String("src_xbig");
         photo.UrlXXBig    = XmlUtils.String("src_xxbig");
         photo.Text        = XmlUtils.String("text");
         photo.DateCreated = CommonUtils.FromUnixTime(XmlUtils.Int("created"));
         return(photo);
     }
     return(null);
 }
示例#2
0
 private PhotoEntryFull buildPhotoEntryFull(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         PhotoEntryFull photo = new PhotoEntryFull();
         photo.Id = XmlUtils.Int("pid");
         photo.AlbumId = XmlUtils.Int("aid");
         photo.OwnerId = XmlUtils.Int("owner_id");
         photo.Url = XmlUtils.String("src");
         photo.UrlBig = XmlUtils.String("src_big");
         photo.UrlSmall = XmlUtils.String("src_small");
         photo.UrlXBig = XmlUtils.String("src_xbig");
         photo.UrlXXBig = XmlUtils.String("src_xxbig");
         photo.Text = XmlUtils.String("text");
         photo.DateCreated = CommonUtils.FromUnixTime(XmlUtils.Int("created"));
         return photo;
     }
     return null;
 }