Beispiel #1
0
 private PhotoEntryShort buildPhotoEntryShort(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         PhotoEntryShort photo = new PhotoEntryShort();
         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.DateCreated = CommonUtils.FromUnixTime(XmlUtils.Int("created"));
         return(photo);
     }
     return(null);
 }
Beispiel #2
0
 private PhotoEntryShort buildPhotoEntryShort(XmlNode node)
 {
     if (node != null)
     {
         XmlUtils.UseNode(node);
         PhotoEntryShort photo = new PhotoEntryShort();
         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.DateCreated = CommonUtils.FromUnixTime(XmlUtils.Int("created"));
         return photo;
     }
     return null;
 }