internal UpdateUserRequest()

in FirebaseAdmin/FirebaseAdmin/Auth/UserRecordArgs.cs [312:364]


            internal UpdateUserRequest(UserRecordArgs args)
            {
                this.Uid = CheckUid(args.Uid, required: true);
                if (args.customClaims != null)
                {
                    this.CustomClaims = CheckCustomClaims(args.customClaims.Value);
                }

                this.Disabled = args.disabled;
                this.Email = CheckEmail(args.Email);
                this.EmailVerified = args.emailVerified;
                this.Password = CheckPassword(args.Password);
                this.ValidSince = args.ValidSince;

                if (args.displayName != null)
                {
                    var displayName = args.displayName.Value;
                    if (displayName == null)
                    {
                        this.AddDeleteAttribute("DISPLAY_NAME");
                    }
                    else
                    {
                        this.DisplayName = displayName;
                    }
                }

                if (args.photoUrl != null)
                {
                    var photoUrl = args.photoUrl.Value;
                    if (photoUrl == null)
                    {
                        this.AddDeleteAttribute("PHOTO_URL");
                    }
                    else
                    {
                        this.PhotoUrl = CheckPhotoUrl(photoUrl);
                    }
                }

                if (args.phoneNumber != null)
                {
                    var phoneNumber = args.phoneNumber.Value;
                    if (phoneNumber == null)
                    {
                        this.AddDeleteProvider("phone");
                    }
                    else
                    {
                        this.PhoneNumber = CheckPhoneNumber(phoneNumber);
                    }
                }
            }