Class used to transfer all users and groups to/from FileZilla server
Inheritance: IBinarySerializable
 /// <summary>
 /// Set account settings. 
 /// Note! This replaces ALL users and groups on FileZilla server.
 /// </summary>
 /// <returns>True if Success</returns>
 public bool SetAccountSettings(AccountSettings accountSettings)
 {
     SendCommand(MessageType.AccountSettings, writer => accountSettings.Serialize(writer, ProtocolVersion));
     return Receive<bool>(MessageType.AccountSettings);
 }
Example #2
0
 /// <summary>
 /// Set account settings.
 /// Note! This replaces ALL users and groups on FileZilla server.
 /// </summary>
 /// <returns>True if Success</returns>
 public bool SetAccountSettings(AccountSettings accountSettings)
 {
     SendCommand(MessageType.AccountSettings, writer => accountSettings.Serialize(writer, ProtocolVersion));
     return(Receive <bool>(MessageType.AccountSettings));
 }
 /// <summary>
 /// Set account settings.
 /// Note! This replaces ALL users and groups on FileZilla server.
 /// </summary>
 /// <returns>Account settings including all users and groups</returns>
 public bool SetAccountSettings(AccountSettings accountSettings)
 {
     SendCommand(CommandOrigin.Client, CommandType.Permissions, accountSettings.Serialize);
     return(Receive(CommandOrigin.Server, CommandType.Permissions, reader => reader.ReadByte() == 0));
 }