示例#1
0
        public PhotoUploadInfo GetUploadServer(int albumId, int?groupId, bool saveBig)
        {
            this.Manager.Method("photos.getUploadServer");
            this.Manager.Params("save_big", saveBig);
            if (groupId != null)
            {
                this.Manager.Params("gid", groupId);
            }

            XmlNode result = this.Manager.Execute().GetResponseXml();

            if (this.Manager.MethodSuccessed)
            {
                XmlUtils.UseNode(result);
                PhotoUploadInfo i = new PhotoUploadInfo();
                i.Url     = XmlUtils.String("upload_url");
                i.AlbumId = XmlUtils.Int("aid");
                return(i);
            }
            return(null);
        }
示例#2
0
        public PhotoUploadInfo GetUploadServer(int albumId, int? groupId, bool saveBig)
        {
            this.Manager.Method("photos.getUploadServer");
            this.Manager.Params("save_big", saveBig);
            if (groupId != null)
            {
                this.Manager.Params("gid", groupId);
            }

            XmlNode result = this.Manager.Execute().GetResponseXml();
            if (this.Manager.MethodSuccessed)
            {
                XmlUtils.UseNode(result);
                PhotoUploadInfo i = new PhotoUploadInfo();
                i.Url = XmlUtils.String("upload_url");
                i.AlbumId = XmlUtils.Int("aid");
                return i;
            }
            return null;
        }
示例#3
0
        public PhotoUploadInfo GetUploadServer(int albumId, int? groupId, bool saveBig)
        {
            this.Manager.Method("photos.getUploadServer", new object[] { "save_big", saveBig, "gid", groupId });
            XmlUtils.UseNode(this.Manager.Execute().GetResponseXml());
            PhotoUploadInfo i = new PhotoUploadInfo();
            i.Url = XmlUtils.String("upload_url");
            i.AlbumId = XmlUtils.Int("aid");

            return i;
        }