Inconsistency in Photos object

Sep 1, 2009 at 5:14 PM

To get a person's photos you need to call PeopleGetPublicPhotos, this method gets int page (the page to load) and return the Photos object.

in the photos object there is a property named TotalPages typed as long. this is an inconsistency in the type of pages. and force the developer to change it to int (i'm assuming pages wont be long in the real world) all the time.

 

Omri

 

Photos p = Program.flickr.PeopleGetPublicPhotos(Program.auth.User.UserId, 100, pageNumber);
            foreach (Photo photo in p.PhotoCollection)
            {
                allPhotos.Add(photo);
            }
            if (p.TotalPages > pageNumber)
            {
                FillAllPhotos(pageNumber+1);
            }

 

 

Coordinator
Sep 8, 2009 at 10:23 AM

I've updated all external methods and parameters to use Int32 rather than Int64, except where they deal with file sizes, as these may go over the Int32 maximum size.