Commit b26fbc5b authored by Yann Garcia's avatar Yann Garcia
Browse files

Bug fixed in demo3

parent 69dc542d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1025,10 +1025,12 @@ func amsAddDevice(amsId string, registerationBody ams.RegistrationInfo, device s
	associateId.Type_ = &t_
	associateId.Value = device

	var appMobilityServiceLevel ams.AppMobilityServiceLevel = "WITHOUT_CONFIRMATION"
	var appMobilityServiceLevel ams.AppMobilityServiceLevel = ams.WITHOUT_CONFIRMATION
	var contextTransferState ams.ContextTransferState = ams.NOT_TRANSFERRED
	registerationBody.DeviceInformation = append(registerationBody.DeviceInformation, ams.RegistrationInfoDeviceInformation{
		AssociateId:             &associateId,
		AppMobilityServiceLevel: &appMobilityServiceLevel,
		ContextTransferState:    &contextTransferState,
	})

	registerationInfo, _, err := amsClient.AmsiApi.AppMobilityServiceByIdPUT(context.TODO(), registerationBody, amsId)