using Newtonsoft.Json;
using System.Collections.Generic;
namespace DaJiaoYan.Models
{
///
/// 先阅后扫打分模版
///
public class ScoreRect
{
public class PaintScorePartRect
{
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
//public OpenCvSharp.CPlusPlus.Rect Rect { get; set; }
///
/// 该空分值
///
public double Score { get; set; }
//public PaintScorePartRect(OpenCvSharp.CPlusPlus.Rect Rect)
//{
// X = Rect.X;
// Y = Rect.Y;
// Width = Rect.Width;
// Height = Rect.Height;
// Score = 0;
//}
///
/// 该空填涂的百分比
///
public int PaintPointCount { get; set; }
}
public class ScorePartRect
{
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
[JsonProperty(PropertyName = "isEdit")]
public bool IsEdit { get; set; }
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
[JsonProperty(PropertyName = "max_score")]
public double MaxScore { get; set; }
[JsonProperty(PropertyName = "min_score")]
public double MinScore { get; set; }
[JsonProperty(PropertyName = "score_type")]
public int ScoreType { get; set; }
[JsonProperty(PropertyName = "step")]
public double Step { get; set; }
[JsonProperty(PropertyName = "width")]
public int Width { get; set; }
[JsonProperty(PropertyName = "height")]
public int Height { get; set; }
[JsonProperty(PropertyName = "x")]
public int X { get; set; }
[JsonProperty(PropertyName = "y")]
public int Y { get; set; }
[JsonProperty(PropertyName = "PaintScorePartRects")]
public List PaintScorePartRects { get; set; }
}
public class EmptyScoreRect
{
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
[JsonProperty(PropertyName = "score_part_rects")]
public List ScorePartRects = new List();
}
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
[JsonProperty(PropertyName = "empty_score_rects")]
public List EmptyScoreRects { get; set; }
}
}