Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create UserCustomField object from a User object #148

Open
RoyalScribblz opened this issue Mar 16, 2023 · 0 comments
Open

Create UserCustomField object from a User object #148

RoyalScribblz opened this issue Mar 16, 2023 · 0 comments

Comments

@RoyalScribblz
Copy link

RoyalScribblz commented Mar 16, 2023

Is your feature request related to a problem? Please describe.
UserCustomField's have HasPic, PicHash, and Value attributes that are not on User object, so I can't simply copy across.

Describe the solution you'd like
A constructor overload that you can pass a user into, new UserCustomField(user).

Describe alternatives you've considered

new UserCustomField
 {
    Id = user.Id,
    Name = user.Name,
    Email = user.Email,
    ActiveFlag = user.ActiveFlag,
    HasPic = user.IconUrl is null or "",
    PicHash = null,  // could get the image and get hash but not sure what hashing function
    Value = null  // no clue what this value is
 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant