Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.10 KB | None | 0 0
  1.  public class ConvertFromJSON
  2.     {
  3.         public string OrganizationGuid { get; set; }
  4.         public string ShortName { get; set; }
  5.         public string Name { get; set; }
  6.         public string ShortDescription { get; set; }
  7.         public string LogoImageGuid { get; set; }
  8.         public int MinAge { get; set; }
  9.         public int? MaxAge { get; set; }
  10.         public string Adress { get; set; }
  11.         public string Site { get; set; }
  12.         public int Views { get; set; }
  13.         public List<object> Tags { get; set; }
  14.         public List<object> Categories { get; set; }
  15.         public int PositiveRatings { get; set; }
  16.         public int NegativeRatings { get; set; }
  17.        
  18.     }
  19.  
  20.     public class RootObject
  21.     {
  22.         public int Count { get; set; }
  23.         public List<ConvertFromJSON> Data { get; set; }
  24.     }
  25.  
  26.     public static class DSRLZ
  27.          {
  28.             public static string dsrlzFromJson()
  29.          {
  30.             var dsrlz = JsonConvert.DeserializeObject<ConvertFromJSON>(Response.request().Result).ToString();
  31.             return dsrlz;
  32.          }
  33.          }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement