Created
January 19, 2021 16:06
-
-
Save pkellner/73abb3b3e722c9676116fc7dc38baef8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace WebAppReactCRA.GraphQL.Speakers | |
{ | |
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse); | |
public class AttendeesAmazonBookDto { | |
public int Id { get; set; } | |
public string AmazonImageSmall { get; set; } | |
public string BookTitle { get; set; } | |
public string DetailPageUrl { get; set; } | |
public DateTime? BookPublishedDate { get; set; } | |
public string Authors { get; set; } | |
} | |
public class SessionLevelDto { | |
public int Id { get; set; } | |
public string Description { get; set; } | |
} | |
public class CodeCampYearDto { | |
public int Id { get; set; } | |
public string UrlPostToken { get; set; } | |
} | |
public class TagDto { | |
public string TagName { get; set; } | |
public int Id { get; set; } | |
} | |
public class SessionTagDto { | |
public TagDto Tag { get; set; } | |
} | |
public class SessionDto { | |
public int Id { get; set; } | |
public string Title { get; set; } | |
public int CodeCampYearId { get; set; } | |
public int LectureRoomsId { get; set; } | |
public bool Approved { get; set; } | |
public string SessionsMaterialUrl { get; set; } | |
public bool? AllowHtml { get; set; } | |
//public DateTime Createdate { get; set; } | |
//public DateTime? Updatedate { get; set; } | |
public int? MaxAttendance { get; set; } | |
public string SessionSequence { get; set; } | |
public SessionLevelDto SessionLevel { get; set; } | |
public CodeCampYearDto CodeCampYear { get; set; } | |
public int SessionTimesId { get; set; } | |
public List<SessionTagDto> SessionTags { get; set; } | |
} | |
public class SessionPresenterDto { | |
public int SessionId { get; set; } | |
public int AttendeeId { get; set; } | |
public int Id { get; set; } | |
public SessionDto Session { get; set; } | |
} | |
public class SpeakerDto { | |
public int Id { get; set; } | |
public string UserLastName { get; set; } | |
public string UserFirstName { get; set; } | |
public string Company { get; set; } | |
public string PrincipleJob { get; set; } | |
public string UserBioShort { get; set; } | |
public string UserBio { get; set; } | |
public string TwitterHandle { get; set; } | |
public string FacebookId { get; set; } | |
public string LinkedInId { get; set; } | |
public string UserWebsite { get; set; } | |
public List<AttendeesAmazonBookDto> AttendeesAmazonBooks { get; set; } | |
public List<SessionPresenterDto> SessionPresenters { get; set; } | |
} | |
public class DataDto { | |
public List<SpeakerDto> Speakers { get; set; } | |
} | |
public class RootDto { | |
public DataDto DataDto { get; set; } | |
} | |
public class LectureRoomDto | |
{ | |
public int Id { get; set; } | |
public string Number { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment