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)); }
public M2mgoGetwayProjectDto(GatewayGetModel gateway, GatewayProjectGetModel gatewayProject) { Gateway = gateway; GatewayProject = gatewayProject; }
private void EnsureDevice(M2MgoCloudAgentConfiguration config, string deviceIdentifier, BlueprintDto blueprint, GatewayGetModel gateway) { _apiWrapper.AuthenticateDevice(config, blueprint.Identifier.ID, deviceIdentifier, gateway.Identifier.ID); }