❔ using data received from a Post to determine what property to set
Below will be attached text of two classes, one called PostReceiveStruct and the other UserAccount.
UserAccount holds the structed for a json format that can be turned into an object.
PostReceiveStruct holds the structure for how data received from a post request can be turned into an object as well
Both of these classes work to what I need them for, what I would like to know is how can use DCName's value to use in UserAccount
The easiest example that I can think of is something like what they do in rLua.
7 Replies
UserAccount doesnt have anywhere to use a name. So what do you mean?
Do you want a dictionary of user accounts, and have the key be the DCName?
I think the OP wants something like
Accessing properties of an object like it was a dictionary
yes exactly
The answer is "no", then
python is >>> that way 😅
damn well alright thank you guys!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.