Joszko
Timer problem
Hey, im making a .net8 backend + ef core for my project. It's my first time using "advanced" timers and I don' know how to implement it. To begin with I have 3 models:
- Food
- User
- BoostType (modal)
User can use Food to gain boost (from BoostType) for certain amount of time - eg. for 3 min he have +20 health. After this 3min boost should have be gone. How to implement this? Cookies is way to go?
4 replies
✅ [SOLVED] Weird DTO response
Hi! I'm working with Dotnet8 and im creating a web app with Vue. I wanted console.log a DTO which looks like this:
{
"contentType": null,
"serializerSettings": null,
"statusCode": null,
"value": {
"data": {
"nickname": "Joszko",
"money": 1000,
"energy": 100,
"rank": "Silver_I",
"level": 10,
"experience": 500,
"levelPoints": 50,
"healthPoints": 200,
"attackPoints": 150,
"defensePoints": 100,
"luckPoints": 80,
"intelligencePoints": 70
},
"success": true,
"message": ""
}
}
Instead im getting this object which is the full object 0_0:
Proxy(Object)
[[Target]]: Object
account: null
accountId: 1
armour: null
attackPoints: 150
defensePoints: 100
energy: 100
eqArmourId: null
eqWeaponId: null
experience: 500
healthPoints: 200
id: 1
intelligencePoints: 70
level: 10
levelPoints: 50
luckPoints: 80
money: 1000
rank: "Silver_I"
stats: null
student_Armours: []
student_Foods: []
student_Weapons: []
weapon: null
22 replies