SecurityCredentials *credentials = new SecurityCredentials(service_url, some_secret_key); credentials->IsValid(); credentials->ChangeKey(new_secret_key); // Does occur during a normal program as these change frequently. AlarmZone zone(credentials, 0); zone->IsArmed(); zone->SetArmed(true); AlarmZone another_zone(credentials, 1); another_zone->IsArmed(); another_zone->SetArmed(true);