Using IAlarmClient in MFA

I’m trying to search events by using IAlarmClient in MFA. I have some questions related with it.

  1. It seems that Configuration.Instance.GetItemsByKind(…) returns all cameras that are located in child server. Is it right?
var camreas = Configuration.Instance.GetItemsByKind(Kind.Camera, ItemHierarchy.SystemDefined);
 
// Does cameras have all cameras even if the camera is located in child server?

2. It seems that camera’s sever id always points Recording server and the Recording server’s parent id always points the Management server. Is it right?

var rsserver = Configuration.Instance.GetItem(camera.FQID.ServerId.Id, Kind.Server);
var msserver = Configuration.Instance.GetItem(rsserver.FQID.ParentId, Kind.Server);
IAlarmClient alarmClient = alarmClientManager.GetAlarmClient(msserver.FQID.ServerId);

Am I doing right?

Yes. Be aware that using the DialogLoginForm you have to set the MasterOnly property to false. If using code to login you must do AddServer and Login with MasterOnly set to false.

Yes. Correct observation.

Thank you Bo