B
BLUE
I know it's a stupid question but...
I want to use a class that represents the current user of my application,
another one that reads position from a GPS receiver and another one that
reads RFID tags from a reader.
I don't want to create a new user each time a log in appens (only one login
at a time: mobile device) and I do not want to create a new object each time
I read position or a tag, so it's right to use static classes and to update
static fields (e.g. GPS.position or Tag.Id) every time a read happens?
Thank you.
Bye,
Luigi.
I want to use a class that represents the current user of my application,
another one that reads position from a GPS receiver and another one that
reads RFID tags from a reader.
I don't want to create a new user each time a log in appens (only one login
at a time: mobile device) and I do not want to create a new object each time
I read position or a tag, so it's right to use static classes and to update
static fields (e.g. GPS.position or Tag.Id) every time a read happens?
Thank you.
Bye,
Luigi.