You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
992 B
32 lines
992 B
using Radarr.Http.REST;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace NzbDrone.Api.Config
|
|
{
|
|
public class NetImportConfigResource : RestResource
|
|
{
|
|
public int NetImportSyncInterval { get; set; }
|
|
public string ListSyncLevel { get; set; }
|
|
public string ImportExclusions { get; set; }
|
|
public string TraktAuthToken { get; set; }
|
|
public string TraktRefreshToken { get; set; }
|
|
public int TraktTokenExpiry { get; set; }
|
|
}
|
|
|
|
public static class NetImportConfigResourceMapper
|
|
{
|
|
public static NetImportConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new NetImportConfigResource
|
|
{
|
|
NetImportSyncInterval = model.NetImportSyncInterval,
|
|
ListSyncLevel = model.ListSyncLevel,
|
|
ImportExclusions = model.ImportExclusions,
|
|
TraktAuthToken = model.TraktAuthToken,
|
|
TraktRefreshToken = model.TraktRefreshToken,
|
|
TraktTokenExpiry = model.TraktTokenExpiry,
|
|
};
|
|
}
|
|
}
|
|
}
|