public FtpUserAddResult AddFtpAccount(string name, string username, string password, string home, int quota) { var add = new FtpUserAddPacket(); add.ftpUser.add.wespacename = name; add.ftpUser.add.username = username; add.ftpUser.add.password = password; add.ftpUser.add.home = home; add.ftpUser.add.quota = quota; return(ExecuteWebRequest <FtpUserAddPacket, FtpUserAddResult>(add)); }
public ResponseResult AddFtpAccount(string domain, string username, string password, string home, int quota, bool CreateDirectory, bool AllowRead = true, bool AllowWrite = true) { var add = new FtpUserAddPacket(); add.ftpUser.add.webspacename = domain; add.ftpUser.add.username = username; add.ftpUser.add.password = password; add.ftpUser.add.home = home; add.ftpUser.add.quota = quota; add.ftpUser.add.CreateDirectoryIfNotExists = CreateDirectory; add.ftpUser.add.permissions = new FtpUserGetPermissions() { read = AllowRead, write = AllowWrite }; return(ExecuteWebRequest <FtpUserAddPacket, FtpUserAddResult>(add).ToResult()); }