ApiCore.Photos.PhotosFactory.MovePhoto C# (CSharp) Метод

MovePhoto() публичный Метод

public MovePhoto ( int photoId, int toAlbumId, int ownerId ) : bool
photoId int
toAlbumId int
ownerId int
Результат bool
        public bool MovePhoto(int photoId, int toAlbumId, int? ownerId)
        {
            this.Manager.Method("photos.move");
            this.Manager.Params("pid", photoId);
            this.Manager.Params("target_aid", toAlbumId);
            if (ownerId != null)
            {
                this.Manager.Params("oid", ownerId);
            }
            XmlNode result = this.Manager.Execute().GetResponseXml();
            if (this.Manager.MethodSuccessed)
            {
                XmlUtils.UseNode(result);
                return XmlUtils.BoolVal();
            }
            return false;
        }