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

Additional User model properties #619

Open
bauersfeld opened this issue Sep 22, 2024 · 2 comments
Open

Additional User model properties #619

bauersfeld opened this issue Sep 22, 2024 · 2 comments

Comments

@bauersfeld
Copy link

bauersfeld commented Sep 22, 2024

Is it possible to configure the User model properties to return other data from the x api? Or possibly set a custom User object at runtime?

For instance

You are current providing isVerified

this.isVerified = user.is_blue_verified;

But, I would like to get the verified_type as well

this.isVerified = user.is_blue_verified;
this.verifiedType = user.legacy.verified_type;
@Rishikant181
Copy link
Owner

It's not possible to configure the User model by the consumer of the API, and any additional fields must be included by changing the User model at the source level.

However, you can get access to the raw response data using the FetcherService class. From the raw response, you can pick up whatever fields you like.

I can keep this issue open on my end and add the requested properties to the User model in the meantime.

@bauersfeld
Copy link
Author

Great, I will take a look. Thx

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

2 participants