SceneMapping added to Services API

This commit is contained in:
Mark McDowall
2013-01-31 20:18:11 -08:00
committed by kay.one
parent 4176e7e9e4
commit 27afb2402a
10 changed files with 171 additions and 15 deletions
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using Newtonsoft.Json;
@@ -13,21 +14,19 @@ namespace NzbDrone.Services.Api.SceneMapping
public const string CollectionName = "SceneMappings";
[BsonId]
public String Id { get; set; }
public ObjectId MapId { get; set; }
[BsonElement("ct")]
public string CleanTitle { get; set; }
[BsonElement("si")]
[JsonProperty(PropertyName = "id")]
[JsonProperty(PropertyName = "Id")]
public int SeriesId { get; set; }
[BsonElement("sn")]
[JsonProperty(PropertyName = "Title")]
public string SceneName { get; set; }
[BsonElement("s")]
[JsonProperty(PropertyName = "Season")]
public int SeasonNumber { get; set; }
public Boolean Public { get; set; }
}
}