SIL.FieldWorks.IText.LinguaLinksImport.AddELANInfoToSegment C# (CSharp) Method

AddELANInfoToSegment() private static method

private static AddELANInfoToSegment ( SIL.FieldWorks.FDO.FdoCache cache, Phrase phrase, ISegment newSegment ) : void
cache SIL.FieldWorks.FDO.FdoCache
phrase Phrase
newSegment ISegment
return void
		private static void AddELANInfoToSegment(FdoCache cache, Phrase phrase, ISegment newSegment)
		{
			if (!String.IsNullOrEmpty(phrase.mediaFile))
			{
				if(!String.IsNullOrEmpty(phrase.speaker))
				{
					newSegment.SpeakerRA = FindOrCreateSpeaker(phrase.speaker, cache);
				}
				newSegment.BeginTimeOffset = phrase.beginTimeOffset;
				newSegment.EndTimeOffset = phrase.endTimeOffset;
				newSegment.MediaURIRA = cache.ServiceLocator.ObjectRepository.GetObject(new Guid(phrase.mediaFile)) as ICmMediaURI;
			}
		}