物业不如财产

时间:2015-10-28 09:40:09

标签: c#

我已经构建了这个类来接受来自Web服务的信息。

所以我有这个:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace WSOmniacare.Models.AAHome
{
    /**
    * Author:           Michele Castriotta
    * Description:      data transfer object (DTO) that includes a subset of properties of ImageSecSoc
    * 
    **/
    public enum VoltiType
    { // Name of the enum is NodeType
        BLOBS, FACES
    }

    [DataContract]
    public class ImmaginiSecSocDTO
    {
        [DataMember(Name = "image")]
        public string image { get; set; }

        [DataMember(Name = "image_width")]
        public int image_width { get; set; }

        [DataMember(Name = "image_height")]
        public int image_height { get; set; }

       /* [DataMember(Name = "enum")]
        public VoltiType volti { get; set; } */

        [DataMember(Name = "rectangles")]
        public IEnumerable<Rectangle> Rectangles { get; set; }

        [DataContract(Name = "rectangle")]
        public class Rectangle
        {
            [DataMember(Name = "n_rects")]
            public int n_rects { get; set; }

            [DataMember(Name = "rects")]
            public IEnumerable<Rect> rects { get; set; }

            [DataContract(Name = "rect")]
            public class Rect
            {
                [DataMember(Name = "x")]
                public int x { get; set; }

                [DataMember(Name = "y")]
                public int y { get; set; }

                [DataMember(Name = "width")]
                public int width { get; set; }

                [DataMember(Name = "height")]
                public int height { get; set; }
            }
        } 
    }
}

但我有这个错误

enter image description here

0 个答案:

没有答案