Пример #1
0
        public M2mgoGetwayProjectDto RegisterProject(M2MgoCloudAgentConfiguration config, string serialId, UicProject project)
        {
            GatewayProjectGetModel gatewayProject = EnsureProject(config, project);
            GatewayGetModel        gateway        = EnsureGateway(config, serialId, gatewayProject);

            return(new M2mgoGetwayProjectDto(gateway, gatewayProject));
        }
Пример #2
0
 public M2mgoGetwayProjectDto(GatewayGetModel gateway, GatewayProjectGetModel gatewayProject)
 {
     Gateway        = gateway;
     GatewayProject = gatewayProject;
 }
Пример #3
0
 private void EnsureDevice(M2MgoCloudAgentConfiguration config, string deviceIdentifier, BlueprintDto blueprint, GatewayGetModel gateway)
 {
     _apiWrapper.AuthenticateDevice(config, blueprint.Identifier.ID, deviceIdentifier, gateway.Identifier.ID);
 }