minor cleanup

pull/23/head
Keivan Beigi 12 years ago
parent 85fd0e1c22
commit 9efee65966

@ -2,7 +2,7 @@
using Marr.Data.Converters;
using Marr.Data.Mapping;
namespace NzbDrone.Core.Datastore
namespace NzbDrone.Core.Datastore.Converters
{
public class EnumIntConverter : IConverter
{

@ -0,0 +1,8 @@
namespace NzbDrone.Core.Datastore
{
public interface IReadModels<T> where T : ModelBase
{
T All();
T Get(int id);
}
}

@ -0,0 +1,9 @@
namespace NzbDrone.Core.Datastore
{
public interface IWriteModels<T> where T : ModelBase
{
T Add(T model);
T Update(T model);
void Delete(int id);
}
}

@ -1,7 +1,5 @@
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Model;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Tv;

@ -192,8 +192,10 @@
<Compile Include="Datastore\Converters\EmbeddedDocumentConverter.cs" />
<Compile Include="Datastore\Database.cs" />
<Compile Include="Datastore\DbFactory.cs" />
<Compile Include="Datastore\EnumIntConverter.cs" />
<Compile Include="Datastore\Converters\EnumIntConverter.cs" />
<Compile Include="Datastore\IEmbeddedDocument.cs" />
<Compile Include="Datastore\IReadModels.cs" />
<Compile Include="Datastore\IWriteModels.cs" />
<Compile Include="Datastore\LazyList.cs" />
<Compile Include="Datastore\MappingExtensions.cs" />
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />

@ -22,8 +22,6 @@ namespace NzbDrone.Core.Tv
public Nullable<Int32> AbsoluteEpisodeNumber { get; set; }
public int SceneSeasonNumber { get; set; }
public int SceneEpisodeNumber { get; set; }
//Todo: This should be UTC
public DateTime? GrabDate { get; set; }
public bool HasFile

@ -9,8 +9,8 @@ define(['app', 'Series/SeasonModel'], function () {
},
events : {
events: {
},
}
});
});

@ -1,3 +1,4 @@
"use strict";
define(['app', 'Quality/QualityProfileCollection', 'Series/Details/SeasonCompositeView', 'Series/SeasonCollection'], function () {
NzbDrone.Series.Details.SeriesDetailsView = Backbone.Marionette.CompositeView.extend({
@ -10,4 +11,4 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/Details/SeasonComposi
this.collection.fetch({data: { seriesId: this.model.get('id') }});
}
});
});
});

Loading…
Cancel
Save