ApiCore.Wall.WallFactory.Restore C# (CSharp) Метод

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

Restore deleted entry
public Restore ( int ownerId, int msg_id ) : bool
ownerId int if null - wall entry for current user will be restored, else - for specified user
msg_id int post id to restore
Результат bool
        public bool Restore(int? ownerId, int msg_id)
        {
            this.Manager.Method("wall.restore");
            if (ownerId != null)
            {
                this.Manager.Params("owner_id", ownerId);//((type == MessageType.Outgoing) ? "1" : "0"));;
            }
            this.Manager.Params("mid", msg_id);
            string resp = this.Manager.Execute().GetResponseString();
            if (this.Manager.MethodSuccessed)
            {
                XmlDocument x = this.Manager.GetXmlDocument(resp);
                return ((x.SelectSingleNode("/response").InnerText.Equals("1")) ? true : false);
            }
            return false;
        }