示例#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;
 }
 public ChangePasswordRequest(string newPassword, SessionContainer authenticationData = null)
     : this()
 {
     NewPassword        = newPassword;
     AuthenticationData = authenticationData;
 }