Beispiel #1
0
        public Album[] GetAlbums()
        {
            AlbumsResponse rsp = util.GetResponse <AlbumsResponse> ("facebook.photos.getAlbums",
                                                                    FacebookParam.Create("uid", session_info.UId),
                                                                    FacebookParam.Create("session_key", session_info.SessionKey),
                                                                    FacebookParam.Create("call_id", DateTime.Now.Ticks));

            foreach (Album album in rsp.Albums)
            {
                album.Session = this;
            }

            return(rsp.Albums);
        }
Beispiel #2
0
        public Album GetAlbum()
        {
            AlbumsResponse rsp = Session.Util.GetResponse <AlbumsResponse> ("facebook.photos.getAlbums",
                                                                            FacebookParam.Create("aids", AId),
                                                                            FacebookParam.Create("session_key", Session.SessionKey),
                                                                            FacebookParam.Create("call_id", System.DateTime.Now.Ticks));

            if (rsp.Albums.Length < 1)
            {
                return(null);
            }

            rsp.Albums[0].Session = Session;
            return(rsp.Albums[0]);
        }