UnemployedNinja
UnemployedNinja
CC#
Created by UnemployedNinja on 11/7/2024 in #help
✅ Default interface methods - Am I using them wrong?
!close
10 replies
CC#
Created by UnemployedNinja on 11/7/2024 in #help
✅ Default interface methods - Am I using them wrong?
So DIM's are generally not very good practice to use?
10 replies
CC#
Created by UnemployedNinja on 11/7/2024 in #help
✅ Default interface methods - Am I using them wrong?
I'm using .net6
10 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
Also, would you mind explaining what you mean by DTO? Because I have no idea :/
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
ty for your input
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
I think I'll just deobfuscate the JSON string before I deserialize lol
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
Oh I see what you mean, ok. I misunderstood. And yea, I don't mind copy/paste lol, but it's having duplicate class types for like 40 different responses is what I'm trying to avoid lol I'd also prefer if I could just have one class type returned, so I was just trying to see if anyone had a solution 😭
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
There is no copy/paste
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
I'm not sure what you mean by that, but the response types/versionings are not my design...
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
I'm trying to avoid having 2 different class types :/
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
So I basically would have to duplicate every class type and just change the [JsonProperty]? PersonV1 & PersonV2?
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
DTO?
73 replies
CC#
Created by UnemployedNinja on 10/18/2024 in #help
Best way to deserialize duplicate JSON API responses (Using Newtonsoft.JSON)
wat
73 replies
CC#
Created by UnemployedNinja on 3/19/2024 in #help
✅ Is this necessary?
ty
7 replies
CC#
Created by UnemployedNinja on 3/19/2024 in #help
✅ Is this necessary?
Seems so simple put like that... nvm then lol
7 replies
CC#
Created by UnemployedNinja on 3/19/2024 in #help
✅ Is this necessary?
I've seen this around a few times when I was looking into how to use the HttpClient and am only know thinking about it, after learning a little more
7 replies
CC#
Created by UnemployedNinja on 3/15/2024 in #help
Thread.sleep in a constructor
It's for a library I'm creating, so I'd like to minimize the steps required
14 replies
CC#
Created by UnemployedNinja on 3/15/2024 in #help
Thread.sleep in a constructor
It's used to create a websocket client. The server I'm connecting to has a service API, which is used to get the websocket server for different regions. And the websocket client requires a URL to be created I could just contact the service API before, and then create the client, but I'd like to do it all in one
14 replies
CC#
Created by UnemployedNinja on 3/15/2024 in #help
Thread.sleep in a constructor
Yea, I did it like this lol
14 replies
CC#
Created by UnemployedNinja on 3/15/2024 in #help
Thread.sleep in a constructor
hmm I might go this route, ty
14 replies