2013-12-17 22:44:46 -07:00
|
|
|
|
using MediaBrowser.Common.Extensions;
|
2013-12-14 18:17:57 -07:00
|
|
|
|
using MediaBrowser.Controller.Drawing;
|
|
|
|
|
using MediaBrowser.Controller.Dto;
|
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
using System;
|
2013-12-17 22:44:46 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2013-12-14 18:17:57 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
{
|
|
|
|
|
public class LiveTvDtoService
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger _logger;
|
|
|
|
|
private readonly IImageProcessor _imageProcessor;
|
|
|
|
|
|
|
|
|
|
private readonly IUserDataManager _userDataManager;
|
|
|
|
|
private readonly IDtoService _dtoService;
|
|
|
|
|
|
|
|
|
|
public LiveTvDtoService(IDtoService dtoService, IUserDataManager userDataManager, IImageProcessor imageProcessor, ILogger logger)
|
|
|
|
|
{
|
|
|
|
|
_dtoService = dtoService;
|
|
|
|
|
_userDataManager = userDataManager;
|
|
|
|
|
_imageProcessor = imageProcessor;
|
|
|
|
|
_logger = logger;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TimerInfoDto GetTimerInfoDto(TimerInfo info, ILiveTvService service)
|
|
|
|
|
{
|
|
|
|
|
var dto = new TimerInfoDto
|
|
|
|
|
{
|
|
|
|
|
Id = GetInternalTimerId(service.Name, info.Id).ToString("N"),
|
|
|
|
|
ChannelName = info.ChannelName,
|
|
|
|
|
Overview = info.Overview,
|
|
|
|
|
EndDate = info.EndDate,
|
|
|
|
|
Name = info.Name,
|
|
|
|
|
StartDate = info.StartDate,
|
|
|
|
|
ExternalId = info.Id,
|
|
|
|
|
ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N"),
|
|
|
|
|
Status = info.Status,
|
|
|
|
|
SeriesTimerId = string.IsNullOrEmpty(info.SeriesTimerId) ? null : GetInternalSeriesTimerId(service.Name, info.SeriesTimerId).ToString("N"),
|
2013-12-17 22:44:46 -07:00
|
|
|
|
PrePaddingSeconds = info.PrePaddingSeconds,
|
|
|
|
|
PostPaddingSeconds = info.PostPaddingSeconds,
|
|
|
|
|
IsPostPaddingRequired = info.IsPostPaddingRequired,
|
|
|
|
|
IsPrePaddingRequired = info.IsPrePaddingRequired,
|
2013-12-14 18:17:57 -07:00
|
|
|
|
ExternalChannelId = info.ChannelId,
|
2013-12-15 07:19:24 -07:00
|
|
|
|
ExternalSeriesTimerId = info.SeriesTimerId,
|
2013-12-16 11:44:03 -07:00
|
|
|
|
ServiceName = service.Name,
|
2013-12-16 23:08:06 -07:00
|
|
|
|
ExternalProgramId = info.ProgramId,
|
|
|
|
|
Priority = info.Priority
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var duration = info.EndDate - info.StartDate;
|
|
|
|
|
dto.DurationMs = Convert.ToInt32(duration.TotalMilliseconds);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(info.ProgramId))
|
|
|
|
|
{
|
|
|
|
|
dto.ProgramId = GetInternalProgramId(service.Name, info.ProgramId).ToString("N");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public SeriesTimerInfoDto GetSeriesTimerInfoDto(SeriesTimerInfo info, ILiveTvService service)
|
|
|
|
|
{
|
|
|
|
|
var dto = new SeriesTimerInfoDto
|
|
|
|
|
{
|
|
|
|
|
Id = GetInternalSeriesTimerId(service.Name, info.Id).ToString("N"),
|
|
|
|
|
ChannelName = info.ChannelName,
|
|
|
|
|
Overview = info.Overview,
|
|
|
|
|
EndDate = info.EndDate,
|
|
|
|
|
Name = info.Name,
|
|
|
|
|
StartDate = info.StartDate,
|
|
|
|
|
ExternalId = info.Id,
|
2013-12-17 22:44:46 -07:00
|
|
|
|
PrePaddingSeconds = info.PrePaddingSeconds,
|
|
|
|
|
PostPaddingSeconds = info.PostPaddingSeconds,
|
|
|
|
|
IsPostPaddingRequired = info.IsPostPaddingRequired,
|
|
|
|
|
IsPrePaddingRequired = info.IsPrePaddingRequired,
|
2013-12-14 18:17:57 -07:00
|
|
|
|
Days = info.Days,
|
|
|
|
|
Priority = info.Priority,
|
2013-12-16 11:44:03 -07:00
|
|
|
|
RecordAnyChannel = info.RecordAnyChannel,
|
|
|
|
|
RecordAnyTime = info.RecordAnyTime,
|
|
|
|
|
RecordNewOnly = info.RecordNewOnly,
|
2013-12-14 18:17:57 -07:00
|
|
|
|
ExternalChannelId = info.ChannelId,
|
2013-12-15 07:19:24 -07:00
|
|
|
|
ExternalProgramId = info.ProgramId,
|
|
|
|
|
ServiceName = service.Name
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
|
|
|
|
|
2013-12-15 07:19:24 -07:00
|
|
|
|
if (!string.IsNullOrEmpty(info.ChannelId))
|
|
|
|
|
{
|
|
|
|
|
dto.ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N");
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-14 18:17:57 -07:00
|
|
|
|
if (!string.IsNullOrEmpty(info.ProgramId))
|
|
|
|
|
{
|
|
|
|
|
dto.ProgramId = GetInternalProgramId(service.Name, info.ProgramId).ToString("N");
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-17 22:44:46 -07:00
|
|
|
|
dto.DayPattern = info.Days == null ? null : GetDayPattern(info.Days);
|
|
|
|
|
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DayPattern? GetDayPattern(List<DayOfWeek> days)
|
|
|
|
|
{
|
2013-12-14 18:17:57 -07:00
|
|
|
|
DayPattern? pattern = null;
|
|
|
|
|
|
2013-12-17 22:44:46 -07:00
|
|
|
|
if (days.Count > 0)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
2013-12-17 22:44:46 -07:00
|
|
|
|
if (days.Count == 7)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
|
|
|
|
pattern = DayPattern.Daily;
|
|
|
|
|
}
|
2013-12-17 22:44:46 -07:00
|
|
|
|
else if (days.Count == 2)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
2013-12-17 22:44:46 -07:00
|
|
|
|
if (days.Contains(DayOfWeek.Saturday) && days.Contains(DayOfWeek.Sunday))
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
|
|
|
|
pattern = DayPattern.Weekends;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-12-17 22:44:46 -07:00
|
|
|
|
else if (days.Count == 5)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
2013-12-17 22:44:46 -07:00
|
|
|
|
if (days.Contains(DayOfWeek.Monday) && days.Contains(DayOfWeek.Tuesday) && days.Contains(DayOfWeek.Wednesday) && days.Contains(DayOfWeek.Thursday) && days.Contains(DayOfWeek.Friday))
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
|
|
|
|
pattern = DayPattern.Weekdays;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-17 22:44:46 -07:00
|
|
|
|
return pattern;
|
2013-12-14 18:17:57 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RecordingInfoDto GetRecordingInfoDto(RecordingInfo info, ILiveTvService service, User user = null)
|
|
|
|
|
{
|
|
|
|
|
var dto = new RecordingInfoDto
|
|
|
|
|
{
|
|
|
|
|
Id = GetInternalRecordingId(service.Name, info.Id).ToString("N"),
|
|
|
|
|
ChannelName = info.ChannelName,
|
|
|
|
|
Overview = info.Overview,
|
|
|
|
|
EndDate = info.EndDate,
|
|
|
|
|
Name = info.Name,
|
|
|
|
|
StartDate = info.StartDate,
|
|
|
|
|
ExternalId = info.Id,
|
|
|
|
|
ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N"),
|
|
|
|
|
Status = info.Status,
|
|
|
|
|
Path = info.Path,
|
|
|
|
|
Genres = info.Genres,
|
|
|
|
|
IsRepeat = info.IsRepeat,
|
|
|
|
|
EpisodeTitle = info.EpisodeTitle,
|
|
|
|
|
ChannelType = info.ChannelType,
|
|
|
|
|
MediaType = info.ChannelType == ChannelType.Radio ? MediaType.Audio : MediaType.Video,
|
|
|
|
|
CommunityRating = info.CommunityRating,
|
|
|
|
|
OfficialRating = info.OfficialRating,
|
|
|
|
|
Audio = info.Audio,
|
2013-12-15 07:19:24 -07:00
|
|
|
|
IsHD = info.IsHD,
|
2013-12-16 11:44:03 -07:00
|
|
|
|
ServiceName = service.Name,
|
|
|
|
|
Url = info.Url
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (user != null)
|
|
|
|
|
{
|
|
|
|
|
//dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, info.GetUserDataKey()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var duration = info.EndDate - info.StartDate;
|
|
|
|
|
dto.DurationMs = Convert.ToInt32(duration.TotalMilliseconds);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(info.ProgramId))
|
|
|
|
|
{
|
|
|
|
|
dto.ProgramId = GetInternalProgramId(service.Name, info.ProgramId).ToString("N");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channel info dto.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">The info.</param>
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
/// <returns>ChannelInfoDto.</returns>
|
|
|
|
|
public ChannelInfoDto GetChannelInfoDto(Channel info, User user = null)
|
|
|
|
|
{
|
|
|
|
|
var dto = new ChannelInfoDto
|
|
|
|
|
{
|
|
|
|
|
Name = info.Name,
|
|
|
|
|
ServiceName = info.ServiceName,
|
|
|
|
|
ChannelType = info.ChannelType,
|
|
|
|
|
Number = info.ChannelNumber,
|
|
|
|
|
Type = info.GetType().Name,
|
|
|
|
|
Id = info.Id.ToString("N"),
|
2013-12-17 13:02:12 -07:00
|
|
|
|
MediaType = info.MediaType,
|
|
|
|
|
ExternalId = info.ChannelId
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (user != null)
|
|
|
|
|
{
|
|
|
|
|
dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, info.GetUserDataKey()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var imageTag = GetLogoImageTag(info);
|
|
|
|
|
|
|
|
|
|
if (imageTag.HasValue)
|
|
|
|
|
{
|
|
|
|
|
dto.ImageTags[ImageType.Primary] = imageTag.Value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ProgramInfoDto GetProgramInfoDto(ProgramInfo program, Channel channel, User user = null)
|
|
|
|
|
{
|
|
|
|
|
var dto = new ProgramInfoDto
|
|
|
|
|
{
|
|
|
|
|
Id = GetInternalProgramId(channel.ServiceName, program.Id).ToString("N"),
|
|
|
|
|
ChannelId = channel.Id.ToString("N"),
|
|
|
|
|
Overview = program.Overview,
|
|
|
|
|
EndDate = program.EndDate,
|
|
|
|
|
Genres = program.Genres,
|
|
|
|
|
ExternalId = program.Id,
|
|
|
|
|
Name = program.Name,
|
|
|
|
|
ServiceName = channel.ServiceName,
|
|
|
|
|
StartDate = program.StartDate,
|
|
|
|
|
OfficialRating = program.OfficialRating,
|
|
|
|
|
IsHD = program.IsHD,
|
|
|
|
|
OriginalAirDate = program.OriginalAirDate,
|
|
|
|
|
Audio = program.Audio,
|
|
|
|
|
CommunityRating = program.CommunityRating,
|
|
|
|
|
AspectRatio = program.AspectRatio,
|
|
|
|
|
IsRepeat = program.IsRepeat,
|
2013-12-16 11:44:03 -07:00
|
|
|
|
EpisodeTitle = program.EpisodeTitle,
|
2013-12-17 22:44:46 -07:00
|
|
|
|
ChannelName = program.ChannelName,
|
|
|
|
|
IsMovie = program.IsMovie,
|
|
|
|
|
IsSeries = program.IsSeries,
|
|
|
|
|
IsSports = program.IsSports
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (user != null)
|
|
|
|
|
{
|
|
|
|
|
//dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, info.GetUserDataKey()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Guid? GetLogoImageTag(Channel info)
|
|
|
|
|
{
|
|
|
|
|
var path = info.PrimaryImagePath;
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(path))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
return _imageProcessor.GetImageCacheTag(info, ImageType.Primary, path);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
_logger.ErrorException("Error getting channel image info for {0}", ex, info.Name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid GetInternalChannelId(string serviceName, string externalId, string channelName)
|
|
|
|
|
{
|
|
|
|
|
var name = serviceName + externalId + channelName;
|
|
|
|
|
|
|
|
|
|
return name.ToLower().GetMBId(typeof(Channel));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid GetInternalTimerId(string serviceName, string externalId)
|
|
|
|
|
{
|
|
|
|
|
var name = serviceName + externalId;
|
|
|
|
|
|
|
|
|
|
return name.ToLower().GetMD5();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid GetInternalSeriesTimerId(string serviceName, string externalId)
|
|
|
|
|
{
|
|
|
|
|
var name = serviceName + externalId;
|
|
|
|
|
|
|
|
|
|
return name.ToLower().GetMD5();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid GetInternalProgramId(string serviceName, string externalId)
|
|
|
|
|
{
|
|
|
|
|
var name = serviceName + externalId;
|
|
|
|
|
|
|
|
|
|
return name.ToLower().GetMD5();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid GetInternalRecordingId(string serviceName, string externalId)
|
|
|
|
|
{
|
|
|
|
|
var name = serviceName + externalId;
|
|
|
|
|
|
|
|
|
|
return name.ToLower().GetMD5();
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-17 13:02:12 -07:00
|
|
|
|
public async Task<TimerInfo> GetTimerInfo(TimerInfoDto dto, bool isNew, ILiveTvManager liveTv, CancellationToken cancellationToken)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
2013-12-17 13:02:12 -07:00
|
|
|
|
var info = new TimerInfo
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
|
|
|
|
ChannelName = dto.ChannelName,
|
|
|
|
|
Overview = dto.Overview,
|
|
|
|
|
EndDate = dto.EndDate,
|
|
|
|
|
Name = dto.Name,
|
|
|
|
|
StartDate = dto.StartDate,
|
|
|
|
|
Status = dto.Status,
|
|
|
|
|
SeriesTimerId = dto.ExternalSeriesTimerId,
|
2013-12-17 22:44:46 -07:00
|
|
|
|
PrePaddingSeconds = dto.PrePaddingSeconds,
|
|
|
|
|
PostPaddingSeconds = dto.PostPaddingSeconds,
|
|
|
|
|
IsPostPaddingRequired = dto.IsPostPaddingRequired,
|
|
|
|
|
IsPrePaddingRequired = dto.IsPrePaddingRequired,
|
2013-12-16 23:08:06 -07:00
|
|
|
|
Priority = dto.Priority
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
2013-12-17 13:02:12 -07:00
|
|
|
|
|
|
|
|
|
// Convert internal server id's to external tv provider id's
|
|
|
|
|
if (!isNew && !string.IsNullOrEmpty(dto.Id))
|
|
|
|
|
{
|
|
|
|
|
var timer = await liveTv.GetTimer(dto.Id, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.Id = timer.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(dto.SeriesTimerId))
|
|
|
|
|
{
|
|
|
|
|
var timer = await liveTv.GetSeriesTimer(dto.SeriesTimerId, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.SeriesTimerId = timer.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(dto.ChannelId))
|
|
|
|
|
{
|
|
|
|
|
var channel = await liveTv.GetChannel(dto.ChannelId, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.ChannelId = channel.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(dto.ProgramId))
|
|
|
|
|
{
|
|
|
|
|
var program = await liveTv.GetProgram(dto.ProgramId, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.ProgramId = program.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return info;
|
2013-12-14 18:17:57 -07:00
|
|
|
|
}
|
|
|
|
|
|
2013-12-17 13:02:12 -07:00
|
|
|
|
public async Task<SeriesTimerInfo> GetSeriesTimerInfo(SeriesTimerInfoDto dto, bool isNew, ILiveTvManager liveTv, CancellationToken cancellationToken)
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
2013-12-17 13:02:12 -07:00
|
|
|
|
var info = new SeriesTimerInfo
|
2013-12-14 18:17:57 -07:00
|
|
|
|
{
|
|
|
|
|
ChannelName = dto.ChannelName,
|
|
|
|
|
Overview = dto.Overview,
|
|
|
|
|
EndDate = dto.EndDate,
|
|
|
|
|
Name = dto.Name,
|
|
|
|
|
StartDate = dto.StartDate,
|
2013-12-17 22:44:46 -07:00
|
|
|
|
PrePaddingSeconds = dto.PrePaddingSeconds,
|
|
|
|
|
PostPaddingSeconds = dto.PostPaddingSeconds,
|
|
|
|
|
IsPostPaddingRequired = dto.IsPostPaddingRequired,
|
|
|
|
|
IsPrePaddingRequired = dto.IsPrePaddingRequired,
|
2013-12-14 18:17:57 -07:00
|
|
|
|
Days = dto.Days,
|
|
|
|
|
Priority = dto.Priority,
|
2013-12-16 11:44:03 -07:00
|
|
|
|
RecordAnyChannel = dto.RecordAnyChannel,
|
|
|
|
|
RecordAnyTime = dto.RecordAnyTime,
|
|
|
|
|
RecordNewOnly = dto.RecordNewOnly
|
2013-12-14 18:17:57 -07:00
|
|
|
|
};
|
2013-12-17 13:02:12 -07:00
|
|
|
|
|
|
|
|
|
// Convert internal server id's to external tv provider id's
|
|
|
|
|
if (!isNew && !string.IsNullOrEmpty(dto.Id))
|
|
|
|
|
{
|
|
|
|
|
var timer = await liveTv.GetSeriesTimer(dto.Id, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.Id = timer.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(dto.ChannelId))
|
|
|
|
|
{
|
|
|
|
|
var channel = await liveTv.GetChannel(dto.ChannelId, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.ChannelId = channel.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(dto.ProgramId))
|
|
|
|
|
{
|
|
|
|
|
var program = await liveTv.GetProgram(dto.ProgramId, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
info.ProgramId = program.ExternalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return info;
|
2013-12-14 18:17:57 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|