When I call BookingManager.CreateNewBooking, how do I configure the Function objects (part of the 3rd argument of this call) to save profile parameter values for the interfaces on the booking?
Note that I would like to implement this without the need for Profile Instances.
Hi Victor,
In the interfaces lists (either InputInterfaces or OutputInterfaces) you need to add an Interface object specifying the correct ID (you can fetch that from your Function Definition) and fill the list of Parameter the same way that you fill for the Function itself.
E.g. of demodulator function where we configure the output ASI with a list of parameters:
new Function
{
// Demodulator
Id = 3,
SelectedResource = demodulatorId.ToString(),
ByReference = false,
ShouldAutoSelectResource = false,
ProfileInstance = TestSystemIds.ProfileInstances.EUTELSAT_07A_A03_NS3.ToString(),
InputInterfaces = new List<Interface>
{
new Interface
{
Id = 1,
ProfileInstance = TestSystemIds.ProfileInstances.L_Band.ToString()
}
},
OutputInterfaces = new List<Interface>
{
new Interface
{
// ASI Output
Id = 11,
Parameters = new List<Parameter>
{
new Parameter
{
Id = TestSystemIds.ProfileParameters.Active_ASI_Interface,
Value = Constants.ActiveAsiInterfaceValue
},
new Parameter
{
Id = TestSystemIds.ProfileParameters.Active_ASI_Interface_Port,
Value = Constants.ActiveAsiInterfacePortValue
},
new Parameter
{
Id = TestSystemIds.ProfileParameters.Bitrate,
Value = Constants.BitrateValue
}
}
}
}
}