Пример #1
0
 public RegistrationRequest(
     string username = null,
     string password = null,
     bool bindEmail  = true,
     string deviceId = null,
     string initialDeviceDisplayName = null,
     bool inhibitLogin = false,
     SessionContainer authenticationData = null)
     : this()
 {
     AuthenticationData       = authenticationData ?? new SessionContainer(null);
     BindEmail                = bindEmail;
     DeviceId                 = deviceId;
     InhibitLogin             = inhibitLogin;
     InitialDeviceDisplayName = initialDeviceDisplayName;
     Password                 = password;
     Username                 = username;
 }
Пример #2
0
 public ChangePasswordRequest(string newPassword, SessionContainer authenticationData = null)
     : this()
 {
     NewPassword        = newPassword;
     AuthenticationData = authenticationData;
 }