Created
July 25, 2019 23:13
-
-
Save ahsonkhan/c92fa6f825849d7c8e1f8b3027754a50 to your computer and use it in GitHub Desktop.
Generating a .NET POCO for a json file found on the web (some blog post)
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
public class Rootobject | |
{ | |
public Value value { get; set; } | |
public Mentioneduser[] mentionedUsers { get; set; } | |
public Collaborator[] collaborators { get; set; } | |
public bool hideMeter { get; set; } | |
public Collectionuserrelation[] collectionUserRelations { get; set; } | |
public object mode { get; set; } | |
public References references { get; set; } | |
} | |
public class Value | |
{ | |
public string id { get; set; } | |
public string versionId { get; set; } | |
public string creatorId { get; set; } | |
public string homeCollectionId { get; set; } | |
public string title { get; set; } | |
public string detectedLanguage { get; set; } | |
public string latestVersion { get; set; } | |
public string latestPublishedVersion { get; set; } | |
public bool hasUnpublishedEdits { get; set; } | |
public int latestRev { get; set; } | |
public long createdAt { get; set; } | |
public long updatedAt { get; set; } | |
public int acceptedAt { get; set; } | |
public long firstPublishedAt { get; set; } | |
public long latestPublishedAt { get; set; } | |
public bool vote { get; set; } | |
public string experimentalCss { get; set; } | |
public string displayAuthor { get; set; } | |
public Content content { get; set; } | |
public Virtuals virtuals { get; set; } | |
public bool coverless { get; set; } | |
public string slug { get; set; } | |
public string translationSourcePostId { get; set; } | |
public string translationSourceCreatorId { get; set; } | |
public bool isApprovedTranslation { get; set; } | |
public string inResponseToPostId { get; set; } | |
public int inResponseToRemovedAt { get; set; } | |
public bool isTitleSynthesized { get; set; } | |
public bool allowResponses { get; set; } | |
public string importedUrl { get; set; } | |
public int importedPublishedAt { get; set; } | |
public int visibility { get; set; } | |
public string uniqueSlug { get; set; } | |
public Previewcontent previewContent { get; set; } | |
public int license { get; set; } | |
public string inResponseToMediaResourceId { get; set; } | |
public string canonicalUrl { get; set; } | |
public string approvedHomeCollectionId { get; set; } | |
public string newsletterId { get; set; } | |
public string webCanonicalUrl { get; set; } | |
public string mediumUrl { get; set; } | |
public string migrationId { get; set; } | |
public bool notifyFollowers { get; set; } | |
public bool notifyTwitter { get; set; } | |
public bool notifyFacebook { get; set; } | |
public int responseHiddenOnParentPostAt { get; set; } | |
public bool isSeries { get; set; } | |
public bool isSubscriptionLocked { get; set; } | |
public int seriesLastAppendedAt { get; set; } | |
public int audioVersionDurationSec { get; set; } | |
public string sequenceId { get; set; } | |
public bool isNsfw { get; set; } | |
public bool isEligibleForRevenue { get; set; } | |
public bool isBlockedFromHightower { get; set; } | |
public int deletedAt { get; set; } | |
public int lockedPostSource { get; set; } | |
public int hightowerMinimumGuaranteeStartsAt { get; set; } | |
public int hightowerMinimumGuaranteeEndsAt { get; set; } | |
public int featureLockRequestAcceptedAt { get; set; } | |
public int mongerRequestType { get; set; } | |
public int layerCake { get; set; } | |
public string socialTitle { get; set; } | |
public string socialDek { get; set; } | |
public string editorialPreviewTitle { get; set; } | |
public string editorialPreviewDek { get; set; } | |
public int curationEligibleAt { get; set; } | |
public Primarytopic primaryTopic { get; set; } | |
public string primaryTopicId { get; set; } | |
public bool isProxyPost { get; set; } | |
public string proxyPostFaviconUrl { get; set; } | |
public string proxyPostProviderName { get; set; } | |
public int proxyPostType { get; set; } | |
public string type { get; set; } | |
} | |
public class Content | |
{ | |
public string subtitle { get; set; } | |
public Bodymodel bodyModel { get; set; } | |
public Postdisplay postDisplay { get; set; } | |
} | |
public class Bodymodel | |
{ | |
public Paragraph[] paragraphs { get; set; } | |
public Section[] sections { get; set; } | |
} | |
public class Paragraph | |
{ | |
public string name { get; set; } | |
public int type { get; set; } | |
public string text { get; set; } | |
public Markup[] markups { get; set; } | |
public int layout { get; set; } | |
public Metadata metadata { get; set; } | |
} | |
public class Metadata | |
{ | |
public string id { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
public bool isFeatured { get; set; } | |
} | |
public class Markup | |
{ | |
public int type { get; set; } | |
public int start { get; set; } | |
public int end { get; set; } | |
public string href { get; set; } | |
public string title { get; set; } | |
public string rel { get; set; } | |
public int anchorType { get; set; } | |
public string userId { get; set; } | |
} | |
public class Section | |
{ | |
public string name { get; set; } | |
public int startIndex { get; set; } | |
} | |
public class Postdisplay | |
{ | |
public bool coverless { get; set; } | |
} | |
public class Virtuals | |
{ | |
public bool allowNotes { get; set; } | |
public Previewimage previewImage { get; set; } | |
public int wordCount { get; set; } | |
public int imageCount { get; set; } | |
public float readingTime { get; set; } | |
public string subtitle { get; set; } | |
public Userpostrelation userPostRelation { get; set; } | |
public object[] usersBySocialRecommends { get; set; } | |
public bool noIndex { get; set; } | |
public int recommends { get; set; } | |
public bool isBookmarked { get; set; } | |
public Tag[] tags { get; set; } | |
public int socialRecommendsCount { get; set; } | |
public int responsesCreatedCount { get; set; } | |
public Links links { get; set; } | |
public bool isLockedPreviewOnly { get; set; } | |
public string metaDescription { get; set; } | |
public int totalClapCount { get; set; } | |
public int sectionCount { get; set; } | |
public int readingList { get; set; } | |
public Topic[] topics { get; set; } | |
} | |
public class Previewimage | |
{ | |
public string imageId { get; set; } | |
public string filter { get; set; } | |
public string backgroundSize { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
public string strategy { get; set; } | |
public int height { get; set; } | |
public int width { get; set; } | |
} | |
public class Userpostrelation | |
{ | |
public string userId { get; set; } | |
public string postId { get; set; } | |
public int readAt { get; set; } | |
public int readLaterAddedAt { get; set; } | |
public int votedAt { get; set; } | |
public int collaboratorAddedAt { get; set; } | |
public int notesAddedAt { get; set; } | |
public int subscribedAt { get; set; } | |
public string lastReadSectionName { get; set; } | |
public string lastReadVersionId { get; set; } | |
public int lastReadAt { get; set; } | |
public string lastReadParagraphName { get; set; } | |
public int lastReadPercentage { get; set; } | |
public long viewedAt { get; set; } | |
public int presentedCountInResponseManagement { get; set; } | |
public int clapCount { get; set; } | |
public int seriesUpdateNotifsOptedInAt { get; set; } | |
public int queuedAt { get; set; } | |
public int seriesFirstViewedAt { get; set; } | |
public int presentedCountInStream { get; set; } | |
public int seriesLastViewedAt { get; set; } | |
public int audioProgressSec { get; set; } | |
} | |
public class Links | |
{ | |
public Entry[] entries { get; set; } | |
public string version { get; set; } | |
public long generatedAt { get; set; } | |
} | |
public class Entry | |
{ | |
public string url { get; set; } | |
public Alt[] alts { get; set; } | |
public int httpStatus { get; set; } | |
} | |
public class Alt | |
{ | |
public int type { get; set; } | |
public string url { get; set; } | |
} | |
public class Tag | |
{ | |
public string slug { get; set; } | |
public string name { get; set; } | |
public int postCount { get; set; } | |
public Metadata1 metadata { get; set; } | |
public string type { get; set; } | |
} | |
public class Metadata1 | |
{ | |
public int postCount { get; set; } | |
public Coverimage coverImage { get; set; } | |
} | |
public class Coverimage | |
{ | |
public string id { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
public bool isFeatured { get; set; } | |
public string unsplashPhotoId { get; set; } | |
public int focusPercentX { get; set; } | |
public int focusPercentY { get; set; } | |
} | |
public class Topic | |
{ | |
public string topicId { get; set; } | |
public string slug { get; set; } | |
public long createdAt { get; set; } | |
public int deletedAt { get; set; } | |
public Image image { get; set; } | |
public string name { get; set; } | |
public string description { get; set; } | |
public object[] relatedTopics { get; set; } | |
public int visibility { get; set; } | |
public object[] relatedTags { get; set; } | |
public object[] relatedTopicIds { get; set; } | |
public string type { get; set; } | |
} | |
public class Image | |
{ | |
public string id { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
} | |
public class Previewcontent | |
{ | |
public Bodymodel1 bodyModel { get; set; } | |
public bool isFullContent { get; set; } | |
public string subtitle { get; set; } | |
} | |
public class Bodymodel1 | |
{ | |
public Paragraph1[] paragraphs { get; set; } | |
public Section1[] sections { get; set; } | |
} | |
public class Paragraph1 | |
{ | |
public string name { get; set; } | |
public int type { get; set; } | |
public string text { get; set; } | |
public int layout { get; set; } | |
public Metadata2 metadata { get; set; } | |
public Markup1[] markups { get; set; } | |
public int alignment { get; set; } | |
} | |
public class Metadata2 | |
{ | |
public string id { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
public bool isFeatured { get; set; } | |
} | |
public class Markup1 | |
{ | |
public int type { get; set; } | |
public int start { get; set; } | |
public int end { get; set; } | |
public string href { get; set; } | |
public string title { get; set; } | |
public string rel { get; set; } | |
public int anchorType { get; set; } | |
} | |
public class Section1 | |
{ | |
public int startIndex { get; set; } | |
} | |
public class Primarytopic | |
{ | |
public string topicId { get; set; } | |
public string slug { get; set; } | |
public long createdAt { get; set; } | |
public int deletedAt { get; set; } | |
public Image1 image { get; set; } | |
public string name { get; set; } | |
public string description { get; set; } | |
public object[] relatedTopics { get; set; } | |
public int visibility { get; set; } | |
public object[] relatedTags { get; set; } | |
public object[] relatedTopicIds { get; set; } | |
public string type { get; set; } | |
} | |
public class Image1 | |
{ | |
public string id { get; set; } | |
public int originalWidth { get; set; } | |
public int originalHeight { get; set; } | |
} | |
public class References | |
{ | |
public User User { get; set; } | |
public Social1 Social { get; set; } | |
public Socialstats1 SocialStats { get; set; } | |
} | |
public class User | |
{ | |
public _7Ef192b7f545 _7ef192b7f545 { get; set; } | |
} | |
public class _7Ef192b7f545 | |
{ | |
public string userId { get; set; } | |
public string name { get; set; } | |
public string username { get; set; } | |
public long createdAt { get; set; } | |
public string imageId { get; set; } | |
public string backgroundImageId { get; set; } | |
public string bio { get; set; } | |
public string twitterScreenName { get; set; } | |
public Socialstats socialStats { get; set; } | |
public Social social { get; set; } | |
public string facebookAccountId { get; set; } | |
public int allowNotes { get; set; } | |
public int mediumMemberAt { get; set; } | |
public bool isNsfw { get; set; } | |
public bool isWriterProgramEnrolled { get; set; } | |
public bool isQuarantined { get; set; } | |
public string type { get; set; } | |
} | |
public class Socialstats | |
{ | |
public string userId { get; set; } | |
public int usersFollowedCount { get; set; } | |
public int usersFollowedByCount { get; set; } | |
public string type { get; set; } | |
} | |
public class Social | |
{ | |
public string userId { get; set; } | |
public string targetUserId { get; set; } | |
public string type { get; set; } | |
} | |
public class Social1 | |
{ | |
public _7Ef192b7f5451 _7ef192b7f545 { get; set; } | |
} | |
public class _7Ef192b7f5451 | |
{ | |
public string userId { get; set; } | |
public string targetUserId { get; set; } | |
public string type { get; set; } | |
} | |
public class Socialstats1 | |
{ | |
public _7Ef192b7f5452 _7ef192b7f545 { get; set; } | |
} | |
public class _7Ef192b7f5452 | |
{ | |
public string userId { get; set; } | |
public int usersFollowedCount { get; set; } | |
public int usersFollowedByCount { get; set; } | |
public string type { get; set; } | |
} | |
public class Mentioneduser | |
{ | |
public string userId { get; set; } | |
public string name { get; set; } | |
public string username { get; set; } | |
public long createdAt { get; set; } | |
public string imageId { get; set; } | |
public string backgroundImageId { get; set; } | |
public string bio { get; set; } | |
public string twitterScreenName { get; set; } | |
public string facebookAccountId { get; set; } | |
public int allowNotes { get; set; } | |
public int mediumMemberAt { get; set; } | |
public bool isNsfw { get; set; } | |
public bool isWriterProgramEnrolled { get; set; } | |
public bool isQuarantined { get; set; } | |
public string type { get; set; } | |
} | |
public class Collaborator | |
{ | |
public User1 user { get; set; } | |
public string state { get; set; } | |
} | |
public class User1 | |
{ | |
public string userId { get; set; } | |
public string name { get; set; } | |
public string username { get; set; } | |
public long createdAt { get; set; } | |
public string imageId { get; set; } | |
public string backgroundImageId { get; set; } | |
public string bio { get; set; } | |
public string twitterScreenName { get; set; } | |
public string facebookAccountId { get; set; } | |
public int allowNotes { get; set; } | |
public int mediumMemberAt { get; set; } | |
public bool isNsfw { get; set; } | |
public bool isWriterProgramEnrolled { get; set; } | |
public bool isQuarantined { get; set; } | |
public string type { get; set; } | |
} | |
public class Collectionuserrelation | |
{ | |
public string collectionId { get; set; } | |
public string userId { get; set; } | |
public string role { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment