There is no message in the protocol for an end-device to send to the network server to change class.
This will need to be an application level message.
An application can listen for Joined messages and change new devices to class C as the records are created.