Advertisement
Krystal_Amaia

Class 1

Oct 23rd, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Collections.Generic;
  4. namespace XmlResponses {
  5.     [XmlRoot( ElementName = "DISPATCH" )]
  6.     public class DISPATCH {
  7.         [XmlElement( ElementName = "TITLE" )]
  8.         public string TITLE { get; set; }
  9.         [XmlElement( ElementName = "AUTHOR" )]
  10.         public string AUTHOR { get; set; }
  11.         [XmlElement( ElementName = "CATEGORY" )]
  12.         public string CATEGORY { get; set; }
  13.         [XmlElement( ElementName = "SUBCATEGORY" )]
  14.         public string SUBCATEGORY { get; set; }
  15.         [XmlElement( ElementName = "CREATED" )]
  16.         public string CREATED { get; set; }
  17.         [XmlElement( ElementName = "EDITED" )]
  18.         public string EDITED { get; set; }
  19.         [XmlElement( ElementName = "VIEWS" )]
  20.         public string VIEWS { get; set; }
  21.         [XmlElement( ElementName = "SCORE" )]
  22.         public string SCORE { get; set; }
  23.         [XmlAttribute( AttributeName = "id" )]
  24.         public string Id { get; set; }
  25.     }
  26.  
  27.     [XmlRoot( ElementName = "DISPATCHLIST" )]
  28.     public class DISPATCHLIST {
  29.         [XmlElement( ElementName = "DISPATCH" )]
  30.         public List<DISPATCH> DISPATCH { get; set; }
  31.     }
  32.  
  33.     [XmlRoot( ElementName = "WORLD" )]
  34.     public partial class WORLD {
  35.         [XmlElement( ElementName = "DISPATCHLIST" )]
  36.         public DISPATCHLIST DISPATCHLIST { get; set; }
  37.     }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement